From 9da950110296e4fed58de27f35284091616ea1b7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:52:21 -0800 Subject: [PATCH] feat: [aiplatform] add protected_artifact_location_id to CustomJob (#4809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add protected_artifact_location_id to CustomJob chore: add comment fixes to Feature and FeaturestoreService feat!: add FeatureViewDataFormat, FeatureViewDataKey to FeatureOnlineStoreService feat: add NumericRestriction to Index feat: add tpu_topology to MachineResources feat: add BatchDeletePipelineJobs, BatchDeletePipelineJobsRequest and BatchDeletePipelineJobsResponse to PipelineService feat: add StudyTimeConstraint to Study PiperOrigin-RevId: 581306075 Source-Link: https://github.com/googleapis/googleapis/commit/7603960c7cf66ab44c4c3c75156f25dbceffc3f1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9d03dc661bc2b672029b6cc640a4d7f3561466e7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjlkMDNkYzY2MWJjMmI2NzIwMjliNmNjNjQwYTRkN2YzNTYxNDY2ZTcifQ== * feat: add protected_artifact_location_id to CustomJob feat: add value_type, version_column_name to Feature feat: add FeatureGroup, FeatureOnlineStore, FeatureOnlineStoreAdminService, FeatureOnlineStoreService, FeatureRegistryService, FeatureView, FeatureViewSync feat: add NumericRestriction to Index feat: add tpu_topology to MachineSpec chore: change DeleteOperationMetadata to DeleteModelVersionOperationMetadata in ModelService feat: add CountTokensRequest to PredictionService feat: add StudyTimeConstraint to Study PiperOrigin-RevId: 581306827 Source-Link: https://github.com/googleapis/googleapis/commit/01af66acc8111ec1e4d6831e31952dabe530c694 Source-Link: https://github.com/googleapis/googleapis-gen/commit/842299dec7a7f5d7622b2a918aaa1888812d80dc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6Ijg0MjI5OWRlYzdhN2Y1ZDc2MjJiMmE5MThhYWExODg4ODEyZDgwZGMifQ== * 🦉 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 * 🦉 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 ComputeTokens and CountTokens API PiperOrigin-RevId: 582364082 Source-Link: https://github.com/googleapis/googleapis/commit/fdea53f759cb7a8e6167af8740ca9cfc850bfae9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/295f8eab2a87743dccc65b88e73d71f480323023 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjI5NWY4ZWFiMmE4Nzc0M2RjY2M2NWI4OGU3M2Q3MWY0ODAzMjMwMjMifQ== * feat: add deployment_timeout to UploadModel ModelContainerSpec feat: add shared_memory_size_mb to UploadModel ModelContainerSpec feat: add startup_probe, health_probe to UploadModel ModelContainerSpec PiperOrigin-RevId: 582381401 Source-Link: https://github.com/googleapis/googleapis/commit/92d962d3814b061a905437e05ea1e249f7a30c4d Source-Link: https://github.com/googleapis/googleapis-gen/commit/c19c7a7fa3eac85508a2fe0afe177d76f510fcaf Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImMxOWM3YTdmYTNlYWM4NTUwOGEyZmUwYWZlMTc3ZDc2ZjUxMGZjYWYifQ== * feat: add deployment_timeout to UploadModel ModelContainerSpec feat: add shared_memory_size_mb to UploadModel ModelContainerSpec feat: add startup_probe, health_probe to UploadModel ModelContainerSpec PiperOrigin-RevId: 582390619 Source-Link: https://github.com/googleapis/googleapis/commit/49c44ef1f0959f7d5c44a88357b18a9a057c580b Source-Link: https://github.com/googleapis/googleapis-gen/commit/7a1c0d15b82e062678a516d18551c67c1b0176aa Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjdhMWMwZDE1YjgyZTA2MjY3OGE1MTZkMTg1NTFjNjdjMWIwMTc2YWEifQ== * 🦉 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 * 🦉 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 ComputeTokens API PiperOrigin-RevId: 582473450 Source-Link: https://github.com/googleapis/googleapis/commit/a9e4e72e32b550a5451030feae99d1602ee40e0d Source-Link: https://github.com/googleapis/googleapis-gen/commit/56ea7e1c067eed56256ba6310f44d6b94c67748a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjU2ZWE3ZTFjMDY3ZWVkNTYyNTZiYTYzMTBmNDRkNmI5NGM2Nzc0OGEifQ== * 🦉 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 * build: update Node.js generator to compile protos PiperOrigin-RevId: 582493526 Source-Link: https://github.com/googleapis/googleapis/commit/7c4e4b52369c9f6ac3e78f945d36fc833f2280de Source-Link: https://github.com/googleapis/googleapis-gen/commit/368cfb651016d6a93ca6e488cbc34e2d1d9d212c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjM2OGNmYjY1MTAxNmQ2YTkzY2E2ZTQ4OGNiYzM0ZTJkMWQ5ZDIxMmMifQ== * 🦉 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 * Update index.ts * Update index.ts * Update index.ts * Update index.ts * 🦉 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: sofisl <55454395+sofisl@users.noreply.github.com> --- packages/google-cloud-aiplatform/README.md | 28 + .../cloud/aiplatform/v1/custom_job.proto | 6 + .../google/cloud/aiplatform/v1/feature.proto | 39 +- .../cloud/aiplatform/v1/feature_group.proto | 95 + .../aiplatform/v1/feature_online_store.proto | 118 + .../feature_online_store_admin_service.proto | 618 + .../v1/feature_online_store_service.proto | 121 + .../v1/feature_registry_service.proto | 333 + .../cloud/aiplatform/v1/feature_view.proto | 123 + .../aiplatform/v1/feature_view_sync.proto | 57 + .../aiplatform/v1/featurestore_service.proto | 39 +- .../google/cloud/aiplatform/v1/index.proto | 55 + .../cloud/aiplatform/v1/index_endpoint.proto | 9 +- .../aiplatform/v1/llm_utility_service.proto | 100 + .../aiplatform/v1/machine_resources.proto | 4 + .../google/cloud/aiplatform/v1/model.proto | 48 + .../aiplatform/v1/prediction_service.proto | 28 + .../google/cloud/aiplatform/v1/study.proto | 72 + .../cloud/aiplatform/v1beta1/custom_job.proto | 6 + .../cloud/aiplatform/v1beta1/feature.proto | 42 +- .../v1beta1/feature_online_store.proto | 2 +- .../feature_online_store_service.proto | 41 +- .../v1beta1/featurestore_service.proto | 18 +- .../cloud/aiplatform/v1beta1/index.proto | 55 + .../aiplatform/v1beta1/index_endpoint.proto | 9 +- .../v1beta1/llm_utility_service.proto | 86 + .../v1beta1/machine_resources.proto | 4 + .../cloud/aiplatform/v1beta1/model.proto | 48 + .../aiplatform/v1beta1/pipeline_service.proto | 47 + .../v1beta1/prediction_service.proto | 2 +- .../cloud/aiplatform/v1beta1/study.proto | 72 + .../protos/protos.d.ts | 24607 ++-- .../google-cloud-aiplatform/protos/protos.js | 111664 +++++++++------ .../protos/protos.json | 3389 +- .../google-cloud-aiplatform/samples/README.md | 504 + ...min_service.create_feature_online_store.js | 78 + ...store_admin_service.create_feature_view.js | 86 + ...min_service.delete_feature_online_store.js | 70 + ...store_admin_service.delete_feature_view.js | 64 + ..._admin_service.get_feature_online_store.js | 61 + ...ne_store_admin_service.get_feature_view.js | 63 + ...ore_admin_service.get_feature_view_sync.js | 63 + ...dmin_service.list_feature_online_stores.js | 106 + ...e_admin_service.list_feature_view_syncs.js | 98 + ..._store_admin_service.list_feature_views.js | 108 + ...e_store_admin_service.sync_feature_view.js | 62 + ...min_service.update_feature_online_store.js | 78 + ...store_admin_service.update_feature_view.js | 76 + ...line_store_service.fetch_feature_values.js | 72 + ...feature_registry_service.create_feature.js | 80 + ...e_registry_service.create_feature_group.js | 78 + ...feature_registry_service.delete_feature.js | 65 + ...e_registry_service.delete_feature_group.js | 70 + .../feature_registry_service.get_feature.js | 65 + ...ture_registry_service.get_feature_group.js | 61 + ...re_registry_service.list_feature_groups.js | 106 + .../feature_registry_service.list_features.js | 131 + ...feature_registry_service.update_feature.js | 80 + ...e_registry_service.update_feature_group.js | 76 + .../v1/featurestore_service.create_feature.js | 8 +- .../v1/featurestore_service.delete_feature.js | 1 + .../v1/featurestore_service.get_feature.js | 4 +- .../v1/featurestore_service.list_features.js | 11 +- .../v1/featurestore_service.update_feature.js | 3 +- .../v1/llm_utility_service.compute_tokens.js | 69 + .../v1/llm_utility_service.count_tokens.js | 69 + ...t_metadata_google.cloud.aiplatform.v1.json | 1214 +- ...line_store_service.fetch_feature_values.js | 10 +- ...feature_registry_service.create_feature.js | 5 + .../feature_registry_service.get_feature.js | 3 +- .../feature_registry_service.list_features.js | 8 +- ...feature_registry_service.update_feature.js | 2 +- .../featurestore_service.create_feature.js | 5 + .../featurestore_service.get_feature.js | 3 +- .../featurestore_service.list_features.js | 8 +- .../featurestore_service.update_feature.js | 2 +- .../llm_utility_service.compute_tokens.js | 69 + ...line_service.batch_delete_pipeline_jobs.js | 71 + ...adata_google.cloud.aiplatform.v1beta1.json | 110 +- packages/google-cloud-aiplatform/src/index.ts | 18 + .../src/v1/dataset_service_client.ts | 603 +- .../src/v1/dataset_service_proto_list.json | 8 + .../src/v1/endpoint_service_client.ts | 603 +- .../src/v1/endpoint_service_proto_list.json | 8 + ...ature_online_store_admin_service_client.ts | 7321 + ...ine_store_admin_service_client_config.json | 78 + ...online_store_admin_service_proto_list.json | 129 + .../v1/feature_online_store_service_client.ts | 3722 + ...re_online_store_service_client_config.json | 30 + ...ature_online_store_service_proto_list.json | 129 + .../src/v1/feature_registry_service_client.ts | 6872 + ...eature_registry_service_client_config.json | 66 + .../feature_registry_service_proto_list.json | 129 + ...turestore_online_serving_service_client.ts | 469 +- ...ore_online_serving_service_proto_list.json | 8 + .../src/v1/featurestore_service_client.ts | 652 +- .../v1/featurestore_service_proto_list.json | 8 + .../src/v1/gapic_metadata.json | 336 + .../google-cloud-aiplatform/src/v1/index.ts | 4 + .../src/v1/index_endpoint_service_client.ts | 603 +- .../v1/index_endpoint_service_proto_list.json | 8 + .../src/v1/index_service_client.ts | 603 +- .../src/v1/index_service_proto_list.json | 8 + .../src/v1/job_service_client.ts | 603 +- .../src/v1/job_service_proto_list.json | 8 + .../src/v1/llm_utility_service_client.ts | 3808 + .../v1/llm_utility_service_client_config.json | 34 + .../v1/llm_utility_service_proto_list.json | 129 + .../src/v1/match_service_client.ts | 469 +- .../src/v1/match_service_proto_list.json | 8 + .../src/v1/metadata_service_client.ts | 603 +- .../src/v1/metadata_service_proto_list.json | 8 + .../src/v1/migration_service_client.ts | 603 +- .../src/v1/migration_service_proto_list.json | 8 + .../src/v1/model_garden_service_client.ts | 469 +- .../v1/model_garden_service_proto_list.json | 8 + .../src/v1/model_service_client.ts | 603 +- .../src/v1/model_service_proto_list.json | 8 + .../src/v1/pipeline_service_client.ts | 603 +- .../src/v1/pipeline_service_proto_list.json | 8 + .../src/v1/prediction_service_client.ts | 469 +- .../src/v1/prediction_service_proto_list.json | 8 + .../src/v1/schedule_service_client.ts | 603 +- .../src/v1/schedule_service_proto_list.json | 8 + .../src/v1/specialist_pool_service_client.ts | 603 +- .../specialist_pool_service_proto_list.json | 8 + .../src/v1/tensorboard_service_client.ts | 603 +- .../v1/tensorboard_service_proto_list.json | 8 + .../src/v1/vizier_service_client.ts | 603 +- .../src/v1/vizier_service_proto_list.json | 8 + .../src/v1beta1/dataset_service_client.ts | 82 + .../v1beta1/dataset_service_proto_list.json | 1 + ...deployment_resource_pool_service_client.ts | 82 + ...ment_resource_pool_service_proto_list.json | 1 + .../src/v1beta1/endpoint_service_client.ts | 82 + .../v1beta1/endpoint_service_proto_list.json | 1 + ...ature_online_store_admin_service_client.ts | 82 + ...online_store_admin_service_proto_list.json | 1 + .../feature_online_store_service_client.ts | 8 + ...ature_online_store_service_proto_list.json | 1 + .../feature_registry_service_client.ts | 116 +- .../feature_registry_service_proto_list.json | 1 + ...ore_online_serving_service_proto_list.json | 1 + .../v1beta1/featurestore_service_client.ts | 116 +- .../featurestore_service_proto_list.json | 1 + .../src/v1beta1/gapic_metadata.json | 34 + .../src/v1beta1/index.ts | 1 + .../v1beta1/index_endpoint_service_client.ts | 82 + .../index_endpoint_service_proto_list.json | 1 + .../src/v1beta1/index_service_client.ts | 82 + .../src/v1beta1/index_service_proto_list.json | 1 + .../src/v1beta1/job_service_client.ts | 82 + .../src/v1beta1/job_service_proto_list.json | 1 + .../src/v1beta1/llm_utility_service_client.ts | 3852 + .../llm_utility_service_client_config.json | 30 + .../llm_utility_service_proto_list.json | 140 + .../src/v1beta1/match_service_proto_list.json | 1 + .../src/v1beta1/metadata_service_client.ts | 82 + .../v1beta1/metadata_service_proto_list.json | 1 + .../src/v1beta1/migration_service_client.ts | 82 + .../v1beta1/migration_service_proto_list.json | 1 + .../model_garden_service_proto_list.json | 1 + .../src/v1beta1/model_service_client.ts | 82 + .../src/v1beta1/model_service_proto_list.json | 1 + .../persistent_resource_service_client.ts | 82 + ...ersistent_resource_service_proto_list.json | 1 + .../src/v1beta1/pipeline_service_client.ts | 272 + .../pipeline_service_client_config.json | 4 + .../v1beta1/pipeline_service_proto_list.json | 1 + .../prediction_service_proto_list.json | 1 + .../src/v1beta1/schedule_service_client.ts | 82 + .../v1beta1/schedule_service_proto_list.json | 1 + .../v1beta1/specialist_pool_service_client.ts | 82 + .../specialist_pool_service_proto_list.json | 1 + .../src/v1beta1/tensorboard_service_client.ts | 82 + .../tensorboard_service_proto_list.json | 1 + .../src/v1beta1/vizier_service_client.ts | 82 + .../v1beta1/vizier_service_proto_list.json | 1 + .../system-test/fixtures/sample/src/index.js | 7 + .../system-test/fixtures/sample/src/index.ts | 37 + .../test/gapic_dataset_service_v1.ts | 496 +- .../test/gapic_endpoint_service_v1.ts | 496 +- ...c_feature_online_store_admin_service_v1.ts | 7732 + .../gapic_feature_online_store_service_v1.ts | 4288 + .../test/gapic_feature_registry_service_v1.ts | 6754 + ..._featurestore_online_serving_service_v1.ts | 511 +- .../test/gapic_featurestore_service_v1.ts | 506 +- .../test/gapic_index_endpoint_service_v1.ts | 501 +- .../test/gapic_index_service_v1.ts | 496 +- .../test/gapic_job_service_v1.ts | 496 +- .../test/gapic_llm_utility_service_v1.ts | 4345 + .../test/gapic_llm_utility_service_v1beta1.ts | 4444 + .../test/gapic_match_service_v1.ts | 496 +- .../test/gapic_metadata_service_v1.ts | 496 +- .../test/gapic_migration_service_v1.ts | 496 +- .../test/gapic_model_garden_service_v1.ts | 496 +- .../test/gapic_model_service_v1.ts | 496 +- .../test/gapic_pipeline_service_v1.ts | 496 +- .../test/gapic_pipeline_service_v1beta1.ts | 236 + .../test/gapic_prediction_service_v1.ts | 496 +- .../test/gapic_schedule_service_v1.ts | 496 +- .../test/gapic_specialist_pool_service_v1.ts | 501 +- .../test/gapic_tensorboard_service_v1.ts | 496 +- .../test/gapic_vizier_service_v1.ts | 496 +- 204 files changed, 165478 insertions(+), 56531 deletions(-) create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_service.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_view.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.sync_feature_view.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature_group.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature_group.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_features.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature_group.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client_config.json create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client.ts create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client_config.json create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json create mode 100644 packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json create mode 100644 packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts create mode 100644 packages/google-cloud-aiplatform/src/v1/llm_utility_service_client_config.json create mode 100644 packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json create mode 100644 packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts create mode 100644 packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json create mode 100644 packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json create mode 100644 packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1.ts create mode 100644 packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1.ts create mode 100644 packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts create mode 100644 packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1.ts create mode 100644 packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 6689e6f83d0..704c3bf78e9 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -128,6 +128,30 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Endpoint_service.mutate_deployed_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js,packages/google-cloud-aiplatform/samples/README.md) | | Endpoint_service.undeploy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js,packages/google-cloud-aiplatform/samples/README.md) | | Endpoint_service.update_endpoint | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.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/endpoint_service.update_endpoint.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.create_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.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.create_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.create_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.create_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.create_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.delete_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.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.delete_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.delete_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.delete_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.delete_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.get_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.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.get_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.get_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.get_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.get_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.get_feature_view_sync | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.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.get_feature_view_sync.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.list_feature_online_stores | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.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.list_feature_online_stores.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.list_feature_view_syncs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.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.list_feature_view_syncs.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.list_feature_views | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.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.list_feature_views.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.sync_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.sync_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.sync_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_online_store_admin_service.update_feature_online_store | [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_online_store.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_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | +| 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_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) | +| Feature_registry_service.delete_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/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/v1/feature_registry_service.delete_feature_group.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/v1/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/v1/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/v1/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/v1/feature_registry_service.get_feature_group.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/v1/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/v1/feature_registry_service.list_feature_groups.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/v1/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/v1/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/v1/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/v1/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/v1/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/v1/feature_registry_service.update_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | | Featurestore_online_serving_service.read_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | | Featurestore_online_serving_service.streaming_read_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | | Featurestore_online_serving_service.write_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.write_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.write_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | @@ -202,6 +226,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js,packages/google-cloud-aiplatform/samples/README.md) | | Job_service.update_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js,packages/google-cloud-aiplatform/samples/README.md) | +| Llm_utility_service.compute_tokens | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.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/llm_utility_service.compute_tokens.js,packages/google-cloud-aiplatform/samples/README.md) | +| Llm_utility_service.count_tokens | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.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/llm_utility_service.count_tokens.js,packages/google-cloud-aiplatform/samples/README.md) | | Match_service.find_neighbors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/match_service.find_neighbors.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/match_service.find_neighbors.js,packages/google-cloud-aiplatform/samples/README.md) | | Match_service.read_index_datapoints | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/match_service.read_index_datapoints.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/match_service.read_index_datapoints.js,packages/google-cloud-aiplatform/samples/README.md) | | Metadata_service.add_context_artifacts_and_executions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js,packages/google-cloud-aiplatform/samples/README.md) | @@ -458,6 +484,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js,packages/google-cloud-aiplatform/samples/README.md) | | Job_service.update_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js,packages/google-cloud-aiplatform/samples/README.md) | +| Llm_utility_service.compute_tokens | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.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/llm_utility_service.compute_tokens.js,packages/google-cloud-aiplatform/samples/README.md) | | Match_service.find_neighbors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/match_service.find_neighbors.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/match_service.find_neighbors.js,packages/google-cloud-aiplatform/samples/README.md) | | Match_service.read_index_datapoints | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/match_service.read_index_datapoints.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/match_service.read_index_datapoints.js,packages/google-cloud-aiplatform/samples/README.md) | | Metadata_service.add_context_artifacts_and_executions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js,packages/google-cloud-aiplatform/samples/README.md) | @@ -519,6 +546,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Persistent_resource_service.get_persistent_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.get_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.get_persistent_resource.js,packages/google-cloud-aiplatform/samples/README.md) | | Persistent_resource_service.list_persistent_resources | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.list_persistent_resources.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.list_persistent_resources.js,packages/google-cloud-aiplatform/samples/README.md) | | Persistent_resource_service.update_persistent_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.update_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.update_persistent_resource.js,packages/google-cloud-aiplatform/samples/README.md) | +| Pipeline_service.batch_delete_pipeline_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_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/pipeline_service.batch_delete_pipeline_jobs.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.cancel_pipeline_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_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/pipeline_service.cancel_pipeline_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.cancel_training_pipeline | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.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/pipeline_service.cancel_training_pipeline.js,packages/google-cloud-aiplatform/samples/README.md) | | Pipeline_service.create_pipeline_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.create_pipeline_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/pipeline_service.create_pipeline_job.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 49bb9790b1f..b129738b6d5 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 @@ -181,6 +181,12 @@ message CustomJobSpec { // * AIP_TENSORBOARD_LOG_DIR = `//logs/` GcsDestination base_output_directory = 6; + // The ID of the location to store protected artifacts. e.g. us-central1. + // Populate only when the location is different than CustomJob location. + // List of supported locations: + // https://cloud.google.com/vertex-ai/docs/general/locations + string protected_artifact_location_id = 19; + // Optional. The name of a Vertex AI // [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which // this CustomJob will upload Tensorboard logs. Format: diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto index 327ec57d301..126a5a5aa6e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature.proto @@ -29,13 +29,15 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; -// Feature Metadata information that describes an attribute of an entity type. -// For example, apple is an entity type, and color is a feature that describes -// apple. +// Feature Metadata information. +// For example, color is a feature that describes an apple. message Feature { option (google.api.resource) = { type: "aiplatform.googleapis.com/Feature" pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}" + pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}" + plural: "features" + singular: "feature" }; // A list of historical @@ -69,6 +71,7 @@ message Feature { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Only applicable for Vertex AI Legacy Feature Store. // An enum representing the value type of a feature. enum ValueType { // The value type is unspecified. @@ -105,6 +108,7 @@ message Feature { // Immutable. Name of the Feature. // Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` // // The last part feature is assigned by the client. The feature can be up to // 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, @@ -115,17 +119,17 @@ message Feature { // Description of the Feature. string description = 2; - // Required. Immutable. Type of Feature value. - ValueType value_type = 3 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; + // Immutable. Only applicable for Vertex AI Feature Store (Legacy). + // Type of Feature value. + ValueType value_type = 3 [(google.api.field_behavior) = IMMUTABLE]; - // Output only. Timestamp when this EntityType was created. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // Timestamp when this EntityType was created. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Timestamp when this EntityType was most recently updated. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // Timestamp when this EntityType was most recently updated. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -146,8 +150,10 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type + // Optional. Only applicable for Vertex AI Feature Store (Legacy). + // If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, // STRING, DOUBLE or INT64 can enable monitoring. // @@ -155,8 +161,13 @@ message Feature { // config on EntityType. bool disable_monitoring = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The list of historical stats and anomalies with specified - // objectives. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // The list of historical stats and anomalies with specified objectives. repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Only applicable for Vertex AI Feature Store. + // The name of the BigQuery Table/View columnn hosting data for this version. + // If no value is provided, will use feature_id. + string version_column_name = 106; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto new file mode 100644 index 00000000000..afe8c9ebd75 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto @@ -0,0 +1,95 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureGroupProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Vertex AI Feature Group. +message FeatureGroup { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureGroup" + pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}" + plural: "featureGroups" + singular: "featureGroup" + }; + + // Input source type for BigQuery Tables and Views. + message BigQuery { + // Required. Immutable. The BigQuery source URI that points to either a + // BigQuery Table or View. + BigQuerySource big_query_source = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Optional. Columns to construct entity_id / row keys. Currently only + // supports 1 entity_id_column. If not provided defaults to `entity_id`. + repeated string entity_id_columns = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + oneof source { + // Indicates that features for this group come from BigQuery Table/View. + // By default treats the source as a sparse time series source, which is + // required to have an entity_id and a feature_timestamp column in the + // source. + BigQuery big_query = 7; + } + + // Output only. Name of the FeatureGroup. Format: + // `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureGroup was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureGroup 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 + // FeatureGroup. + // + // 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 + // FeatureGroup(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 FeatureGroup. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto new file mode 100644 index 00000000000..38e7169973b --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto @@ -0,0 +1,118 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureOnlineStoreProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Vertex AI Feature Online Store provides a centralized repository for serving +// ML features and embedding indexes at low latency. The Feature Online Store is +// a top-level container. +message FeatureOnlineStore { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureOnlineStore" + pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}" + }; + + message Bigtable { + message AutoScaling { + // Required. The minimum number of nodes to scale down to. Must be greater + // than or equal to 1. + int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of nodes to scale up to. Must be greater + // than or equal to min_node_count, and less than or equal to 10 times of + // 'min_node_count'. + int32 max_node_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A percentage of the cluster's CPU capacity. Can be from 10% + // to 80%. When a cluster's CPU utilization exceeds the target that you + // have set, Bigtable immediately adds nodes to the cluster. When CPU + // utilization is substantially lower than the target, Bigtable removes + // nodes. If not set will default to 50%. + int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Autoscaling config applied to Bigtable Instance. + AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Possible states a featureOnlineStore can have. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // State when the featureOnlineStore configuration is not being updated and + // the fields reflect the current configuration of the featureOnlineStore. + // The featureOnlineStore is usable in this state. + STABLE = 1; + + // The state of the featureOnlineStore configuration when it is being + // updated. During an update, the fields reflect either the original + // configuration or the updated configuration of the featureOnlineStore. The + // featureOnlineStore is still usable in this state. + UPDATING = 2; + } + + oneof storage_type { + // Contains settings for the Cloud Bigtable instance that will be created + // to serve featureValues for all FeatureViews under this + // FeatureOnlineStore. + Bigtable bigtable = 8; + } + + // Output only. Name of the FeatureOnlineStore. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureOnlineStore was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureOnlineStore was last updated. + google.protobuf.Timestamp update_time = 4 + [(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 = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels with user-defined metadata to organize your + // FeatureOnlineStore. + // + // 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 + // FeatureOnlineStore(System labels are excluded)." System reserved label keys + // are prefixed with "aiplatform.googleapis.com/" and are immutable. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the featureOnlineStore. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 new file mode 100644 index 00000000000..8733cb31c2f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto @@ -0,0 +1,618 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/feature_online_store.proto"; +import "google/cloud/aiplatform/v1/feature_view.proto"; +import "google/cloud/aiplatform/v1/feature_view_sync.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureOnlineStoreAdminServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// The service that handles CRUD and List for resources for +// FeatureOnlineStore. +service FeatureOnlineStoreAdminService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new FeatureOnlineStore in a given project and location. + rpc CreateFeatureOnlineStore(CreateFeatureOnlineStoreRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/featureOnlineStores" + body: "feature_online_store" + }; + option (google.api.method_signature) = + "parent,feature_online_store,feature_online_store_id"; + option (google.longrunning.operation_info) = { + response_type: "FeatureOnlineStore" + metadata_type: "CreateFeatureOnlineStoreOperationMetadata" + }; + } + + // Gets details of a single FeatureOnlineStore. + rpc GetFeatureOnlineStore(GetFeatureOnlineStoreRequest) + returns (FeatureOnlineStore) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/featureOnlineStores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FeatureOnlineStores in a given project and location. + rpc ListFeatureOnlineStores(ListFeatureOnlineStoresRequest) + returns (ListFeatureOnlineStoresResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/featureOnlineStores" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single FeatureOnlineStore. + rpc UpdateFeatureOnlineStore(UpdateFeatureOnlineStoreRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{feature_online_store.name=projects/*/locations/*/featureOnlineStores/*}" + body: "feature_online_store" + }; + option (google.api.method_signature) = "feature_online_store,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FeatureOnlineStore" + metadata_type: "UpdateFeatureOnlineStoreOperationMetadata" + }; + } + + // Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not + // contain any FeatureViews. + rpc DeleteFeatureOnlineStore(DeleteFeatureOnlineStoreRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/featureOnlineStores/*}" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a new FeatureView in a given FeatureOnlineStore. + rpc CreateFeatureView(CreateFeatureViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews" + body: "feature_view" + }; + option (google.api.method_signature) = + "parent,feature_view,feature_view_id"; + option (google.longrunning.operation_info) = { + response_type: "FeatureView" + metadata_type: "CreateFeatureViewOperationMetadata" + }; + } + + // Gets details of a single FeatureView. + rpc GetFeatureView(GetFeatureViewRequest) returns (FeatureView) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FeatureViews in a given FeatureOnlineStore. + rpc ListFeatureViews(ListFeatureViewsRequest) + returns (ListFeatureViewsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single FeatureView. + rpc UpdateFeatureView(UpdateFeatureViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{feature_view.name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}" + body: "feature_view" + }; + option (google.api.method_signature) = "feature_view,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FeatureView" + metadata_type: "UpdateFeatureViewOperationMetadata" + }; + } + + // Deletes a single FeatureView. + rpc DeleteFeatureView(DeleteFeatureViewRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Triggers on-demand sync for the FeatureView. + rpc SyncFeatureView(SyncFeatureViewRequest) + returns (SyncFeatureViewResponse) { + option (google.api.http) = { + post: "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:sync" + body: "*" + }; + option (google.api.method_signature) = "feature_view"; + } + + // Gets details of a single FeatureViewSync. + rpc GetFeatureViewSync(GetFeatureViewSyncRequest) returns (FeatureViewSync) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/featureViewSyncs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FeatureViewSyncs in a given FeatureView. + rpc ListFeatureViewSyncs(ListFeatureViewSyncsRequest) + returns (ListFeatureViewSyncsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/featureOnlineStores/*/featureViews/*}/featureViewSyncs" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [FeatureOnlineStoreAdminService.CreateFeatureOnlineStore][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore]. +message CreateFeatureOnlineStoreRequest { + // Required. The resource name of the Location to create FeatureOnlineStores. + // Format: + // `projects/{project}/locations/{location}'` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureOnlineStore" + } + ]; + + // Required. The FeatureOnlineStore to create. + FeatureOnlineStore feature_online_store = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for this FeatureOnlineStore, which will become the + // final component of the FeatureOnlineStore'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 project and location. + string feature_online_store_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [FeatureOnlineStoreAdminService.GetFeatureOnlineStore][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore]. +message GetFeatureOnlineStoreRequest { + // Required. The name of the FeatureOnlineStore resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureOnlineStore" + } + ]; +} + +// Request message for +// [FeatureOnlineStoreAdminService.ListFeatureOnlineStores][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores]. +message ListFeatureOnlineStoresRequest { + // Required. The resource name of the Location to list FeatureOnlineStores. + // Format: + // `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureOnlineStore" + } + ]; + + // Lists the FeatureOnlineStores 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"` + // FeatureOnlineStores created or updated after 2020-01-01. + // * `labels.env = "prod"` + // FeatureOnlineStores with label "env" set to "prod". + string filter = 2; + + // The maximum number of FeatureOnlineStores to return. The service may return + // fewer than this value. If unspecified, at most 100 FeatureOnlineStores will + // be returned. The maximum value is 100; any value greater than 100 will be + // coerced to 100. + int32 page_size = 3; + + // A page token, received from a previous + // [FeatureOnlineStoreAdminService.ListFeatureOnlineStores][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeatureOnlineStoreAdminService.ListFeatureOnlineStores][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores] + // 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. + // Use "desc" after a field name for descending. + // Supported Fields: + // + // * `create_time` + // * `update_time` + string order_by = 5; +} + +// Response message for +// [FeatureOnlineStoreAdminService.ListFeatureOnlineStores][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores]. +message ListFeatureOnlineStoresResponse { + // The FeatureOnlineStores matching the request. + repeated FeatureOnlineStore feature_online_stores = 1; + + // A token, which can be sent as + // [ListFeatureOnlineStoresRequest.page_token][google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore]. +message UpdateFeatureOnlineStoreRequest { + // Required. The FeatureOnlineStore's `name` field is used to identify the + // FeatureOnlineStore to be updated. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + FeatureOnlineStore feature_online_store = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // FeatureOnlineStore 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: + // + // * `big_query_source` + // * `labels` + // * `sync_config` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore]. +message DeleteFeatureOnlineStoreRequest { + // Required. The name of the FeatureOnlineStore to be deleted. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureOnlineStore" + } + ]; + + // If set to true, any FeatureViews and Features for this FeatureOnlineStore + // will also be deleted. (Otherwise, the request will only work if the + // FeatureOnlineStore has no FeatureViews.) + bool force = 2; +} + +// Request message for +// [FeatureOnlineStoreAdminService.CreateFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureView]. +message CreateFeatureViewRequest { + // Required. The resource name of the FeatureOnlineStore to create + // FeatureViews. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureOnlineStore" + } + ]; + + // Required. The FeatureView to create. + FeatureView feature_view = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the FeatureView, which will become the final + // component of the FeatureView'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 a FeatureOnlineStore. + string feature_view_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Immutable. If set to true, one on demand sync will be run immediately, + // regardless whether the + // [FeatureView.sync_config][google.cloud.aiplatform.v1.FeatureView.sync_config] + // is configured or not. + bool run_sync_immediately = 4 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Request message for +// [FeatureOnlineStoreAdminService.GetFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureView]. +message GetFeatureViewRequest { + // Required. The name of the FeatureView resource. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureView" + } + ]; +} + +// Request message for +// [FeatureOnlineStoreAdminService.ListFeatureViews][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews]. +message ListFeatureViewsRequest { + // Required. The resource name of the FeatureOnlineStore to list FeatureViews. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureView" + } + ]; + + // Lists the FeatureViews that match the filter expression. The following + // filters 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 as well as key presence. + // + // Examples: + // + // * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + // update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews + // created or updated after 2020-01-31T15:30:00.000000Z. + // * `labels.active = yes AND labels.env = prod` --> FeatureViews having both + // (active: yes) and (env: prod) labels. + // * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + // key. + string filter = 2; + + // The maximum number of FeatureViews to return. The service may return fewer + // than this value. If unspecified, at most 1000 FeatureViews will be + // returned. The maximum value is 1000; any value greater than 1000 will be + // coerced to 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [FeatureOnlineStoreAdminService.ListFeatureViews][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeatureOnlineStoreAdminService.ListFeatureViews][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews] + // 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. + // Use "desc" after a field name for descending. + // + // Supported fields: + // + // * `feature_view_id` + // * `create_time` + // * `update_time` + string order_by = 5; +} + +// Response message for +// [FeatureOnlineStoreAdminService.ListFeatureViews][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews]. +message ListFeatureViewsResponse { + // The FeatureViews matching the request. + repeated FeatureView feature_views = 1; + + // A token, which can be sent as + // [ListFeatureViewsRequest.page_token][google.cloud.aiplatform.v1.ListFeatureViewsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [FeatureOnlineStoreAdminService.UpdateFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView]. +message UpdateFeatureViewRequest { + // Required. The FeatureView's `name` field is used to identify the + // FeatureView to be updated. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + FeatureView feature_view = 1 [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // FeatureView 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: + // + // * `labels` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [FeatureOnlineStoreAdminService.DeleteFeatureViews][]. +message DeleteFeatureViewRequest { + // Required. The name of the FeatureView to be deleted. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureView" + } + ]; +} + +// Details of operations that perform create FeatureOnlineStore. +message CreateFeatureOnlineStoreOperationMetadata { + // Operation metadata for FeatureOnlineStore. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update FeatureOnlineStore. +message UpdateFeatureOnlineStoreOperationMetadata { + // Operation metadata for FeatureOnlineStore. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform create FeatureView. +message CreateFeatureViewOperationMetadata { + // Operation metadata for FeatureView Create. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update FeatureView. +message UpdateFeatureViewOperationMetadata { + // Operation metadata for FeatureView Update. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for +// [FeatureOnlineStoreAdminService.SyncFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView]. +message SyncFeatureViewRequest { + // Required. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + string feature_view = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureView" + } + ]; +} + +// Respose message for +// [FeatureOnlineStoreAdminService.SyncFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView]. +message SyncFeatureViewResponse { + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + string feature_view_sync = 1; +} + +// Request message for +// [FeatureOnlineStoreAdminService.GetFeatureViewSync][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSync]. +message GetFeatureViewSyncRequest { + // Required. The name of the FeatureViewSync resource. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureViewSync" + } + ]; +} + +// Request message for +// [FeatureOnlineStoreAdminService.ListFeatureViewSyncs][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs]. +message ListFeatureViewSyncsRequest { + // Required. The resource name of the FeatureView to list FeatureViewSyncs. + // Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureView" + } + ]; + + // Lists the FeatureViewSyncs that match the filter expression. The following + // filters are supported: + // + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + // Values must be in RFC 3339 format. + // + // Examples: + // + // * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs + // created after 2020-01-31T15:30:00.000000Z. + string filter = 2; + + // The maximum number of FeatureViewSyncs to return. The service may return + // fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will + // be returned. The maximum value is 1000; any value greater than 1000 will be + // coerced to 1000. + int32 page_size = 3; + + // A page token, received from a previous + // [FeatureOnlineStoreAdminService.ListFeatureViewSyncs][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeatureOnlineStoreAdminService.ListFeatureViewSyncs][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs] + // 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. + // Use "desc" after a field name for descending. + // + // Supported fields: + // + // * `create_time` + string order_by = 5; +} + +// Response message for +// [FeatureOnlineStoreAdminService.ListFeatureViewSyncs][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs]. +message ListFeatureViewSyncsResponse { + // The FeatureViewSyncs matching the request. + repeated FeatureViewSync feature_view_syncs = 1; + + // A token, which can be sent as + // [ListFeatureViewSyncsRequest.page_token][google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest.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/v1/feature_online_store_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_service.proto new file mode 100644 index 00000000000..957b4ade4fe --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_service.proto @@ -0,0 +1,121 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/featurestore_online_service.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureOnlineStoreServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +service FeatureOnlineStoreService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Fetch feature values under a FeatureView. + rpc FetchFeatureValues(FetchFeatureValuesRequest) + returns (FetchFeatureValuesResponse) { + option (google.api.http) = { + post: "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:fetchFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "feature_view, data_key"; + } +} + +// Format of the data in the Feature View. +enum FeatureViewDataFormat { + // Not set. Will be treated as the KeyValue format. + FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0; + + // Return response data in key-value format. + KEY_VALUE = 1; + + // Return response data in proto Struct format. + PROTO_STRUCT = 2; +} + +// Lookup key for a feature view. +message FeatureViewDataKey { + oneof key_oneof { + // String key to use for lookup. + string key = 1; + } +} + +// Request message for +// [FeatureOnlineStoreService.FetchFeatureValues][google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues]. +// All the features under the requested feature view will be returned. +message FetchFeatureValuesRequest { + // Required. FeatureView resource format + // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + string feature_view = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureView" + } + ]; + + // Optional. The request key to fetch feature values for. + FeatureViewDataKey data_key = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Response data format. If not set, + // [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE] + // will be used. + FeatureViewDataFormat data_format = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [FeatureOnlineStoreService.FetchFeatureValues][google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues] +message FetchFeatureValuesResponse { + // Response structure in the format of key (feature name) and (feature) value + // pair. + message FeatureNameValuePairList { + // Feature name & value pair. + message FeatureNameValuePair { + oneof data { + // Feature value. + FeatureValue value = 2; + } + + // Feature short name. + string name = 1; + } + + // List of feature names and values. + repeated FeatureNameValuePair features = 1; + } + + oneof format { + // Feature values in KeyValue format. + FeatureNameValuePairList key_values = 3; + + // Feature values in proto Struct format. + google.protobuf.Struct proto_struct = 2; + } +} 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 new file mode 100644 index 00000000000..e02ca56c196 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto @@ -0,0 +1,333 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/feature.proto"; +import "google/cloud/aiplatform/v1/feature_group.proto"; +import "google/cloud/aiplatform/v1/featurestore_service.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureRegistryServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// The service that handles CRUD and List for resources for +// FeatureRegistry. +service FeatureRegistryService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a new FeatureGroup in a given project and location. + rpc CreateFeatureGroup(CreateFeatureGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/featureGroups" + body: "feature_group" + }; + option (google.api.method_signature) = + "parent,feature_group,feature_group_id"; + option (google.longrunning.operation_info) = { + response_type: "FeatureGroup" + metadata_type: "CreateFeatureGroupOperationMetadata" + }; + } + + // Gets details of a single FeatureGroup. + rpc GetFeatureGroup(GetFeatureGroupRequest) returns (FeatureGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/featureGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FeatureGroups in a given project and location. + rpc ListFeatureGroups(ListFeatureGroupsRequest) + returns (ListFeatureGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/featureGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single FeatureGroup. + rpc UpdateFeatureGroup(UpdateFeatureGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{feature_group.name=projects/*/locations/*/featureGroups/*}" + body: "feature_group" + }; + option (google.api.method_signature) = "feature_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FeatureGroup" + metadata_type: "UpdateFeatureGroupOperationMetadata" + }; + } + + // Deletes a single FeatureGroup. + rpc DeleteFeatureGroup(DeleteFeatureGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/featureGroups/*}" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a new Feature in a given FeatureGroup. + rpc CreateFeature(CreateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/featureGroups/*}/features" + body: "feature" + }; + option (google.api.method_signature) = "parent,feature,feature_id"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "CreateFeatureOperationMetadata" + }; + } + + // Gets details of a single Feature. + rpc GetFeature(GetFeatureRequest) returns (Feature) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Features in a given FeatureGroup. + rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/featureGroups/*}/features" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the parameters of a single Feature. + rpc UpdateFeature(UpdateFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{feature.name=projects/*/locations/*/featureGroups/*/features/*}" + body: "feature" + }; + option (google.api.method_signature) = "feature,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Feature" + metadata_type: "UpdateFeatureOperationMetadata" + }; + } + + // Deletes a single Feature. + rpc DeleteFeature(DeleteFeatureRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } +} + +// Request message for +// [FeatureRegistryService.CreateFeatureGroup][google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroup]. +message CreateFeatureGroupRequest { + // Required. The resource name of the Location to create FeatureGroups. + // Format: + // `projects/{project}/locations/{location}'` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureGroup" + } + ]; + + // Required. The FeatureGroup to create. + FeatureGroup feature_group = 2 [(google.api.field_behavior) = REQUIRED]; + + // 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 + // `[a-z0-9_]`. The first character cannot be a number. + // + // The value must be unique within the project and location. + string feature_group_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [FeatureRegistryService.GetFeatureGroup][google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroup]. +message GetFeatureGroupRequest { + // Required. The name of the FeatureGroup resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureGroup" + } + ]; +} + +// Request message for +// [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups]. +message ListFeatureGroupsRequest { + // Required. The resource name of the Location to list FeatureGroups. + // Format: + // `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureGroup" + } + ]; + + // 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". + string filter = 2; + + // 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. + int32 page_size = 3; + + // A page token, received from a previous + // [FeatureGroupAdminService.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. + string page_token = 4; + + // 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; +} + +// Response message for +// [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups]. +message ListFeatureGroupsResponse { + // The FeatureGroups matching the request. + repeated FeatureGroup feature_groups = 1; + + // A token, which can be sent as + // [ListFeatureGroupsRequest.page_token][google.cloud.aiplatform.v1.ListFeatureGroupsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [FeatureRegistryService.UpdateFeatureGroup][google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup]. +message UpdateFeatureGroupRequest { + // Required. The FeatureGroup's `name` field is used to identify the + // FeatureGroup to be updated. Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}` + FeatureGroup feature_group = 1 [(google.api.field_behavior) = REQUIRED]; + + // Field mask is used to specify the fields to be overwritten in the + // FeatureGroup 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: + // + // * `labels` + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for +// [FeatureRegistryService.DeleteFeatureGroup][google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroup]. +message DeleteFeatureGroupRequest { + // Required. The name of the FeatureGroup to be deleted. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureGroup" + } + ]; + + // If set to true, any Features under this FeatureGroup + // will also be deleted. (Otherwise, the request will only work if the + // FeatureGroup has no Features.) + bool force = 2; +} + +// Details of operations that perform create FeatureGroup. +message CreateFeatureGroupOperationMetadata { + // Operation metadata for FeatureGroup. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update FeatureGroup. +message UpdateFeatureGroupOperationMetadata { + // Operation metadata for FeatureGroup. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform create FeatureGroup. +message CreateRegistryFeatureOperationMetadata { + // Operation metadata for Feature. + GenericOperationMetadata generic_metadata = 1; +} + +// Details of operations that perform update Feature. +message UpdateFeatureOperationMetadata { + // Operation metadata for Feature Update. + GenericOperationMetadata generic_metadata = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto new file mode 100644 index 00000000000..e1aa9978d7e --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto @@ -0,0 +1,123 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureViewProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// FeatureView is representation of values that the FeatureOnlineStore will +// serve based on its syncConfig. +message FeatureView { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureView" + pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}" + }; + + message BigQuerySource { + // Required. The BigQuery view URI that will be materialized on each sync + // trigger based on FeatureView.SyncConfig. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Columns to construct entity_id / row keys. Start by supporting + // 1 only. + repeated string entity_id_columns = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + message SyncConfig { + // 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; + } + + // A Feature Registry source for features that need to be synced to Online + // Store. + message FeatureRegistrySource { + // Features belonging to a single feature group that will be + // synced to Online Store. + message FeatureGroup { + // Required. Identifier of the feature group. + string feature_group_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Identifiers of features under the feature group. + repeated string feature_ids = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. List of features that need to be synced to Online Store. + repeated FeatureGroup feature_groups = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + oneof source { + // Optional. Configures how data is supposed to be extracted from a BigQuery + // source to be loaded onto the FeatureOnlineStore. + BigQuerySource big_query_source = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the features from a Feature Registry source that + // need to be loaded onto the FeatureOnlineStore. + FeatureRegistrySource feature_registry_source = 9 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. Name of the FeatureView. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureView was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureView 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 + // FeatureViews. + // + // 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 + // FeatureOnlineStore(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]; + + // Configures when data is to be synced/updated for this FeatureView. At the + // end of the sync the latest featureValues for each entityId of this + // FeatureView are made ready for online serving. + SyncConfig sync_config = 7; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto new file mode 100644 index 00000000000..278d1a995d4 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto @@ -0,0 +1,57 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/interval.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "FeatureViewSyncProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::Aiplatform::V1"; + +// FeatureViewSync is a representation of sync operation which copies data from +// data source to Feature View in Online Store. +message FeatureViewSync { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureViewSync" + pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync" + }; + + // Output only. Name of the FeatureViewSync. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this FeatureViewSync is created. Creation of a + // FeatureViewSync means that the job is pending / waiting for sufficient + // resources but may not have started the actual data transfer yet. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this FeatureViewSync is finished. + google.type.Interval run_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Final status of the FeatureViewSync. + google.rpc.Status final_status = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 424be12a6fc..c40bd984fae 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 @@ -950,10 +950,14 @@ message DeleteEntityTypeRequest { // Request message for // [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature]. +// Request message for +// [FeatureRegistryService.CreateFeature][google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature]. message CreateFeatureRequest { - // Required. The resource name of the EntityType to create a Feature. - // Format: + // Required. The resource name of the EntityType or FeatureGroup to create a + // Feature. 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}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -970,7 +974,7 @@ message CreateFeatureRequest { // 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 an EntityType. + // The value must be unique within an EntityType/FeatureGroup. string feature_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1005,10 +1009,14 @@ message BatchCreateFeaturesResponse { // Request message for // [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1.FeaturestoreService.GetFeature]. +// Request message for +// [FeatureRegistryService.GetFeature][google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature]. message GetFeatureRequest { // Required. The name of the Feature resource. - // Format: + // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1019,10 +1027,14 @@ message GetFeatureRequest { // Request message for // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. +// Request message for +// [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures]. message ListFeaturesRequest { // Required. The resource name of the Location to list Features. - // Format: + // 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}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1060,10 +1072,14 @@ message ListFeaturesRequest { // A page token, received from a previous // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] + // call or + // [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures] // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] + // or or + // [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures] // must match the call that provided the page token. string page_token = 4; @@ -1072,7 +1088,7 @@ message ListFeaturesRequest { // Supported fields: // // * `feature_id` - // * `value_type` + // * `value_type` (Not supported for FeatureRegistry Feature) // * `create_time` // * `update_time` string order_by = 5; @@ -1080,6 +1096,7 @@ message ListFeaturesRequest { // Mask specifying which fields to read. google.protobuf.FieldMask read_mask = 6; + // Only applicable for Vertex AI Feature Store (Legacy). // If set, return the most recent // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count] // of stats for each Feature in response. Valid value is [0, 10]. If number of @@ -1091,6 +1108,8 @@ message ListFeaturesRequest { // Response message for // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. +// Response message for +// [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures]. message ListFeaturesResponse { // The Features matching the request. repeated Feature features = 1; @@ -1216,11 +1235,14 @@ message SearchFeaturesResponse { // Request message for // [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature]. +// Request message for +// [FeatureRegistryService.UpdateFeature][google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature]. message UpdateFeatureRequest { // 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}` Feature feature = 1 [(google.api.field_behavior) = REQUIRED]; // Field mask is used to specify the fields to be overwritten in the @@ -1235,16 +1257,19 @@ message UpdateFeatureRequest { // // * `description` // * `labels` - // * `disable_monitoring` + // * `disable_monitoring` (Not supported for FeatureRegistry Feature) google.protobuf.FieldMask update_mask = 2; } // Request message for // [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature]. +// Request message for +// [FeatureRegistryService.DeleteFeature][google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature]. message DeleteFeatureRequest { // Required. The name of the Features to be deleted. // Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto index 1dfaca9b8ac..6766741240e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto @@ -142,6 +142,55 @@ message IndexDatapoint { repeated string deny_list = 3; } + // This field allows restricts to be based on numeric comparisons rather + // than categorical tokens. + message NumericRestriction { + // Which comparison operator to use. Should be specified for queries only; + // specifying this for a datapoint is an error. + // + // Datapoints for which Operator is true relative to the query's Value + // field will be allowlisted. + enum Operator { + // Default value of the enum. + OPERATOR_UNSPECIFIED = 0; + + // Datapoints are eligible iff their value is < the query's. + LESS = 1; + + // Datapoints are eligible iff their value is <= the query's. + LESS_EQUAL = 2; + + // Datapoints are eligible iff their value is == the query's. + EQUAL = 3; + + // Datapoints are eligible iff their value is >= the query's. + GREATER_EQUAL = 4; + + // Datapoints are eligible iff their value is > the query's. + GREATER = 5; + } + + // The type of Value must be consistent for all datapoints with a given + // namespace name. This is verified at runtime. + oneof Value { + // Represents 64 bit integer. + int64 value_int = 2; + + // Represents 32 bit float. + float value_float = 3; + + // Represents 64 bit float. + double value_double = 4; + } + + // The namespace of this restriction. e.g.: cost. + string namespace = 1; + + // This MUST be specified for queries and must NOT be specified for + // datapoints. + Operator op = 5; + } + // Crowding tag is a constraint on a neighbor list produced by nearest // neighbor search requiring that no more than some value k' of the k // neighbors returned have the same value of crowding_attribute. @@ -167,6 +216,12 @@ message IndexDatapoint { // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of Restrict of the datapoint, used to perform "restricted + // searches" where boolean rule are used to filter the subset of the database + // eligible for matching. This uses numeric comparisons. + repeated NumericRestriction numeric_restricts = 6 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. CrowdingTag of the datapoint, the number of neighbors to return // in each crowding can be configured during query. CrowdingTag crowding_tag = 5 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index cca3fc3d5dd..d8daf55aff5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -190,10 +190,11 @@ message DeployedIndex { [(google.api.field_behavior) = OPTIONAL]; // Optional. A description of resources that are dedicated to the - // DeployedIndex, and that need a higher degree of manual configuration. If - // min_replica_count is not set, the default value is 2 (we don't provide SLA - // when min_replica_count=1). If max_replica_count is not set, the default - // value is min_replica_count. The max allowed replica count is 1000. + // DeployedIndex, and that need a higher degree of manual configuration. The + // field min_replica_count must be set to a value strictly greater than 0, or + // else validation will fail. We don't provide SLA when min_replica_count=1. + // If max_replica_count is not set, the default value is min_replica_count. + // The max allowed replica count is 1000. // // Available machine types for SMALL shard: // e2-standard-2 and all machine types available for MEDIUM and LARGE shard. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto new file mode 100644 index 00000000000..3cd98bd0837 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto @@ -0,0 +1,100 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/prediction_service.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "LlmUtilityServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Service for LLM related utility functions. +service LlmUtilityService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Perform a token counting. + rpc CountTokens(CountTokensRequest) returns (CountTokensResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,instances"; + } + + // Return a list of tokens based on the input text. + rpc ComputeTokens(ComputeTokensRequest) returns (ComputeTokensResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,instances"; + } +} + +// Request message for ComputeTokens RPC call. +message ComputeTokensRequest { + // Required. The name of the Endpoint requested to get lists of tokens and + // token ids. + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The instances that are the input to token computing API call. + // Schema is identical to the prediction schema of the text model, even for + // the non-text models, like chat models, or Codey models. + repeated google.protobuf.Value instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Tokens info with a list of tokens and the corresponding list of token ids. +message TokensInfo { + // A list of tokens from the input. + repeated bytes tokens = 1; + + // A list of token ids from the input. + repeated int64 token_ids = 2; +} + +// Response message for ComputeTokens RPC call. +message ComputeTokensResponse { + // Lists of tokens info from the input. A ComputeTokensRequest could have + // multiple instances with a prompt in each instance. We also need to return + // lists of tokens info for the request with multiple instances. + repeated TokensInfo tokens_info = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto index 2a307e51f80..041ea2e3d0a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto @@ -52,6 +52,10 @@ message MachineSpec { // The number of accelerators to attach to the machine. int32 accelerator_count = 3; + + // Immutable. The topology of the TPUs. Corresponds to the TPU topologies + // available from GKE. (Example: tpu_topology: "2x2x1"). + string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; } // A description of resources that are dedicated to a DeployedModel, and 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 47db405be7f..05d3ce28380 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 @@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1/deployed_model_ref.proto"; import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/env_var.proto"; import "google/cloud/aiplatform/v1/explanation.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -690,6 +691,21 @@ message ModelContainerSpec { // [`AIP_DEPLOYED_MODEL_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Deployment timeout. + // Limit for deployment timeout is 2 hours. + google.protobuf.Duration deployment_timeout = 10 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The amount of the VM memory to reserve as the shared memory for + // the model in megabytes. + int64 shared_memory_size_mb = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Specification for Kubernetes startup probe. + Probe startup_probe = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Specification for Kubernetes readiness probe. + Probe health_probe = 13 [(google.api.field_behavior) = IMMUTABLE]; } // Represents a network port in a container. @@ -730,3 +746,35 @@ message ModelSourceInfo { // pertains to the original. bool copy = 2; } + +// Probe describes a health check to be performed against a container to +// determine whether it is alive or ready to receive traffic. +message Probe { + // ExecAction specifies a command to execute. + message ExecAction { + // Command is the command line to execute inside the container, the working + // directory for the command is root ('/') in the container's filesystem. + // The command is simply exec'd, it is not run inside a shell, so + // traditional shell instructions ('|', etc) won't work. To use a shell, you + // need to explicitly call out to that shell. Exit status of 0 is treated as + // live/healthy and non-zero is unhealthy. + repeated string command = 1; + } + + oneof probe_type { + // Exec specifies the action to take. + ExecAction exec = 1; + } + + // How often (in seconds) to perform the probe. Default to 10 seconds. + // Minimum value is 1. Must be less than timeout_seconds. + // + // Maps to Kubernetes probe argument 'periodSeconds'. + int32 period_seconds = 2; + + // Number of seconds after which the probe times out. Defaults to 1 second. + // Minimum value is 1. Must be greater or equal to period_seconds. + // + // Maps to Kubernetes probe argument 'timeoutSeconds'. + int32 timeout_seconds = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto index 52b5d6df615..881f981799e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -312,3 +312,31 @@ message ExplainResponse { // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. repeated google.protobuf.Value predictions = 3; } + +// Request message for [PredictionService.CountTokens][]. +message CountTokensRequest { + // Required. The name of the Endpoint requested to perform token counting. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The instances that are the input to token counting call. + // Schema is identical to the prediction schema of the underlying model. + repeated google.protobuf.Value instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [PredictionService.CountTokens][]. +message CountTokensResponse { + // The total number of tokens counted across all instances from the request. + int32 total_tokens = 1; + + // The total number of billable characters counted across all instances from + // the request. + int32 total_billable_characters = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto index d4e33d3f678..6e39f3f4038 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto @@ -21,6 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -213,6 +214,17 @@ message TrialContext { repeated Trial.Parameter parameters = 2; } +// Time-based Constraint for Study +message StudyTimeConstraint { + oneof constraint { + // Counts the wallclock time passed since the creation of this Study. + google.protobuf.Duration max_duration = 1; + + // Compares the wallclock time to this time. Must use UTC timezone. + google.protobuf.Timestamp end_time = 2; + } +} + // Represents specification of a Study. message StudySpec { // Represents a metric to optimize. @@ -504,6 +516,62 @@ message StudySpec { optional bool update_all_stopped_trials = 6; } + // The configuration (stopping conditions) for automated stopping of a Study. + // Conditions include trial budgets, time budgets, and convergence detection. + message StudyStoppingConfig { + // If true, a Study enters STOPPING_ASAP whenever it would normally enters + // STOPPING state. + // + // The bottom line is: set to true if you want to interrupt on-going + // evaluations of Trials as soon as the study stopping condition is met. + // (Please see Study.State documentation for the source of truth). + google.protobuf.BoolValue should_stop_asap = 1; + + // Each "stopping rule" in this proto specifies an "if" condition. Before + // Vizier would generate a new suggestion, it first checks each specified + // stopping rule, from top to bottom in this list. + // Note that the first few rules (e.g. minimum_runtime_constraint, + // min_num_trials) will prevent other stopping rules from being evaluated + // until they are met. For example, setting `min_num_trials=5` and + // `always_stop_after= 1 hour` means that the Study will ONLY stop after it + // has 5 COMPLETED trials, even if more than an hour has passed since its + // creation. It follows the first applicable rule (whose "if" condition is + // satisfied) to make a stopping decision. If none of the specified rules + // are applicable, then Vizier decides that the study should not stop. + // If Vizier decides that the study should stop, the study enters + // STOPPING state (or STOPPING_ASAP if should_stop_asap = true). + // IMPORTANT: The automatic study state transition happens precisely as + // described above; that is, deleting trials or updating StudyConfig NEVER + // automatically moves the study state back to ACTIVE. If you want to + // _resume_ a Study that was stopped, 1) change the stopping conditions if + // necessary, 2) activate the study, and then 3) ask for suggestions. + // If the specified time or duration has not passed, do not stop the + // study. + StudyTimeConstraint minimum_runtime_constraint = 2; + + // If the specified time or duration has passed, stop the study. + StudyTimeConstraint maximum_runtime_constraint = 3; + + // If there are fewer than this many COMPLETED trials, do not stop the + // study. + google.protobuf.Int32Value min_num_trials = 4; + + // If there are more than this many trials, stop the study. + google.protobuf.Int32Value max_num_trials = 5; + + // If the objective value has not improved for this many consecutive + // trials, stop the study. + // + // WARNING: Effective only for single-objective studies. + google.protobuf.Int32Value max_num_trials_no_progress = 6; + + // If the objective value has not improved for this much time, stop the + // study. + // + // WARNING: Effective only for single-objective studies. + google.protobuf.Duration max_duration_no_progress = 7; + } + // The available search algorithms for the Study. enum Algorithm { // The default algorithm used by Vertex AI for [hyperparameter @@ -589,6 +657,10 @@ message StudySpec { // Describe which measurement selection type will be used MeasurementSelectionType measurement_selection_type = 7; + + // Conditions for automated stopping of a Study. Enable automated stopping by + // configuring at least one condition. + optional StudyStoppingConfig study_stopping_config = 11; } // A message representing a Measurement of a Trial. A Measurement contains diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index 399c14eaeb1..300642aea00 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -195,6 +195,12 @@ message CustomJobSpec { // * AIP_TENSORBOARD_LOG_DIR = `//logs/` GcsDestination base_output_directory = 6; + // The ID of the location to store protected artifacts. e.g. us-central1. + // Populate only when the location is different than CustomJob location. + // List of supported locations: + // https://cloud.google.com/vertex-ai/docs/general/locations + string protected_artifact_location_id = 19; + // Optional. The name of a Vertex AI // [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to // which this CustomJob will upload Tensorboard logs. Format: 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 e3d3d465632..668324a6e89 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 @@ -30,9 +30,8 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -// Feature Metadata information that describes an attribute of an entity type. -// For example, apple is an entity type, and color is a feature that describes -// apple. +// Feature Metadata information. +// For example, color is a feature that describes an apple. message Feature { option (google.api.resource) = { type: "aiplatform.googleapis.com/Feature" @@ -73,6 +72,7 @@ message Feature { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Only applicable for Vertex AI Legacy Feature Store. // An enum representing the value type of a feature. enum ValueType { // The value type is unspecified. @@ -109,6 +109,7 @@ message Feature { // Immutable. Name of the Feature. // Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` // // The last part feature is assigned by the client. The feature can be up to // 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, @@ -119,14 +120,17 @@ message Feature { // Description of the Feature. string description = 2; - // Immutable. Type of Feature value. + // Immutable. Only applicable for Vertex AI Feature Store (Legacy). + // Type of Feature value. ValueType value_type = 3 [(google.api.field_behavior) = IMMUTABLE]; - // Output only. Timestamp when this EntityType was created. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // Timestamp when this EntityType was created. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Timestamp when this EntityType was most recently updated. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // Timestamp when this EntityType was most recently updated. google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -147,9 +151,11 @@ message Feature { // "overwrite" update happens. string etag = 7; - // Optional. Deprecated: The custom monitoring configuration for this Feature, - // if not set, use the monitoring_config defined for the EntityType this - // Feature belongs to. Only Features with type + // Optional. Only applicable for Vertex AI Feature Store (Legacy). + // Deprecated: The custom monitoring configuration for this Feature, if not + // set, use the monitoring_config defined for the EntityType this Feature + // belongs to. + // Only Features with type // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) // BOOL, STRING, DOUBLE or INT64 can enable monitoring. // @@ -162,8 +168,10 @@ message Feature { FeaturestoreMonitoringConfig monitoring_config = 9 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Optional. If not set, use the monitoring_config defined for the EntityType - // this Feature belongs to. Only Features with type + // Optional. Only applicable for Vertex AI Feature Store (Legacy). + // If not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. + // Only Features with type // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) // BOOL, STRING, DOUBLE or INT64 can enable monitoring. // @@ -171,7 +179,8 @@ message Feature { // config on EntityType. bool disable_monitoring = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. A list of historical + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // A list of historical // [SnapshotAnalysis][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis] // stats requested by user, sorted by // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] @@ -179,8 +188,13 @@ message Feature { repeated FeatureStatsAnomaly monitoring_stats = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The list of historical stats and anomalies with specified - // objectives. + // Output only. Only applicable for Vertex AI Feature Store (Legacy). + // The list of historical stats and anomalies with specified objectives. repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Only applicable for Vertex AI Feature Store. + // The name of the BigQuery Table/View columnn hosting data for this version. + // If no value is provided, will use feature_id. + string version_column_name = 106; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto index c1609aabc7a..711b024fb1f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto @@ -61,7 +61,7 @@ message FeatureOnlineStore { AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; } - // Optimized storage type to replace lightning + // Optimized storage type message Optimized {} // The dedicated serving endpoint for this FeatureOnlineStore. Only need to diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto index 8b56cc31c0c..d50756188d0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto @@ -43,7 +43,7 @@ service FeatureOnlineStoreService { post: "/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:fetchFeatureValues" body: "*" }; - option (google.api.method_signature) = "feature_view, id"; + option (google.api.method_signature) = "feature_view, data_key"; } // Search the nearest entities under a FeatureView. @@ -58,12 +58,34 @@ service FeatureOnlineStoreService { } } +// Format of the data in the Feature View. +enum FeatureViewDataFormat { + // Not set. Will be treated as the KeyValue format. + FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0; + + // Return response data in key-value format. + KEY_VALUE = 1; + + // Return response data in proto Struct format. + PROTO_STRUCT = 2; +} + +// Lookup key for a feature view. +message FeatureViewDataKey { + oneof key_oneof { + // String key to use for lookup. + string key = 1; + } +} + // Request message for // [FeatureOnlineStoreService.FetchFeatureValues][google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.FetchFeatureValues]. // All the features under the requested feature view will be returned. message FetchFeatureValuesRequest { // Format of the response data. enum Format { + option deprecated = true; + // Not set. Will be treated as the KeyValue format. FORMAT_UNSPECIFIED = 0; @@ -75,10 +97,12 @@ message FetchFeatureValuesRequest { } // Entity ID to fetch feature values for. + // Deprecated. Use + // [FetchFeatureValuesRequest.data_key][google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.data_key]. oneof entity_id { // Simple ID. The whole string will be used as is to identify Entity to // fetch feature values for. - string id = 3; + string id = 3 [deprecated = true]; } // Required. FeatureView resource format @@ -90,8 +114,19 @@ message FetchFeatureValuesRequest { } ]; + // Optional. The request key to fetch feature values for. + FeatureViewDataKey data_key = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Response data format. If not set, + // [FeatureViewDataFormat.KEY_VALUE][google.cloud.aiplatform.v1beta1.FeatureViewDataFormat.KEY_VALUE] + // will be used. + FeatureViewDataFormat data_format = 7 + [(google.api.field_behavior) = OPTIONAL]; + // Specify response data format. If not set, KeyValue format will be used. - Format format = 5; + // Deprecated. Use + // [FetchFeatureValuesRequest.data_format][google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.data_format]. + Format format = 5 [deprecated = true]; } // Response message for 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 465669984e9..0a3cc057477 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 @@ -953,6 +953,11 @@ message DeleteEntityTypeRequest { // Request message for // [FeatureRegistryService.CreateFeature][google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeature]. message CreateFeatureRequest { + // Required. The resource name of the EntityType or FeatureGroup to create a + // Feature. 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}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1008,8 +1013,9 @@ message BatchCreateFeaturesResponse { // [FeatureRegistryService.GetFeature][google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeature]. message GetFeatureRequest { // Required. The name of the Feature resource. - // Format: + // 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}` string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1025,8 +1031,9 @@ message GetFeatureRequest { // [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures]. message ListFeaturesRequest { // Required. The resource name of the Location to list Features. - // Format: + // 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}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1065,10 +1072,14 @@ message ListFeaturesRequest { // A page token, received from a previous // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] + // call or + // [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures] // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] + // or or + // [FeatureRegistryService.ListFeatures][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures] // must match the call that provided the page token. string page_token = 4; @@ -1085,6 +1096,7 @@ message ListFeaturesRequest { // Mask specifying which fields to read. google.protobuf.FieldMask read_mask = 6; + // Only applicable for Vertex AI Feature Store (Legacy). // If set, return the most recent // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count] // of stats for each Feature in response. Valid value is [0, 10]. If number of @@ -1245,7 +1257,7 @@ message UpdateFeatureRequest { // // * `description` // * `labels` - // * `disable_monitoring` + // * `disable_monitoring` (Not supported for FeatureRegistry Feature) google.protobuf.FieldMask update_mask = 2; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto index 15345a7c615..2f191141a62 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto @@ -142,6 +142,55 @@ message IndexDatapoint { repeated string deny_list = 3; } + // This field allows restricts to be based on numeric comparisons rather + // than categorical tokens. + message NumericRestriction { + // Which comparison operator to use. Should be specified for queries only; + // specifying this for a datapoint is an error. + // + // Datapoints for which Operator is true relative to the query's Value + // field will be allowlisted. + enum Operator { + // Default value of the enum. + OPERATOR_UNSPECIFIED = 0; + + // Datapoints are eligible iff their value is < the query's. + LESS = 1; + + // Datapoints are eligible iff their value is <= the query's. + LESS_EQUAL = 2; + + // Datapoints are eligible iff their value is == the query's. + EQUAL = 3; + + // Datapoints are eligible iff their value is >= the query's. + GREATER_EQUAL = 4; + + // Datapoints are eligible iff their value is > the query's. + GREATER = 5; + } + + // The type of Value must be consistent for all datapoints with a given + // namespace name. This is verified at runtime. + oneof Value { + // Represents 64 bit integer. + int64 value_int = 2; + + // Represents 32 bit float. + float value_float = 3; + + // Represents 64 bit float. + double value_double = 4; + } + + // The namespace of this restriction. e.g.: cost. + string namespace = 1; + + // This MUST be specified for queries and must NOT be specified for + // datapoints. + Operator op = 5; + } + // Crowding tag is a constraint on a neighbor list produced by nearest // neighbor search requiring that no more than some value k' of the k // neighbors returned have the same value of crowding_attribute. @@ -167,6 +216,12 @@ message IndexDatapoint { // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of Restrict of the datapoint, used to perform "restricted + // searches" where boolean rule are used to filter the subset of the database + // eligible for matching. This uses numeric comparisons. + repeated NumericRestriction numeric_restricts = 6 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. CrowdingTag of the datapoint, the number of neighbors to return // in each crowding can be configured during query. CrowdingTag crowding_tag = 5 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 7c55142eacc..46dfba3bfc1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -191,10 +191,11 @@ message DeployedIndex { [(google.api.field_behavior) = OPTIONAL]; // Optional. A description of resources that are dedicated to the - // DeployedIndex, and that need a higher degree of manual configuration. If - // min_replica_count is not set, the default value is 2 (we don't provide SLA - // when min_replica_count=1). If max_replica_count is not set, the default - // value is min_replica_count. The max allowed replica count is 1000. + // DeployedIndex, and that need a higher degree of manual configuration. The + // field min_replica_count must be set to a value strictly greater than 0, or + // else validation will fail. We don't provide SLA when min_replica_count=1. + // If max_replica_count is not set, the default value is min_replica_count. + // The max allowed replica count is 1000. // // Available machine types for SMALL shard: // e2-standard-2 and all machine types available for MEDIUM and LARGE shard. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto new file mode 100644 index 00000000000..3fddf3acc84 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto @@ -0,0 +1,86 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "LlmUtilityServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Service for LLM related utility functions. +service LlmUtilityService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Return a list of tokens based on the input text. + rpc ComputeTokens(ComputeTokensRequest) returns (ComputeTokensResponse) { + option (google.api.http) = { + post: "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens" + body: "*" + additional_bindings { + post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,instances"; + } +} + +// Request message for ComputeTokens RPC call. +message ComputeTokensRequest { + // Required. The name of the Endpoint requested to get lists of tokens and + // token ids. + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The instances that are the input to token computing API call. + // Schema is identical to the prediction schema of the text model, even for + // the non-text models, like chat models, or Codey models. + repeated google.protobuf.Value instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Tokens info with a list of tokens and the corresponding list of token ids. +message TokensInfo { + // A list of tokens from the input. + repeated bytes tokens = 1; + + // A list of token ids from the input. + repeated int64 token_ids = 2; +} + +// Response message for ComputeTokens RPC call. +message ComputeTokensResponse { + // Lists of tokens info from the input. A ComputeTokensRequest could have + // multiple instances with a prompt in each instance. We also need to return + // lists of tokens info for the request with multiple instances. + repeated TokensInfo tokens_info = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto index b7e19fa130f..c51246f8546 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -52,6 +52,10 @@ message MachineSpec { // The number of accelerators to attach to the machine. int32 accelerator_count = 3; + + // Immutable. The topology of the TPUs. Corresponds to the TPU topologies + // available from GKE. (Example: tpu_topology: "2x2x1"). + string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; } // A description of resources that are dedicated to a DeployedModel, and diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto index 0edbee572d5..10bf0807c10 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model.proto @@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1beta1/deployed_model_ref.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -693,6 +694,21 @@ message ModelContainerSpec { // [`AIP_DEPLOYED_MODEL_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Deployment timeout. + // Limit for deployment timeout is 2 hours. + google.protobuf.Duration deployment_timeout = 10 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The amount of the VM memory to reserve as the shared memory for + // the model in megabytes. + int64 shared_memory_size_mb = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Specification for Kubernetes startup probe. + Probe startup_probe = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Specification for Kubernetes readiness probe. + Probe health_probe = 13 [(google.api.field_behavior) = IMMUTABLE]; } // Represents a network port in a container. @@ -733,3 +749,35 @@ message ModelSourceInfo { // pertains to the original. bool copy = 2; } + +// Probe describes a health check to be performed against a container to +// determine whether it is alive or ready to receive traffic. +message Probe { + // ExecAction specifies a command to execute. + message ExecAction { + // Command is the command line to execute inside the container, the working + // directory for the command is root ('/') in the container's filesystem. + // The command is simply exec'd, it is not run inside a shell, so + // traditional shell instructions ('|', etc) won't work. To use a shell, you + // need to explicitly call out to that shell. Exit status of 0 is treated as + // live/healthy and non-zero is unhealthy. + repeated string command = 1; + } + + oneof probe_type { + // Exec specifies the action to take. + ExecAction exec = 1; + } + + // How often (in seconds) to perform the probe. Default to 10 seconds. + // Minimum value is 1. Must be less than timeout_seconds. + // + // Maps to Kubernetes probe argument 'periodSeconds'. + int32 period_seconds = 2; + + // Number of seconds after which the probe times out. Defaults to 1 second. + // Minimum value is 1. Must be greater or equal to period_seconds. + // + // Maps to Kubernetes probe argument 'timeoutSeconds'. + int32 timeout_seconds = 3; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 3b6d819d7bb..4d8695ba0c7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -148,6 +148,22 @@ service PipelineService { }; } + // Batch deletes PipelineJobs + // The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + // If it succeeds, all of the PipelineJobs are deleted. + rpc BatchDeletePipelineJobs(BatchDeletePipelineJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + option (google.longrunning.operation_info) = { + response_type: "BatchDeletePipelineJobsResponse" + metadata_type: "DeleteOperationMetadata" + }; + } + // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not @@ -435,6 +451,37 @@ message DeletePipelineJobRequest { ]; } +// Request message for +// [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs]. +message BatchDeletePipelineJobsRequest { + // Required. The name of the PipelineJobs' parent resource. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/PipelineJob" + } + ]; + + // Required. The names of the PipelineJobs to delete. + // A maximum of 32 PipelineJobs can be deleted in a batch. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Response message for +// [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs]. +message BatchDeletePipelineJobsResponse { + // PipelineJobs deleted. + repeated PipelineJob pipeline_jobs = 1; +} + // Request message for // [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob]. message CancelPipelineJobRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto index 14a7bca2d4d..55b67ed4add 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -343,7 +343,7 @@ message ExplainResponse { repeated Explanation explanations = 1; // This field stores the results of the explanations run in parallel with - // the default explanation strategy/method. + // The default explanation strategy/method. map concurrent_explanations = 4; // ID of the Endpoint's DeployedModel that served this explanation. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index 1075216a6c2..7f0d690d1c7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -21,6 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -213,6 +214,17 @@ message TrialContext { repeated Trial.Parameter parameters = 2; } +// Time-based Constraint for Study +message StudyTimeConstraint { + oneof constraint { + // Counts the wallclock time passed since the creation of this Study. + google.protobuf.Duration max_duration = 1; + + // Compares the wallclock time to this time. Must use UTC timezone. + google.protobuf.Timestamp end_time = 2; + } +} + // Represents specification of a Study. message StudySpec { // Represents a metric to optimize. @@ -557,6 +569,62 @@ message StudySpec { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // The configuration (stopping conditions) for automated stopping of a Study. + // Conditions include trial budgets, time budgets, and convergence detection. + message StudyStoppingConfig { + // If true, a Study enters STOPPING_ASAP whenever it would normally enters + // STOPPING state. + // + // The bottom line is: set to true if you want to interrupt on-going + // evaluations of Trials as soon as the study stopping condition is met. + // (Please see Study.State documentation for the source of truth). + google.protobuf.BoolValue should_stop_asap = 1; + + // Each "stopping rule" in this proto specifies an "if" condition. Before + // Vizier would generate a new suggestion, it first checks each specified + // stopping rule, from top to bottom in this list. + // Note that the first few rules (e.g. minimum_runtime_constraint, + // min_num_trials) will prevent other stopping rules from being evaluated + // until they are met. For example, setting `min_num_trials=5` and + // `always_stop_after= 1 hour` means that the Study will ONLY stop after it + // has 5 COMPLETED trials, even if more than an hour has passed since its + // creation. It follows the first applicable rule (whose "if" condition is + // satisfied) to make a stopping decision. If none of the specified rules + // are applicable, then Vizier decides that the study should not stop. + // If Vizier decides that the study should stop, the study enters + // STOPPING state (or STOPPING_ASAP if should_stop_asap = true). + // IMPORTANT: The automatic study state transition happens precisely as + // described above; that is, deleting trials or updating StudyConfig NEVER + // automatically moves the study state back to ACTIVE. If you want to + // _resume_ a Study that was stopped, 1) change the stopping conditions if + // necessary, 2) activate the study, and then 3) ask for suggestions. + // If the specified time or duration has not passed, do not stop the + // study. + StudyTimeConstraint minimum_runtime_constraint = 2; + + // If the specified time or duration has passed, stop the study. + StudyTimeConstraint maximum_runtime_constraint = 3; + + // If there are fewer than this many COMPLETED trials, do not stop the + // study. + google.protobuf.Int32Value min_num_trials = 4; + + // If there are more than this many trials, stop the study. + google.protobuf.Int32Value max_num_trials = 5; + + // If the objective value has not improved for this many consecutive + // trials, stop the study. + // + // WARNING: Effective only for single-objective studies. + google.protobuf.Int32Value max_num_trials_no_progress = 6; + + // If the objective value has not improved for this much time, stop the + // study. + // + // WARNING: Effective only for single-objective studies. + google.protobuf.Duration max_duration_no_progress = 7; + } + // The available search algorithms for the Study. enum Algorithm { // The default algorithm used by Vertex AI for [hyperparameter @@ -650,6 +718,10 @@ message StudySpec { // The configuration info/options for transfer learning. Currently supported // for Vertex AI Vizier service, not HyperParameterTuningJob TransferLearningConfig transfer_learning_config = 10; + + // Conditions for automated stopping of a Study. Enable automated stopping by + // configuring at least one condition. + optional StudyStoppingConfig study_stopping_config = 11; } // A message representing a Measurement of a Trial. A Measurement contains diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index df7ec3a99fd..0c863468355 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -5394,6 +5394,9 @@ export namespace google { /** MachineSpec acceleratorCount */ acceleratorCount?: (number|null); + + /** MachineSpec tpuTopology */ + tpuTopology?: (string|null); } /** Represents a MachineSpec. */ @@ -5414,6 +5417,9 @@ export namespace google { /** MachineSpec acceleratorCount. */ public acceleratorCount: number; + /** MachineSpec tpuTopology. */ + public tpuTopology: string; + /** * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set @@ -7255,6 +7261,18 @@ export namespace google { /** ModelContainerSpec healthRoute */ healthRoute?: (string|null); + + /** ModelContainerSpec deploymentTimeout */ + deploymentTimeout?: (google.protobuf.IDuration|null); + + /** ModelContainerSpec sharedMemorySizeMb */ + sharedMemorySizeMb?: (number|Long|string|null); + + /** ModelContainerSpec startupProbe */ + startupProbe?: (google.cloud.aiplatform.v1.IProbe|null); + + /** ModelContainerSpec healthProbe */ + healthProbe?: (google.cloud.aiplatform.v1.IProbe|null); } /** Represents a ModelContainerSpec. */ @@ -7287,6 +7305,18 @@ export namespace google { /** ModelContainerSpec healthRoute. */ public healthRoute: string; + /** ModelContainerSpec deploymentTimeout. */ + public deploymentTimeout?: (google.protobuf.IDuration|null); + + /** ModelContainerSpec sharedMemorySizeMb. */ + public sharedMemorySizeMb: (number|Long|string); + + /** ModelContainerSpec startupProbe. */ + public startupProbe?: (google.cloud.aiplatform.v1.IProbe|null); + + /** ModelContainerSpec healthProbe. */ + public healthProbe?: (google.cloud.aiplatform.v1.IProbe|null); + /** * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set @@ -7578,6 +7608,218 @@ export namespace google { } } + /** Properties of a Probe. */ + interface IProbe { + + /** Probe exec */ + exec?: (google.cloud.aiplatform.v1.Probe.IExecAction|null); + + /** Probe periodSeconds */ + periodSeconds?: (number|null); + + /** Probe timeoutSeconds */ + timeoutSeconds?: (number|null); + } + + /** Represents a Probe. */ + class Probe implements IProbe { + + /** + * Constructs a new Probe. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IProbe); + + /** Probe exec. */ + public exec?: (google.cloud.aiplatform.v1.Probe.IExecAction|null); + + /** Probe periodSeconds. */ + public periodSeconds: number; + + /** Probe timeoutSeconds. */ + public timeoutSeconds: number; + + /** Probe probeType. */ + public probeType?: "exec"; + + /** + * Creates a new Probe instance using the specified properties. + * @param [properties] Properties to set + * @returns Probe instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IProbe): google.cloud.aiplatform.v1.Probe; + + /** + * Encodes the specified Probe message. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.verify|verify} messages. + * @param message Probe message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IProbe, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Probe message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.verify|verify} messages. + * @param message Probe message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IProbe, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Probe message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Probe; + + /** + * Decodes a Probe message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Probe; + + /** + * Verifies a Probe message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Probe message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Probe + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Probe; + + /** + * Creates a plain object from a Probe message. Also converts values to other types if specified. + * @param message Probe + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Probe, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Probe to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Probe + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Probe { + + /** Properties of an ExecAction. */ + interface IExecAction { + + /** ExecAction command */ + command?: (string[]|null); + } + + /** Represents an ExecAction. */ + class ExecAction implements IExecAction { + + /** + * Constructs a new ExecAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Probe.IExecAction); + + /** ExecAction command. */ + public command: string[]; + + /** + * Creates a new ExecAction instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecAction instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Probe.IExecAction): google.cloud.aiplatform.v1.Probe.ExecAction; + + /** + * Encodes the specified ExecAction message. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.ExecAction.verify|verify} messages. + * @param message ExecAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Probe.IExecAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.ExecAction.verify|verify} messages. + * @param message ExecAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Probe.IExecAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Probe.ExecAction; + + /** + * Decodes an ExecAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Probe.ExecAction; + + /** + * Verifies an ExecAction message. + * @param message Plain 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 ExecAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Probe.ExecAction; + + /** + * Creates a plain object from an ExecAction message. Also converts values to other types if specified. + * @param message ExecAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Probe.ExecAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a DeployedModelRef. */ interface IDeployedModelRef { @@ -8125,6 +8367,9 @@ export namespace google { /** CustomJobSpec baseOutputDirectory */ baseOutputDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** CustomJobSpec protectedArtifactLocationId */ + protectedArtifactLocationId?: (string|null); + /** CustomJobSpec tensorboard */ tensorboard?: (string|null); @@ -8168,6 +8413,9 @@ export namespace google { /** CustomJobSpec baseOutputDirectory. */ public baseOutputDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** CustomJobSpec protectedArtifactLocationId. */ + public protectedArtifactLocationId: string; + /** CustomJobSpec tensorboard. */ public tensorboard: string; @@ -18214,6 +18462,9 @@ export namespace google { /** Feature monitoringStatsAnomalies */ monitoringStatsAnomalies?: (google.cloud.aiplatform.v1.Feature.IMonitoringStatsAnomaly[]|null); + + /** Feature versionColumnName */ + versionColumnName?: (string|null); } /** Represents a Feature. */ @@ -18252,6 +18503,9 @@ export namespace google { /** Feature monitoringStatsAnomalies. */ public monitoringStatsAnomalies: google.cloud.aiplatform.v1.Feature.IMonitoringStatsAnomaly[]; + /** Feature versionColumnName. */ + public versionColumnName: string; + /** * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set @@ -18593,555 +18847,588 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IdMatcher. */ - interface IIdMatcher { + /** Properties of a FeatureGroup. */ + interface IFeatureGroup { - /** IdMatcher ids */ - ids?: (string[]|null); + /** FeatureGroup bigQuery */ + bigQuery?: (google.cloud.aiplatform.v1.FeatureGroup.IBigQuery|null); + + /** FeatureGroup name */ + name?: (string|null); + + /** FeatureGroup createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureGroup updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureGroup etag */ + etag?: (string|null); + + /** FeatureGroup labels */ + labels?: ({ [k: string]: string }|null); + + /** FeatureGroup description */ + description?: (string|null); } - /** Represents an IdMatcher. */ - class IdMatcher implements IIdMatcher { + /** Represents a FeatureGroup. */ + class FeatureGroup implements IFeatureGroup { /** - * Constructs a new IdMatcher. + * Constructs a new FeatureGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IIdMatcher); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureGroup); - /** IdMatcher ids. */ - public ids: string[]; + /** FeatureGroup bigQuery. */ + public bigQuery?: (google.cloud.aiplatform.v1.FeatureGroup.IBigQuery|null); + + /** FeatureGroup name. */ + public name: string; + + /** FeatureGroup createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureGroup updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureGroup etag. */ + public etag: string; + + /** FeatureGroup labels. */ + public labels: { [k: string]: string }; + + /** FeatureGroup description. */ + public description: string; + + /** FeatureGroup source. */ + public source?: "bigQuery"; /** - * Creates a new IdMatcher instance using the specified properties. + * Creates a new FeatureGroup instance using the specified properties. * @param [properties] Properties to set - * @returns IdMatcher instance + * @returns FeatureGroup instance */ - public static create(properties?: google.cloud.aiplatform.v1.IIdMatcher): google.cloud.aiplatform.v1.IdMatcher; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureGroup): google.cloud.aiplatform.v1.FeatureGroup; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode + * Encodes the specified FeatureGroup message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.verify|verify} messages. + * @param message FeatureGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode + * Encodes the specified FeatureGroup message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.verify|verify} messages. + * @param message FeatureGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdMatcher message from the specified reader or buffer. + * Decodes a FeatureGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdMatcher + * @returns FeatureGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.IdMatcher; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureGroup; /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. + * Decodes a FeatureGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdMatcher + * @returns FeatureGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.IdMatcher; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureGroup; /** - * Verifies an IdMatcher message. + * Verifies a FeatureGroup message. * @param message Plain 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 IdMatcher message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdMatcher + * @returns FeatureGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IdMatcher; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureGroup; /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. - * @param message IdMatcher + * Creates a plain object from a FeatureGroup message. Also converts values to other types if specified. + * @param message FeatureGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdMatcher to JSON. + * Converts this FeatureGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IdMatcher + * Gets the default type url for FeatureGroup * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureSelector. */ - interface IFeatureSelector { + namespace FeatureGroup { - /** FeatureSelector idMatcher */ - idMatcher?: (google.cloud.aiplatform.v1.IIdMatcher|null); - } + /** Properties of a BigQuery. */ + interface IBigQuery { - /** Represents a FeatureSelector. */ - class FeatureSelector implements IFeatureSelector { + /** BigQuery bigQuerySource */ + bigQuerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Constructs a new FeatureSelector. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IFeatureSelector); + /** BigQuery entityIdColumns */ + entityIdColumns?: (string[]|null); + } - /** FeatureSelector idMatcher. */ - public idMatcher?: (google.cloud.aiplatform.v1.IIdMatcher|null); + /** Represents a BigQuery. */ + class BigQuery implements IBigQuery { - /** - * Creates a new FeatureSelector instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSelector instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IFeatureSelector): google.cloud.aiplatform.v1.FeatureSelector; + /** + * Constructs a new BigQuery. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureGroup.IBigQuery); - /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + /** BigQuery bigQuerySource. */ + public bigQuerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + /** BigQuery entityIdColumns. */ + public entityIdColumns: string[]; - /** - * Decodes a FeatureSelector message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSelector - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureSelector; + /** + * Creates a new BigQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns BigQuery instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureGroup.IBigQuery): google.cloud.aiplatform.v1.FeatureGroup.BigQuery; - /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSelector - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureSelector; + /** + * Encodes the specified BigQuery message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.verify|verify} messages. + * @param message BigQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureGroup.IBigQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FeatureSelector message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified BigQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.verify|verify} messages. + * @param message BigQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureGroup.IBigQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSelector - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureSelector; + /** + * Decodes a BigQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BigQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureGroup.BigQuery; - /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. - * @param message FeatureSelector - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a BigQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BigQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureGroup.BigQuery; - /** - * Converts this FeatureSelector to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a BigQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for FeatureSelector - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a BigQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BigQuery + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureGroup.BigQuery; + + /** + * Creates a plain object from a BigQuery message. Also converts values to other types if specified. + * @param message BigQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureGroup.BigQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BigQuery + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a Featurestore. */ - interface IFeaturestore { + /** Properties of a FeatureOnlineStore. */ + interface IFeatureOnlineStore { - /** Featurestore name */ + /** FeatureOnlineStore bigtable */ + bigtable?: (google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable|null); + + /** FeatureOnlineStore name */ name?: (string|null); - /** Featurestore createTime */ + /** FeatureOnlineStore createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** Featurestore updateTime */ + /** FeatureOnlineStore updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** Featurestore etag */ + /** FeatureOnlineStore etag */ etag?: (string|null); - /** Featurestore labels */ + /** FeatureOnlineStore labels */ labels?: ({ [k: string]: string }|null); - /** Featurestore onlineServingConfig */ - onlineServingConfig?: (google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state */ - state?: (google.cloud.aiplatform.v1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1.Featurestore.State|null); - - /** Featurestore onlineStorageTtlDays */ - onlineStorageTtlDays?: (number|null); - - /** Featurestore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** FeatureOnlineStore state */ + state?: (google.cloud.aiplatform.v1.FeatureOnlineStore.State|keyof typeof google.cloud.aiplatform.v1.FeatureOnlineStore.State|null); } - /** Represents a Featurestore. */ - class Featurestore implements IFeaturestore { + /** Represents a FeatureOnlineStore. */ + class FeatureOnlineStore implements IFeatureOnlineStore { /** - * Constructs a new Featurestore. + * Constructs a new FeatureOnlineStore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFeaturestore); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureOnlineStore); - /** Featurestore name. */ + /** FeatureOnlineStore bigtable. */ + public bigtable?: (google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable|null); + + /** FeatureOnlineStore name. */ public name: string; - /** Featurestore createTime. */ + /** FeatureOnlineStore createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** Featurestore updateTime. */ + /** FeatureOnlineStore updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** Featurestore etag. */ + /** FeatureOnlineStore etag. */ public etag: string; - /** Featurestore labels. */ + /** FeatureOnlineStore labels. */ public labels: { [k: string]: string }; - /** Featurestore onlineServingConfig. */ - public onlineServingConfig?: (google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state. */ - public state: (google.cloud.aiplatform.v1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1.Featurestore.State); - - /** Featurestore onlineStorageTtlDays. */ - public onlineStorageTtlDays: number; + /** FeatureOnlineStore state. */ + public state: (google.cloud.aiplatform.v1.FeatureOnlineStore.State|keyof typeof google.cloud.aiplatform.v1.FeatureOnlineStore.State); - /** Featurestore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** FeatureOnlineStore storageType. */ + public storageType?: "bigtable"; /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new FeatureOnlineStore instance using the specified properties. * @param [properties] Properties to set - * @returns Featurestore instance + * @returns FeatureOnlineStore instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFeaturestore): google.cloud.aiplatform.v1.Featurestore; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureOnlineStore): google.cloud.aiplatform.v1.FeatureOnlineStore; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified FeatureOnlineStore message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.verify|verify} messages. + * @param message FeatureOnlineStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureOnlineStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified FeatureOnlineStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.verify|verify} messages. + * @param message FeatureOnlineStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureOnlineStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a FeatureOnlineStore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Featurestore + * @returns FeatureOnlineStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureOnlineStore; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a FeatureOnlineStore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Featurestore + * @returns FeatureOnlineStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureOnlineStore; /** - * Verifies a Featurestore message. + * Verifies a FeatureOnlineStore message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureOnlineStore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Featurestore + * @returns FeatureOnlineStore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureOnlineStore; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. - * @param message Featurestore + * Creates a plain object from a FeatureOnlineStore message. Also converts values to other types if specified. + * @param message FeatureOnlineStore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureOnlineStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Featurestore to JSON. + * Converts this FeatureOnlineStore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Featurestore + * Gets the default type url for FeatureOnlineStore * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Featurestore { - - /** Properties of an OnlineServingConfig. */ - interface IOnlineServingConfig { + namespace FeatureOnlineStore { - /** OnlineServingConfig fixedNodeCount */ - fixedNodeCount?: (number|null); + /** Properties of a Bigtable. */ + interface IBigtable { - /** OnlineServingConfig scaling */ - scaling?: (google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null); + /** Bigtable autoScaling */ + autoScaling?: (google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling|null); } - /** Represents an OnlineServingConfig. */ - class OnlineServingConfig implements IOnlineServingConfig { + /** Represents a Bigtable. */ + class Bigtable implements IBigtable { /** - * Constructs a new OnlineServingConfig. + * Constructs a new Bigtable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig); - - /** OnlineServingConfig fixedNodeCount. */ - public fixedNodeCount: number; + constructor(properties?: google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable); - /** OnlineServingConfig scaling. */ - public scaling?: (google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null); + /** Bigtable autoScaling. */ + public autoScaling?: (google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling|null); /** - * Creates a new OnlineServingConfig instance using the specified properties. + * Creates a new Bigtable instance using the specified properties. * @param [properties] Properties to set - * @returns OnlineServingConfig instance + * @returns Bigtable instance */ - public static create(properties?: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + public static create(properties?: google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable; /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode + * Encodes the specified Bigtable message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.verify|verify} messages. + * @param message Bigtable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode + * Encodes the specified Bigtable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.verify|verify} messages. + * @param message Bigtable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. + * Decodes a Bigtable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OnlineServingConfig + * @returns Bigtable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * Decodes a Bigtable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OnlineServingConfig + * @returns Bigtable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable; /** - * Verifies an OnlineServingConfig message. + * Verifies a Bigtable message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Bigtable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OnlineServingConfig + * @returns Bigtable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable; /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. - * @param message OnlineServingConfig + * Creates a plain object from a Bigtable message. Also converts values to other types if specified. + * @param message Bigtable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OnlineServingConfig to JSON. + * Converts this Bigtable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OnlineServingConfig + * Gets the default type url for Bigtable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace OnlineServingConfig { + namespace Bigtable { - /** Properties of a Scaling. */ - interface IScaling { + /** Properties of an AutoScaling. */ + interface IAutoScaling { - /** Scaling minNodeCount */ + /** AutoScaling minNodeCount */ minNodeCount?: (number|null); - /** Scaling maxNodeCount */ + /** AutoScaling maxNodeCount */ maxNodeCount?: (number|null); - /** Scaling cpuUtilizationTarget */ + /** AutoScaling cpuUtilizationTarget */ cpuUtilizationTarget?: (number|null); } - /** Represents a Scaling. */ - class Scaling implements IScaling { + /** Represents an AutoScaling. */ + class AutoScaling implements IAutoScaling { /** - * Constructs a new Scaling. + * Constructs a new AutoScaling. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling); + constructor(properties?: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling); - /** Scaling minNodeCount. */ + /** AutoScaling minNodeCount. */ public minNodeCount: number; - /** Scaling maxNodeCount. */ + /** AutoScaling maxNodeCount. */ public maxNodeCount: number; - /** Scaling cpuUtilizationTarget. */ + /** AutoScaling cpuUtilizationTarget. */ public cpuUtilizationTarget: number; /** - * Creates a new Scaling instance using the specified properties. + * Creates a new AutoScaling instance using the specified properties. * @param [properties] Properties to set - * @returns Scaling instance + * @returns AutoScaling instance */ - public static create(properties?: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + public static create(properties?: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling; /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode + * Encodes the specified AutoScaling message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.verify|verify} messages. + * @param message AutoScaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode + * Encodes the specified AutoScaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.verify|verify} messages. + * @param message AutoScaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scaling message from the specified reader or buffer. + * Decodes an AutoScaling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Scaling + * @returns AutoScaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling; /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. + * Decodes an AutoScaling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Scaling + * @returns AutoScaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling; /** - * Verifies a Scaling message. + * Verifies an AutoScaling message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * Creates an AutoScaling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scaling + * @returns AutoScaling */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling; /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. - * @param message Scaling + * Creates a plain object from an AutoScaling message. Also converts values to other types if specified. + * @param message AutoScaling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scaling to JSON. + * Converts this AutoScaling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Scaling + * Gets the default type url for AutoScaling * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -19157,11 +19444,11 @@ export namespace google { } } - /** Represents a FeaturestoreOnlineServingService */ - class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { + /** Represents a FeatureOnlineStoreAdminService */ + class FeatureOnlineStoreAdminService extends $protobuf.rpc.Service { /** - * Constructs a new FeaturestoreOnlineServingService service. + * Constructs a new FeatureOnlineStoreAdminService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -19169,7866 +19456,8580 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * Creates new FeatureOnlineStoreAdminService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeatureOnlineStoreAdminService; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Calls CreateFeatureOnlineStore. + * @param request CreateFeatureOnlineStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public readFeatureValues(request: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; + public createFeatureOnlineStore(request: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStoreCallback): void; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object + * Calls CreateFeatureOnlineStore. + * @param request CreateFeatureOnlineStoreRequest message or plain object * @returns Promise */ - public readFeatureValues(request: google.cloud.aiplatform.v1.IReadFeatureValuesRequest): Promise; + public createFeatureOnlineStore(request: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest): Promise; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Calls GetFeatureOnlineStore. + * @param request GetFeatureOnlineStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureOnlineStore */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; + public getFeatureOnlineStore(request: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStoreCallback): void; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object + * Calls GetFeatureOnlineStore. + * @param request GetFeatureOnlineStoreRequest message or plain object * @returns Promise */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest): Promise; + public getFeatureOnlineStore(request: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest): Promise; /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse + * Calls ListFeatureOnlineStores. + * @param request ListFeatureOnlineStoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureOnlineStoresResponse */ - public writeFeatureValues(request: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; + public listFeatureOnlineStores(request: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStoresCallback): void; /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object + * Calls ListFeatureOnlineStores. + * @param request ListFeatureOnlineStoresRequest message or plain object * @returns Promise */ - public writeFeatureValues(request: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest): Promise; - } + public listFeatureOnlineStores(request: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest): Promise; - namespace FeaturestoreOnlineServingService { + /** + * Calls UpdateFeatureOnlineStore. + * @param request UpdateFeatureOnlineStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateFeatureOnlineStore(request: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStoreCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|readFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Calls UpdateFeatureOnlineStore. + * @param request UpdateFeatureOnlineStoreRequest message or plain object + * @returns Promise */ - type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse) => void; + public updateFeatureOnlineStore(request: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Calls DeleteFeatureOnlineStore. + * @param request DeleteFeatureOnlineStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse) => void; + public deleteFeatureOnlineStore(request: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStoreCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|writeFeatureValues}. - * @param error Error, if any - * @param [response] WriteFeatureValuesResponse + * Calls DeleteFeatureOnlineStore. + * @param request DeleteFeatureOnlineStoreRequest message or plain object + * @returns Promise */ - type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteFeatureValuesResponse) => void; - } + public deleteFeatureOnlineStore(request: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest): Promise; - /** Properties of a WriteFeatureValuesRequest. */ - interface IWriteFeatureValuesRequest { + /** + * Calls CreateFeatureView. + * @param request CreateFeatureViewRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeatureView(request: google.cloud.aiplatform.v1.ICreateFeatureViewRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureViewCallback): void; - /** WriteFeatureValuesRequest entityType */ - entityType?: (string|null); + /** + * Calls CreateFeatureView. + * @param request CreateFeatureViewRequest message or plain object + * @returns Promise + */ + public createFeatureView(request: google.cloud.aiplatform.v1.ICreateFeatureViewRequest): Promise; - /** WriteFeatureValuesRequest payloads */ - payloads?: (google.cloud.aiplatform.v1.IWriteFeatureValuesPayload[]|null); + /** + * Calls GetFeatureView. + * @param request GetFeatureViewRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureView + */ + public getFeatureView(request: google.cloud.aiplatform.v1.IGetFeatureViewRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewCallback): void; + + /** + * Calls GetFeatureView. + * @param request GetFeatureViewRequest message or plain object + * @returns Promise + */ + public getFeatureView(request: google.cloud.aiplatform.v1.IGetFeatureViewRequest): Promise; + + /** + * Calls ListFeatureViews. + * @param request ListFeatureViewsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureViewsResponse + */ + public listFeatureViews(request: google.cloud.aiplatform.v1.IListFeatureViewsRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewsCallback): void; + + /** + * Calls ListFeatureViews. + * @param request ListFeatureViewsRequest message or plain object + * @returns Promise + */ + public listFeatureViews(request: google.cloud.aiplatform.v1.IListFeatureViewsRequest): Promise; + + /** + * Calls UpdateFeatureView. + * @param request UpdateFeatureViewRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateFeatureView(request: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureViewCallback): void; + + /** + * Calls UpdateFeatureView. + * @param request UpdateFeatureViewRequest message or plain object + * @returns Promise + */ + public updateFeatureView(request: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest): Promise; + + /** + * Calls DeleteFeatureView. + * @param request DeleteFeatureViewRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeatureView(request: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureViewCallback): void; + + /** + * Calls DeleteFeatureView. + * @param request DeleteFeatureViewRequest message or plain object + * @returns Promise + */ + public deleteFeatureView(request: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest): Promise; + + /** + * Calls SyncFeatureView. + * @param request SyncFeatureViewRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SyncFeatureViewResponse + */ + public syncFeatureView(request: google.cloud.aiplatform.v1.ISyncFeatureViewRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureViewCallback): void; + + /** + * Calls SyncFeatureView. + * @param request SyncFeatureViewRequest message or plain object + * @returns Promise + */ + public syncFeatureView(request: google.cloud.aiplatform.v1.ISyncFeatureViewRequest): Promise; + + /** + * Calls GetFeatureViewSync. + * @param request GetFeatureViewSyncRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureViewSync + */ + public getFeatureViewSync(request: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSyncCallback): void; + + /** + * Calls GetFeatureViewSync. + * @param request GetFeatureViewSyncRequest message or plain object + * @returns Promise + */ + public getFeatureViewSync(request: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest): Promise; + + /** + * Calls ListFeatureViewSyncs. + * @param request ListFeatureViewSyncsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureViewSyncsResponse + */ + public listFeatureViewSyncs(request: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncsCallback): void; + + /** + * Calls ListFeatureViewSyncs. + * @param request ListFeatureViewSyncsRequest message or plain object + * @returns Promise + */ + public listFeatureViewSyncs(request: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest): Promise; } - /** Represents a WriteFeatureValuesRequest. */ - class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { + namespace FeatureOnlineStoreAdminService { /** - * Constructs a new WriteFeatureValuesRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|createFeatureOnlineStore}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest); + type CreateFeatureOnlineStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** WriteFeatureValuesRequest entityType. */ - public entityType: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureOnlineStore}. + * @param error Error, if any + * @param [response] FeatureOnlineStore + */ + type GetFeatureOnlineStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.FeatureOnlineStore) => void; - /** WriteFeatureValuesRequest payloads. */ - public payloads: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureOnlineStores}. + * @param error Error, if any + * @param [response] ListFeatureOnlineStoresResponse + */ + type ListFeatureOnlineStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse) => void; /** - * Creates a new WriteFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WriteFeatureValuesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|updateFeatureOnlineStore}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; + type UpdateFeatureOnlineStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|deleteFeatureOnlineStore}. + * @param error Error, if any + * @param [response] Operation */ - public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFeatureOnlineStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|createFeatureView}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateFeatureViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureView}. + * @param error Error, if any + * @param [response] FeatureView */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; + type GetFeatureViewCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.FeatureView) => void; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureViews}. + * @param error Error, if any + * @param [response] ListFeatureViewsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; + type ListFeatureViewsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeatureViewsResponse) => void; /** - * Verifies a WriteFeatureValuesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|updateFeatureView}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateFeatureViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WriteFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|deleteFeatureView}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; + type DeleteFeatureViewCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. - * @param message WriteFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|syncFeatureView}. + * @param error Error, if any + * @param [response] SyncFeatureViewResponse */ - public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type SyncFeatureViewCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SyncFeatureViewResponse) => void; /** - * Converts this WriteFeatureValuesRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureViewSync}. + * @param error Error, if any + * @param [response] FeatureViewSync */ - public toJSON(): { [k: string]: any }; + type GetFeatureViewSyncCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.FeatureViewSync) => void; /** - * Gets the default type url for WriteFeatureValuesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureViewSyncs}. + * @param error Error, if any + * @param [response] ListFeatureViewSyncsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ListFeatureViewSyncsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse) => void; } - /** Properties of a WriteFeatureValuesPayload. */ - interface IWriteFeatureValuesPayload { + /** Properties of a CreateFeatureOnlineStoreRequest. */ + interface ICreateFeatureOnlineStoreRequest { - /** WriteFeatureValuesPayload entityId */ - entityId?: (string|null); + /** CreateFeatureOnlineStoreRequest parent */ + parent?: (string|null); - /** WriteFeatureValuesPayload featureValues */ - featureValues?: ({ [k: string]: google.cloud.aiplatform.v1.IFeatureValue }|null); + /** CreateFeatureOnlineStoreRequest featureOnlineStore */ + featureOnlineStore?: (google.cloud.aiplatform.v1.IFeatureOnlineStore|null); + + /** CreateFeatureOnlineStoreRequest featureOnlineStoreId */ + featureOnlineStoreId?: (string|null); } - /** Represents a WriteFeatureValuesPayload. */ - class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { + /** Represents a CreateFeatureOnlineStoreRequest. */ + class CreateFeatureOnlineStoreRequest implements ICreateFeatureOnlineStoreRequest { /** - * Constructs a new WriteFeatureValuesPayload. + * Constructs a new CreateFeatureOnlineStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload); + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest); - /** WriteFeatureValuesPayload entityId. */ - public entityId: string; + /** CreateFeatureOnlineStoreRequest parent. */ + public parent: string; - /** WriteFeatureValuesPayload featureValues. */ - public featureValues: { [k: string]: google.cloud.aiplatform.v1.IFeatureValue }; + /** CreateFeatureOnlineStoreRequest featureOnlineStore. */ + public featureOnlineStore?: (google.cloud.aiplatform.v1.IFeatureOnlineStore|null); + + /** CreateFeatureOnlineStoreRequest featureOnlineStoreId. */ + public featureOnlineStoreId: string; /** - * Creates a new WriteFeatureValuesPayload instance using the specified properties. + * Creates a new CreateFeatureOnlineStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesPayload instance + * @returns CreateFeatureOnlineStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest; /** - * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified CreateFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.verify|verify} messages. + * @param message CreateFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified CreateFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.verify|verify} messages. + * @param message CreateFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. + * Decodes a CreateFeatureOnlineStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesPayload + * @returns CreateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesPayload + * @returns CreateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest; /** - * Verifies a WriteFeatureValuesPayload message. + * Verifies a CreateFeatureOnlineStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesPayload + * @returns CreateFeatureOnlineStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest; /** - * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. - * @param message WriteFeatureValuesPayload + * Creates a plain object from a CreateFeatureOnlineStoreRequest message. Also converts values to other types if specified. + * @param message CreateFeatureOnlineStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesPayload to JSON. + * Converts this CreateFeatureOnlineStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesPayload + * Gets the default type url for CreateFeatureOnlineStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesResponse. */ - interface IWriteFeatureValuesResponse { + /** Properties of a GetFeatureOnlineStoreRequest. */ + interface IGetFeatureOnlineStoreRequest { + + /** GetFeatureOnlineStoreRequest name */ + name?: (string|null); } - /** Represents a WriteFeatureValuesResponse. */ - class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { + /** Represents a GetFeatureOnlineStoreRequest. */ + class GetFeatureOnlineStoreRequest implements IGetFeatureOnlineStoreRequest { /** - * Constructs a new WriteFeatureValuesResponse. + * Constructs a new GetFeatureOnlineStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest); + + /** GetFeatureOnlineStoreRequest name. */ + public name: string; /** - * Creates a new WriteFeatureValuesResponse instance using the specified properties. + * Creates a new GetFeatureOnlineStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesResponse instance + * @returns GetFeatureOnlineStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest): google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest; /** - * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified GetFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest.verify|verify} messages. + * @param message GetFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified GetFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest.verify|verify} messages. + * @param message GetFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a GetFeatureOnlineStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesResponse + * @returns GetFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesResponse + * @returns GetFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest; /** - * Verifies a WriteFeatureValuesResponse message. + * Verifies a GetFeatureOnlineStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesResponse + * @returns GetFeatureOnlineStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest; /** - * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. - * @param message WriteFeatureValuesResponse + * Creates a plain object from a GetFeatureOnlineStoreRequest message. Also converts values to other types if specified. + * @param message GetFeatureOnlineStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesResponse to JSON. + * Converts this GetFeatureOnlineStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesResponse + * Gets the default type url for GetFeatureOnlineStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesRequest. */ - interface IReadFeatureValuesRequest { + /** Properties of a ListFeatureOnlineStoresRequest. */ + interface IListFeatureOnlineStoresRequest { - /** ReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** ListFeatureOnlineStoresRequest parent */ + parent?: (string|null); - /** ReadFeatureValuesRequest entityId */ - entityId?: (string|null); + /** ListFeatureOnlineStoresRequest filter */ + filter?: (string|null); - /** ReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** ListFeatureOnlineStoresRequest pageSize */ + pageSize?: (number|null); + + /** ListFeatureOnlineStoresRequest pageToken */ + pageToken?: (string|null); + + /** ListFeatureOnlineStoresRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ReadFeatureValuesRequest. */ - class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { + /** Represents a ListFeatureOnlineStoresRequest. */ + class ListFeatureOnlineStoresRequest implements IListFeatureOnlineStoresRequest { /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new ListFeatureOnlineStoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest); - /** ReadFeatureValuesRequest entityType. */ - public entityType: string; + /** ListFeatureOnlineStoresRequest parent. */ + public parent: string; - /** ReadFeatureValuesRequest entityId. */ - public entityId: string; + /** ListFeatureOnlineStoresRequest filter. */ + public filter: string; - /** ReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** ListFeatureOnlineStoresRequest pageSize. */ + public pageSize: number; + + /** ListFeatureOnlineStoresRequest pageToken. */ + public pageToken: string; + + /** ListFeatureOnlineStoresRequest orderBy. */ + public orderBy: string; /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeatureOnlineStoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesRequest instance + * @returns ListFeatureOnlineStoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest): google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeatureOnlineStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest.verify|verify} messages. + * @param message ListFeatureOnlineStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeatureOnlineStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest.verify|verify} messages. + * @param message ListFeatureOnlineStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeatureOnlineStoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesRequest + * @returns ListFeatureOnlineStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureOnlineStoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesRequest + * @returns ListFeatureOnlineStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies a ListFeatureOnlineStoresRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureOnlineStoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesRequest + * @returns ListFeatureOnlineStoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ReadFeatureValuesRequest + * Creates a plain object from a ListFeatureOnlineStoresRequest message. Also converts values to other types if specified. + * @param message ListFeatureOnlineStoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this ListFeatureOnlineStoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesRequest + * Gets the default type url for ListFeatureOnlineStoresRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesResponse. */ - interface IReadFeatureValuesResponse { + /** Properties of a ListFeatureOnlineStoresResponse. */ + interface IListFeatureOnlineStoresResponse { - /** ReadFeatureValuesResponse header */ - header?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null); + /** ListFeatureOnlineStoresResponse featureOnlineStores */ + featureOnlineStores?: (google.cloud.aiplatform.v1.IFeatureOnlineStore[]|null); - /** ReadFeatureValuesResponse entityView */ - entityView?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null); + /** ListFeatureOnlineStoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ReadFeatureValuesResponse. */ - class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { + /** Represents a ListFeatureOnlineStoresResponse. */ + class ListFeatureOnlineStoresResponse implements IListFeatureOnlineStoresResponse { /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new ListFeatureOnlineStoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse); - /** ReadFeatureValuesResponse header. */ - public header?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null); + /** ListFeatureOnlineStoresResponse featureOnlineStores. */ + public featureOnlineStores: google.cloud.aiplatform.v1.IFeatureOnlineStore[]; - /** ReadFeatureValuesResponse entityView. */ - public entityView?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null); + /** ListFeatureOnlineStoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeatureOnlineStoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesResponse instance + * @returns ListFeatureOnlineStoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse): google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeatureOnlineStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.verify|verify} messages. + * @param message ListFeatureOnlineStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeatureOnlineStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.verify|verify} messages. + * @param message ListFeatureOnlineStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeatureOnlineStoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesResponse + * @returns ListFeatureOnlineStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureOnlineStoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesResponse + * @returns ListFeatureOnlineStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies a ListFeatureOnlineStoresResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureOnlineStoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesResponse + * @returns ListFeatureOnlineStoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ReadFeatureValuesResponse + * Creates a plain object from a ListFeatureOnlineStoresResponse message. Also converts values to other types if specified. + * @param message ListFeatureOnlineStoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this ListFeatureOnlineStoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesResponse + * Gets the default type url for ListFeatureOnlineStoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadFeatureValuesResponse { - - /** Properties of a FeatureDescriptor. */ - interface IFeatureDescriptor { - - /** FeatureDescriptor id */ - id?: (string|null); - } - - /** Represents a FeatureDescriptor. */ - class FeatureDescriptor implements IFeatureDescriptor { - - /** - * Constructs a new FeatureDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor); - - /** FeatureDescriptor id. */ - public id: string; - - /** - * Creates a new FeatureDescriptor instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureDescriptor instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; - - /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; - - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; - - /** - * Verifies a FeatureDescriptor message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureDescriptor - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; - - /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. - * @param message FeatureDescriptor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureDescriptor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Header. */ - interface IHeader { - - /** Header entityType */ - entityType?: (string|null); - - /** Header featureDescriptors */ - featureDescriptors?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); - } - - /** Represents a Header. */ - class Header implements IHeader { - - /** - * Constructs a new Header. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader); - - /** Header entityType. */ - public entityType: string; - - /** Header featureDescriptors. */ - public featureDescriptors: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor[]; - - /** - * Creates a new Header instance using the specified properties. - * @param [properties] Properties to set - * @returns Header instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; - - /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Header message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; - - /** - * Decodes a Header message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; - - /** - * Verifies a Header message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Header - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; - - /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Header to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Header - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EntityView. */ - interface IEntityView { - - /** EntityView entityId */ - entityId?: (string|null); - - /** EntityView data */ - data?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData[]|null); - } - - /** Represents an EntityView. */ - class EntityView implements IEntityView { - - /** - * Constructs a new EntityView. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView); - - /** EntityView entityId. */ - public entityId: string; - - /** EntityView data. */ - public data: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData[]; - - /** - * Creates a new EntityView instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityView instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; - - /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityView message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; - - /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; - - /** - * Verifies an EntityView message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EntityView message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityView - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; - - /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @param message EntityView - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityView to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EntityView - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace EntityView { - - /** Properties of a Data. */ - interface IData { - - /** Data value */ - value?: (google.cloud.aiplatform.v1.IFeatureValue|null); - - /** Data values */ - values?: (google.cloud.aiplatform.v1.IFeatureValueList|null); - } - - /** Represents a Data. */ - class Data implements IData { - - /** - * Constructs a new Data. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData); - - /** Data value. */ - public value?: (google.cloud.aiplatform.v1.IFeatureValue|null); - - /** Data values. */ - public values?: (google.cloud.aiplatform.v1.IFeatureValueList|null); - - /** Data data. */ - public data?: ("value"|"values"); - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Verifies a Data message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Data - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Data to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Data - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of a StreamingReadFeatureValuesRequest. */ - interface IStreamingReadFeatureValuesRequest { - - /** StreamingReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** Properties of an UpdateFeatureOnlineStoreRequest. */ + interface IUpdateFeatureOnlineStoreRequest { - /** StreamingReadFeatureValuesRequest entityIds */ - entityIds?: (string[]|null); + /** UpdateFeatureOnlineStoreRequest featureOnlineStore */ + featureOnlineStore?: (google.cloud.aiplatform.v1.IFeatureOnlineStore|null); - /** StreamingReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** UpdateFeatureOnlineStoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a StreamingReadFeatureValuesRequest. */ - class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { + /** Represents an UpdateFeatureOnlineStoreRequest. */ + class UpdateFeatureOnlineStoreRequest implements IUpdateFeatureOnlineStoreRequest { /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new UpdateFeatureOnlineStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest); - - /** StreamingReadFeatureValuesRequest entityType. */ - public entityType: string; + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest); - /** StreamingReadFeatureValuesRequest entityIds. */ - public entityIds: string[]; + /** UpdateFeatureOnlineStoreRequest featureOnlineStore. */ + public featureOnlineStore?: (google.cloud.aiplatform.v1.IFeatureOnlineStore|null); - /** StreamingReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** UpdateFeatureOnlineStoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * Creates a new UpdateFeatureOnlineStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingReadFeatureValuesRequest instance + * @returns UpdateFeatureOnlineStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest; /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * Encodes the specified UpdateFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.verify|verify} messages. + * @param message UpdateFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * Encodes the specified UpdateFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.verify|verify} messages. + * @param message UpdateFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an UpdateFeatureOnlineStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingReadFeatureValuesRequest + * @returns UpdateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingReadFeatureValuesRequest + * @returns UpdateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest; /** - * Verifies a StreamingReadFeatureValuesRequest message. + * Verifies an UpdateFeatureOnlineStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingReadFeatureValuesRequest + * @returns UpdateFeatureOnlineStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest; /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message StreamingReadFeatureValuesRequest + * Creates a plain object from an UpdateFeatureOnlineStoreRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureOnlineStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingReadFeatureValuesRequest to JSON. + * Converts this UpdateFeatureOnlineStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingReadFeatureValuesRequest + * Gets the default type url for UpdateFeatureOnlineStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureValue. */ - interface IFeatureValue { - - /** FeatureValue boolValue */ - boolValue?: (boolean|null); - - /** FeatureValue doubleValue */ - doubleValue?: (number|null); - - /** FeatureValue int64Value */ - int64Value?: (number|Long|string|null); - - /** FeatureValue stringValue */ - stringValue?: (string|null); - - /** FeatureValue boolArrayValue */ - boolArrayValue?: (google.cloud.aiplatform.v1.IBoolArray|null); - - /** FeatureValue doubleArrayValue */ - doubleArrayValue?: (google.cloud.aiplatform.v1.IDoubleArray|null); - - /** FeatureValue int64ArrayValue */ - int64ArrayValue?: (google.cloud.aiplatform.v1.IInt64Array|null); - - /** FeatureValue stringArrayValue */ - stringArrayValue?: (google.cloud.aiplatform.v1.IStringArray|null); + /** Properties of a DeleteFeatureOnlineStoreRequest. */ + interface IDeleteFeatureOnlineStoreRequest { - /** FeatureValue bytesValue */ - bytesValue?: (Uint8Array|string|null); + /** DeleteFeatureOnlineStoreRequest name */ + name?: (string|null); - /** FeatureValue metadata */ - metadata?: (google.cloud.aiplatform.v1.FeatureValue.IMetadata|null); + /** DeleteFeatureOnlineStoreRequest force */ + force?: (boolean|null); } - /** Represents a FeatureValue. */ - class FeatureValue implements IFeatureValue { + /** Represents a DeleteFeatureOnlineStoreRequest. */ + class DeleteFeatureOnlineStoreRequest implements IDeleteFeatureOnlineStoreRequest { /** - * Constructs a new FeatureValue. + * Constructs a new DeleteFeatureOnlineStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFeatureValue); - - /** FeatureValue boolValue. */ - public boolValue?: (boolean|null); - - /** FeatureValue doubleValue. */ - public doubleValue?: (number|null); - - /** FeatureValue int64Value. */ - public int64Value?: (number|Long|string|null); - - /** FeatureValue stringValue. */ - public stringValue?: (string|null); - - /** FeatureValue boolArrayValue. */ - public boolArrayValue?: (google.cloud.aiplatform.v1.IBoolArray|null); - - /** FeatureValue doubleArrayValue. */ - public doubleArrayValue?: (google.cloud.aiplatform.v1.IDoubleArray|null); - - /** FeatureValue int64ArrayValue. */ - public int64ArrayValue?: (google.cloud.aiplatform.v1.IInt64Array|null); - - /** FeatureValue stringArrayValue. */ - public stringArrayValue?: (google.cloud.aiplatform.v1.IStringArray|null); - - /** FeatureValue bytesValue. */ - public bytesValue?: (Uint8Array|string|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest); - /** FeatureValue metadata. */ - public metadata?: (google.cloud.aiplatform.v1.FeatureValue.IMetadata|null); + /** DeleteFeatureOnlineStoreRequest name. */ + public name: string; - /** FeatureValue value. */ - public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); + /** DeleteFeatureOnlineStoreRequest force. */ + public force: boolean; /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new DeleteFeatureOnlineStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValue instance + * @returns DeleteFeatureOnlineStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFeatureValue): google.cloud.aiplatform.v1.FeatureValue; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest): google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified DeleteFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest.verify|verify} messages. + * @param message DeleteFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified DeleteFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest.verify|verify} messages. + * @param message DeleteFeatureOnlineStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes a DeleteFeatureOnlineStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValue + * @returns DeleteFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValue + * @returns DeleteFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest; /** - * Verifies a FeatureValue message. + * Verifies a DeleteFeatureOnlineStoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValue + * @returns DeleteFeatureOnlineStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValue; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. - * @param message FeatureValue + * Creates a plain object from a DeleteFeatureOnlineStoreRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureOnlineStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValue to JSON. + * Converts this DeleteFeatureOnlineStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValue + * Gets the default type url for DeleteFeatureOnlineStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureValue { - - /** Properties of a Metadata. */ - interface IMetadata { - - /** Metadata generateTime */ - generateTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - - /** - * Constructs a new Metadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.FeatureValue.IMetadata); - - /** Metadata generateTime. */ - public generateTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new Metadata instance using the specified properties. - * @param [properties] Properties to set - * @returns Metadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.FeatureValue.IMetadata): google.cloud.aiplatform.v1.FeatureValue.Metadata; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValue.Metadata; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValue.Metadata; - - /** - * Verifies a Metadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValue.Metadata; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CreateFeatureViewRequest. */ + interface ICreateFeatureViewRequest { - /** - * Converts this Metadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateFeatureViewRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for Metadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** CreateFeatureViewRequest featureView */ + featureView?: (google.cloud.aiplatform.v1.IFeatureView|null); - /** Properties of a FeatureValueList. */ - interface IFeatureValueList { + /** CreateFeatureViewRequest featureViewId */ + featureViewId?: (string|null); - /** FeatureValueList values */ - values?: (google.cloud.aiplatform.v1.IFeatureValue[]|null); + /** CreateFeatureViewRequest runSyncImmediately */ + runSyncImmediately?: (boolean|null); } - /** Represents a FeatureValueList. */ - class FeatureValueList implements IFeatureValueList { + /** Represents a CreateFeatureViewRequest. */ + class CreateFeatureViewRequest implements ICreateFeatureViewRequest { /** - * Constructs a new FeatureValueList. + * Constructs a new CreateFeatureViewRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFeatureValueList); + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureViewRequest); - /** FeatureValueList values. */ - public values: google.cloud.aiplatform.v1.IFeatureValue[]; + /** CreateFeatureViewRequest parent. */ + public parent: string; + + /** CreateFeatureViewRequest featureView. */ + public featureView?: (google.cloud.aiplatform.v1.IFeatureView|null); + + /** CreateFeatureViewRequest featureViewId. */ + public featureViewId: string; + + /** CreateFeatureViewRequest runSyncImmediately. */ + public runSyncImmediately: boolean; /** - * Creates a new FeatureValueList instance using the specified properties. + * Creates a new CreateFeatureViewRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueList instance + * @returns CreateFeatureViewRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFeatureValueList): google.cloud.aiplatform.v1.FeatureValueList; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureViewRequest): google.cloud.aiplatform.v1.CreateFeatureViewRequest; /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode + * Encodes the specified CreateFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewRequest.verify|verify} messages. + * @param message CreateFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode + * Encodes the specified CreateFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewRequest.verify|verify} messages. + * @param message CreateFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueList message from the specified reader or buffer. + * Decodes a CreateFeatureViewRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueList + * @returns CreateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValueList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureViewRequest; /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureViewRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueList + * @returns CreateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValueList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureViewRequest; /** - * Verifies a FeatureValueList message. + * Verifies a CreateFeatureViewRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueList + * @returns CreateFeatureViewRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValueList; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureViewRequest; /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. - * @param message FeatureValueList + * Creates a plain object from a CreateFeatureViewRequest message. Also converts values to other types if specified. + * @param message CreateFeatureViewRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureViewRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueList to JSON. + * Converts this CreateFeatureViewRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValueList + * Gets the default type url for CreateFeatureViewRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BoolArray. */ - interface IBoolArray { + /** Properties of a GetFeatureViewRequest. */ + interface IGetFeatureViewRequest { - /** BoolArray values */ - values?: (boolean[]|null); + /** GetFeatureViewRequest name */ + name?: (string|null); } - /** Represents a BoolArray. */ - class BoolArray implements IBoolArray { + /** Represents a GetFeatureViewRequest. */ + class GetFeatureViewRequest implements IGetFeatureViewRequest { /** - * Constructs a new BoolArray. + * Constructs a new GetFeatureViewRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBoolArray); + constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureViewRequest); - /** BoolArray values. */ - public values: boolean[]; + /** GetFeatureViewRequest name. */ + public name: string; /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new GetFeatureViewRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BoolArray instance + * @returns GetFeatureViewRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBoolArray): google.cloud.aiplatform.v1.BoolArray; + public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureViewRequest): google.cloud.aiplatform.v1.GetFeatureViewRequest; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified GetFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewRequest.verify|verify} messages. + * @param message GetFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified GetFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewRequest.verify|verify} messages. + * @param message GetFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a GetFeatureViewRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BoolArray + * @returns GetFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BoolArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureViewRequest; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureViewRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BoolArray + * @returns GetFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BoolArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureViewRequest; /** - * Verifies a BoolArray message. + * Verifies a GetFeatureViewRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BoolArray + * @returns GetFeatureViewRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BoolArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureViewRequest; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. - * @param message BoolArray + * Creates a plain object from a GetFeatureViewRequest message. Also converts values to other types if specified. + * @param message GetFeatureViewRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetFeatureViewRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BoolArray to JSON. + * Converts this GetFeatureViewRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BoolArray + * Gets the default type url for GetFeatureViewRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DoubleArray. */ - interface IDoubleArray { + /** Properties of a ListFeatureViewsRequest. */ + interface IListFeatureViewsRequest { - /** DoubleArray values */ - values?: (number[]|null); + /** ListFeatureViewsRequest parent */ + parent?: (string|null); + + /** ListFeatureViewsRequest filter */ + filter?: (string|null); + + /** ListFeatureViewsRequest pageSize */ + pageSize?: (number|null); + + /** ListFeatureViewsRequest pageToken */ + pageToken?: (string|null); + + /** ListFeatureViewsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a DoubleArray. */ - class DoubleArray implements IDoubleArray { + /** Represents a ListFeatureViewsRequest. */ + class ListFeatureViewsRequest implements IListFeatureViewsRequest { /** - * Constructs a new DoubleArray. + * Constructs a new ListFeatureViewsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDoubleArray); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureViewsRequest); - /** DoubleArray values. */ - public values: number[]; + /** ListFeatureViewsRequest parent. */ + public parent: string; + + /** ListFeatureViewsRequest filter. */ + public filter: string; + + /** ListFeatureViewsRequest pageSize. */ + public pageSize: number; + + /** ListFeatureViewsRequest pageToken. */ + public pageToken: string; + + /** ListFeatureViewsRequest orderBy. */ + public orderBy: string; /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new ListFeatureViewsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DoubleArray instance + * @returns ListFeatureViewsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDoubleArray): google.cloud.aiplatform.v1.DoubleArray; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureViewsRequest): google.cloud.aiplatform.v1.ListFeatureViewsRequest; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified ListFeatureViewsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsRequest.verify|verify} messages. + * @param message ListFeatureViewsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureViewsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified ListFeatureViewsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsRequest.verify|verify} messages. + * @param message ListFeatureViewsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureViewsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a ListFeatureViewsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DoubleArray + * @returns ListFeatureViewsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DoubleArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureViewsRequest; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DoubleArray + * @returns ListFeatureViewsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DoubleArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureViewsRequest; /** - * Verifies a DoubleArray message. + * Verifies a ListFeatureViewsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DoubleArray + * @returns ListFeatureViewsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DoubleArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureViewsRequest; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. - * @param message DoubleArray + * Creates a plain object from a ListFeatureViewsRequest message. Also converts values to other types if specified. + * @param message ListFeatureViewsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureViewsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DoubleArray to JSON. + * Converts this ListFeatureViewsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DoubleArray + * Gets the default type url for ListFeatureViewsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Int64Array. */ - interface IInt64Array { + /** Properties of a ListFeatureViewsResponse. */ + interface IListFeatureViewsResponse { - /** Int64Array values */ - values?: ((number|Long|string)[]|null); + /** ListFeatureViewsResponse featureViews */ + featureViews?: (google.cloud.aiplatform.v1.IFeatureView[]|null); + + /** ListFeatureViewsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an Int64Array. */ - class Int64Array implements IInt64Array { + /** Represents a ListFeatureViewsResponse. */ + class ListFeatureViewsResponse implements IListFeatureViewsResponse { /** - * Constructs a new Int64Array. + * Constructs a new ListFeatureViewsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IInt64Array); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureViewsResponse); - /** Int64Array values. */ - public values: (number|Long|string)[]; + /** ListFeatureViewsResponse featureViews. */ + public featureViews: google.cloud.aiplatform.v1.IFeatureView[]; + + /** ListFeatureViewsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new ListFeatureViewsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Int64Array instance + * @returns ListFeatureViewsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IInt64Array): google.cloud.aiplatform.v1.Int64Array; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureViewsResponse): google.cloud.aiplatform.v1.ListFeatureViewsResponse; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ListFeatureViewsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsResponse.verify|verify} messages. + * @param message ListFeatureViewsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureViewsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ListFeatureViewsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsResponse.verify|verify} messages. + * @param message ListFeatureViewsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureViewsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes a ListFeatureViewsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Int64Array + * @returns ListFeatureViewsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Int64Array; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureViewsResponse; /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Int64Array + * @returns ListFeatureViewsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Int64Array; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureViewsResponse; /** - * Verifies an Int64Array message. + * Verifies a ListFeatureViewsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Int64Array + * @returns ListFeatureViewsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Int64Array; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureViewsResponse; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. - * @param message Int64Array + * Creates a plain object from a ListFeatureViewsResponse message. Also converts values to other types if specified. + * @param message ListFeatureViewsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureViewsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Int64Array to JSON. + * Converts this ListFeatureViewsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Int64Array + * Gets the default type url for ListFeatureViewsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StringArray. */ - interface IStringArray { + /** Properties of an UpdateFeatureViewRequest. */ + interface IUpdateFeatureViewRequest { - /** StringArray values */ - values?: (string[]|null); + /** UpdateFeatureViewRequest featureView */ + featureView?: (google.cloud.aiplatform.v1.IFeatureView|null); + + /** UpdateFeatureViewRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a StringArray. */ - class StringArray implements IStringArray { + /** Represents an UpdateFeatureViewRequest. */ + class UpdateFeatureViewRequest implements IUpdateFeatureViewRequest { /** - * Constructs a new StringArray. + * Constructs a new UpdateFeatureViewRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStringArray); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest); - /** StringArray values. */ - public values: string[]; + /** UpdateFeatureViewRequest featureView. */ + public featureView?: (google.cloud.aiplatform.v1.IFeatureView|null); + + /** UpdateFeatureViewRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new StringArray instance using the specified properties. + * Creates a new UpdateFeatureViewRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StringArray instance + * @returns UpdateFeatureViewRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStringArray): google.cloud.aiplatform.v1.StringArray; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest): google.cloud.aiplatform.v1.UpdateFeatureViewRequest; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified UpdateFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewRequest.verify|verify} messages. + * @param message UpdateFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified UpdateFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewRequest.verify|verify} messages. + * @param message UpdateFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes an UpdateFeatureViewRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StringArray + * @returns UpdateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StringArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureViewRequest; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureViewRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StringArray + * @returns UpdateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StringArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureViewRequest; /** - * Verifies a StringArray message. + * Verifies an UpdateFeatureViewRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StringArray message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StringArray + * @returns UpdateFeatureViewRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StringArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureViewRequest; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. - * @param message StringArray + * Creates a plain object from an UpdateFeatureViewRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureViewRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureViewRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StringArray to JSON. + * Converts this UpdateFeatureViewRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StringArray + * Gets the default type url for UpdateFeatureViewRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Tensor. */ - interface ITensor { - - /** Tensor dtype */ - dtype?: (google.cloud.aiplatform.v1.Tensor.DataType|keyof typeof google.cloud.aiplatform.v1.Tensor.DataType|null); - - /** Tensor shape */ - shape?: ((number|Long|string)[]|null); - - /** Tensor boolVal */ - boolVal?: (boolean[]|null); - - /** Tensor stringVal */ - stringVal?: (string[]|null); - - /** Tensor bytesVal */ - bytesVal?: (Uint8Array[]|null); - - /** Tensor floatVal */ - floatVal?: (number[]|null); - - /** Tensor doubleVal */ - doubleVal?: (number[]|null); - - /** Tensor intVal */ - intVal?: (number[]|null); - - /** Tensor int64Val */ - int64Val?: ((number|Long|string)[]|null); - - /** Tensor uintVal */ - uintVal?: (number[]|null); - - /** Tensor uint64Val */ - uint64Val?: ((number|Long|string)[]|null); - - /** Tensor listVal */ - listVal?: (google.cloud.aiplatform.v1.ITensor[]|null); - - /** Tensor structVal */ - structVal?: ({ [k: string]: google.cloud.aiplatform.v1.ITensor }|null); + /** Properties of a DeleteFeatureViewRequest. */ + interface IDeleteFeatureViewRequest { - /** Tensor tensorVal */ - tensorVal?: (Uint8Array|string|null); + /** DeleteFeatureViewRequest name */ + name?: (string|null); } - /** Represents a Tensor. */ - class Tensor implements ITensor { + /** Represents a DeleteFeatureViewRequest. */ + class DeleteFeatureViewRequest implements IDeleteFeatureViewRequest { /** - * Constructs a new Tensor. + * Constructs a new DeleteFeatureViewRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensor); - - /** Tensor dtype. */ - public dtype: (google.cloud.aiplatform.v1.Tensor.DataType|keyof typeof google.cloud.aiplatform.v1.Tensor.DataType); - - /** Tensor shape. */ - public shape: (number|Long|string)[]; - - /** Tensor boolVal. */ - public boolVal: boolean[]; - - /** Tensor stringVal. */ - public stringVal: string[]; - - /** Tensor bytesVal. */ - public bytesVal: Uint8Array[]; - - /** Tensor floatVal. */ - public floatVal: number[]; - - /** Tensor doubleVal. */ - public doubleVal: number[]; - - /** Tensor intVal. */ - public intVal: number[]; - - /** Tensor int64Val. */ - public int64Val: (number|Long|string)[]; - - /** Tensor uintVal. */ - public uintVal: number[]; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest); - /** Tensor uint64Val. */ - public uint64Val: (number|Long|string)[]; - - /** Tensor listVal. */ - public listVal: google.cloud.aiplatform.v1.ITensor[]; - - /** Tensor structVal. */ - public structVal: { [k: string]: google.cloud.aiplatform.v1.ITensor }; - - /** Tensor tensorVal. */ - public tensorVal: (Uint8Array|string); + /** DeleteFeatureViewRequest name. */ + public name: string; /** - * Creates a new Tensor instance using the specified properties. + * Creates a new DeleteFeatureViewRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Tensor instance + * @returns DeleteFeatureViewRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensor): google.cloud.aiplatform.v1.Tensor; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest): google.cloud.aiplatform.v1.DeleteFeatureViewRequest; /** - * Encodes the specified Tensor message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. - * @param message Tensor message or plain object to encode + * Encodes the specified DeleteFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureViewRequest.verify|verify} messages. + * @param message DeleteFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Tensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. - * @param message Tensor message or plain object to encode + * Encodes the specified DeleteFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureViewRequest.verify|verify} messages. + * @param message DeleteFeatureViewRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Tensor message from the specified reader or buffer. + * Decodes a DeleteFeatureViewRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Tensor + * @returns DeleteFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Tensor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureViewRequest; /** - * Decodes a Tensor message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureViewRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Tensor + * @returns DeleteFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Tensor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureViewRequest; /** - * Verifies a Tensor message. + * Verifies a DeleteFeatureViewRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Tensor message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Tensor + * @returns DeleteFeatureViewRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureViewRequest; /** - * Creates a plain object from a Tensor message. Also converts values to other types if specified. - * @param message Tensor + * Creates a plain object from a DeleteFeatureViewRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureViewRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Tensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureViewRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Tensor to JSON. + * Converts this DeleteFeatureViewRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Tensor + * Gets the default type url for DeleteFeatureViewRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Tensor { + /** Properties of a CreateFeatureOnlineStoreOperationMetadata. */ + interface ICreateFeatureOnlineStoreOperationMetadata { - /** DataType enum. */ - enum DataType { - DATA_TYPE_UNSPECIFIED = 0, - BOOL = 1, - STRING = 2, - FLOAT = 3, - DOUBLE = 4, - INT8 = 5, - INT16 = 6, - INT32 = 7, - INT64 = 8, - UINT8 = 9, - UINT16 = 10, - UINT32 = 11, - UINT64 = 12 - } + /** CreateFeatureOnlineStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a FeaturestoreService */ - class FeaturestoreService extends $protobuf.rpc.Service { + /** Represents a CreateFeatureOnlineStoreOperationMetadata. */ + class CreateFeatureOnlineStoreOperationMetadata implements ICreateFeatureOnlineStoreOperationMetadata { /** - * Constructs a new FeaturestoreService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new CreateFeatureOnlineStoreOperationMetadata. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata); - /** - * Creates new FeaturestoreService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; + /** CreateFeatureOnlineStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateFeatureOnlineStoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureOnlineStoreOperationMetadata instance */ - public createFeaturestore(request: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestoreCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata; /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @returns Promise + * Encodes the specified CreateFeatureOnlineStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOnlineStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createFeaturestore(request: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Featurestore + * Encodes the specified CreateFeatureOnlineStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOnlineStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getFeaturestore(request: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestoreCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @returns Promise + * Decodes a CreateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureOnlineStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getFeaturestore(request: google.cloud.aiplatform.v1.IGetFeaturestoreRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata; /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + * Decodes a CreateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureOnlineStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listFeaturestores(request: google.cloud.aiplatform.v1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestoresCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata; /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @returns Promise + * Verifies a CreateFeatureOnlineStoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listFeaturestores(request: google.cloud.aiplatform.v1.IListFeaturestoresRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a CreateFeatureOnlineStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureOnlineStoreOperationMetadata */ - public updateFeaturestore(request: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestoreCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata; /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateFeatureOnlineStoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureOnlineStoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public updateFeaturestore(request: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this CreateFeatureOnlineStoreOperationMetadata to JSON. + * @returns JSON object */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestoreCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @returns Promise + * Gets the default type url for CreateFeatureOnlineStoreOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEntityType(request: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityTypeCallback): void; + /** Properties of an UpdateFeatureOnlineStoreOperationMetadata. */ + interface IUpdateFeatureOnlineStoreOperationMetadata { - /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise - */ - public createEntityType(request: google.cloud.aiplatform.v1.ICreateEntityTypeRequest): Promise; + /** UpdateFeatureOnlineStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType - */ - public getEntityType(request: google.cloud.aiplatform.v1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetEntityTypeCallback): void; + /** Represents an UpdateFeatureOnlineStoreOperationMetadata. */ + class UpdateFeatureOnlineStoreOperationMetadata implements IUpdateFeatureOnlineStoreOperationMetadata { /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise + * Constructs a new UpdateFeatureOnlineStoreOperationMetadata. + * @param [properties] Properties to set */ - public getEntityType(request: google.cloud.aiplatform.v1.IGetEntityTypeRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata); - /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse - */ - public listEntityTypes(request: google.cloud.aiplatform.v1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypesCallback): void; + /** UpdateFeatureOnlineStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise + * Creates a new UpdateFeatureOnlineStoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeatureOnlineStoreOperationMetadata instance */ - public listEntityTypes(request: google.cloud.aiplatform.v1.IListEntityTypesRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Encodes the specified UpdateFeatureOnlineStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureOnlineStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateEntityType(request: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityTypeCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise + * Encodes the specified UpdateFeatureOnlineStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureOnlineStoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateEntityType(request: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes an UpdateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeatureOnlineStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEntityType(request: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise + * Decodes an UpdateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeatureOnlineStoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEntityType(request: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata; /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies an UpdateFeatureOnlineStoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateFeatureCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @returns Promise + * Creates an UpdateFeatureOnlineStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeatureOnlineStoreOperationMetadata */ - public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata; /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from an UpdateFeatureOnlineStoreOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeatureOnlineStoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeaturesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @returns Promise + * Converts this UpdateFeatureOnlineStoreOperationMetadata to JSON. + * @returns JSON object */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Gets the default type url for UpdateFeatureOnlineStoreOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetFeatureCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @returns Promise - */ - public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest): Promise; + /** Properties of a CreateFeatureViewOperationMetadata. */ + interface ICreateFeatureViewOperationMetadata { - /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse - */ - public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturesCallback): void; + /** CreateFeatureViewOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @returns Promise - */ - public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest): Promise; + /** Represents a CreateFeatureViewOperationMetadata. */ + class CreateFeatureViewOperationMetadata implements ICreateFeatureViewOperationMetadata { /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Constructs a new CreateFeatureViewOperationMetadata. + * @param [properties] Properties to set */ - public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeatureCallback): void; + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata); - /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @returns Promise - */ - public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest): Promise; + /** CreateFeatureViewOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateFeatureViewOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureViewOperationMetadata instance */ - public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata): google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @returns Promise + * Encodes the specified CreateFeatureViewOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata.verify|verify} messages. + * @param message CreateFeatureViewOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateFeatureViewOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata.verify|verify} messages. + * @param message CreateFeatureViewOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public importFeatureValues(request: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValuesCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @returns Promise + * Decodes a CreateFeatureViewOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public importFeatureValues(request: google.cloud.aiplatform.v1.IImportFeatureValuesRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a CreateFeatureViewOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @returns Promise + * Verifies a CreateFeatureViewOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a CreateFeatureViewOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureViewOperationMetadata */ - public exportFeatureValues(request: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValuesCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata; /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateFeatureViewOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureViewOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public exportFeatureValues(request: google.cloud.aiplatform.v1.IExportFeatureValuesRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteFeatureValues. - * @param request DeleteFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this CreateFeatureViewOperationMetadata to JSON. + * @returns JSON object */ - public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteFeatureValues. - * @param request DeleteFeatureValuesRequest message or plain object - * @returns Promise + * Gets the default type url for CreateFeatureViewOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse - */ - public searchFeatures(request: google.cloud.aiplatform.v1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.SearchFeaturesCallback): void; + /** Properties of an UpdateFeatureViewOperationMetadata. */ + interface IUpdateFeatureViewOperationMetadata { + + /** UpdateFeatureViewOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateFeatureViewOperationMetadata. */ + class UpdateFeatureViewOperationMetadata implements IUpdateFeatureViewOperationMetadata { /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @returns Promise + * Constructs a new UpdateFeatureViewOperationMetadata. + * @param [properties] Properties to set */ - public searchFeatures(request: google.cloud.aiplatform.v1.ISearchFeaturesRequest): Promise; - } + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata); - namespace FeaturestoreService { + /** UpdateFeatureViewOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * Creates a new UpdateFeatureViewOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeatureViewOperationMetadata instance */ - type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata): google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeaturestore}. - * @param error Error, if any - * @param [response] Featurestore + * Encodes the specified UpdateFeatureViewOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureViewOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Featurestore) => void; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeaturestores}. - * @param error Error, if any - * @param [response] ListFeaturestoresResponse + * Encodes the specified UpdateFeatureViewOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureViewOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeaturestoresResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateFeatureViewOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateFeatureViewOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createEntityType}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateFeatureViewOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getEntityType}. - * @param error Error, if any - * @param [response] EntityType + * Creates an UpdateFeatureViewOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeatureViewOperationMetadata */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.EntityType) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse + * Creates a plain object from an UpdateFeatureViewOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeatureViewOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListEntityTypesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateEntityType}. - * @param error Error, if any - * @param [response] EntityType + * Converts this UpdateFeatureViewOperationMetadata to JSON. + * @returns JSON object */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.EntityType) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteEntityType}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for UpdateFeatureViewOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SyncFeatureViewRequest. */ + interface ISyncFeatureViewRequest { + + /** SyncFeatureViewRequest featureView */ + featureView?: (string|null); + } + + /** Represents a SyncFeatureViewRequest. */ + class SyncFeatureViewRequest implements ISyncFeatureViewRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeature}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new SyncFeatureViewRequest. + * @param [properties] Properties to set */ - type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1.ISyncFeatureViewRequest); + + /** SyncFeatureViewRequest featureView. */ + public featureView: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchCreateFeatures}. - * @param error Error, if any - * @param [response] Operation + * Creates a new SyncFeatureViewRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SyncFeatureViewRequest instance */ - type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1.ISyncFeatureViewRequest): google.cloud.aiplatform.v1.SyncFeatureViewRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeature}. - * @param error Error, if any - * @param [response] Feature + * Encodes the specified SyncFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewRequest.verify|verify} messages. + * @param message SyncFeatureViewRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Feature) => void; + public static encode(message: google.cloud.aiplatform.v1.ISyncFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeatures}. - * @param error Error, if any - * @param [response] ListFeaturesResponse + * Encodes the specified SyncFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewRequest.verify|verify} messages. + * @param message SyncFeatureViewRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeaturesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISyncFeatureViewRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeature}. - * @param error Error, if any - * @param [response] Feature + * Decodes a SyncFeatureViewRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SyncFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Feature) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SyncFeatureViewRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeature}. - * @param error Error, if any - * @param [response] Operation + * Decodes a SyncFeatureViewRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SyncFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SyncFeatureViewRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|importFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Verifies a SyncFeatureViewRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchReadFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a SyncFeatureViewRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SyncFeatureViewRequest */ - type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SyncFeatureViewRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|exportFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a SyncFeatureViewRequest message. Also converts values to other types if specified. + * @param message SyncFeatureViewRequest + * @param [options] Conversion options + * @returns Plain object */ - type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1.SyncFeatureViewRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Converts this SyncFeatureViewRequest to JSON. + * @returns JSON object */ - type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. - * @param error Error, if any - * @param [response] SearchFeaturesResponse + * Gets the default type url for SyncFeatureViewRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchFeaturesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeaturestoreRequest. */ - interface ICreateFeaturestoreRequest { - - /** CreateFeaturestoreRequest parent */ - parent?: (string|null); - - /** CreateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + /** Properties of a SyncFeatureViewResponse. */ + interface ISyncFeatureViewResponse { - /** CreateFeaturestoreRequest featurestoreId */ - featurestoreId?: (string|null); + /** SyncFeatureViewResponse featureViewSync */ + featureViewSync?: (string|null); } - /** Represents a CreateFeaturestoreRequest. */ - class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { + /** Represents a SyncFeatureViewResponse. */ + class SyncFeatureViewResponse implements ISyncFeatureViewResponse { /** - * Constructs a new CreateFeaturestoreRequest. + * Constructs a new SyncFeatureViewResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest); - - /** CreateFeaturestoreRequest parent. */ - public parent: string; - - /** CreateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + constructor(properties?: google.cloud.aiplatform.v1.ISyncFeatureViewResponse); - /** CreateFeaturestoreRequest featurestoreId. */ - public featurestoreId: string; + /** SyncFeatureViewResponse featureViewSync. */ + public featureViewSync: string; /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new SyncFeatureViewResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeaturestoreRequest instance + * @returns SyncFeatureViewResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISyncFeatureViewResponse): google.cloud.aiplatform.v1.SyncFeatureViewResponse; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified SyncFeatureViewResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewResponse.verify|verify} messages. + * @param message SyncFeatureViewResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISyncFeatureViewResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified SyncFeatureViewResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewResponse.verify|verify} messages. + * @param message SyncFeatureViewResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISyncFeatureViewResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a SyncFeatureViewResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreRequest + * @returns SyncFeatureViewResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SyncFeatureViewResponse; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a SyncFeatureViewResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreRequest + * @returns SyncFeatureViewResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SyncFeatureViewResponse; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a SyncFeatureViewResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SyncFeatureViewResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeaturestoreRequest + * @returns SyncFeatureViewResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SyncFeatureViewResponse; /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message CreateFeaturestoreRequest + * Creates a plain object from a SyncFeatureViewResponse message. Also converts values to other types if specified. + * @param message SyncFeatureViewResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SyncFeatureViewResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this SyncFeatureViewResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeaturestoreRequest + * Gets the default type url for SyncFeatureViewResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFeaturestoreRequest. */ - interface IGetFeaturestoreRequest { + /** Properties of a GetFeatureViewSyncRequest. */ + interface IGetFeatureViewSyncRequest { - /** GetFeaturestoreRequest name */ + /** GetFeatureViewSyncRequest name */ name?: (string|null); } - /** Represents a GetFeaturestoreRequest. */ - class GetFeaturestoreRequest implements IGetFeaturestoreRequest { + /** Represents a GetFeatureViewSyncRequest. */ + class GetFeatureViewSyncRequest implements IGetFeatureViewSyncRequest { /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new GetFeatureViewSyncRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest); - /** GetFeaturestoreRequest name. */ + /** GetFeatureViewSyncRequest name. */ public name: string; /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new GetFeatureViewSyncRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeaturestoreRequest instance + * @returns GetFeatureViewSyncRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1.GetFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest): google.cloud.aiplatform.v1.GetFeatureViewSyncRequest; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified GetFeatureViewSyncRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewSyncRequest.verify|verify} messages. + * @param message GetFeatureViewSyncRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified GetFeatureViewSyncRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewSyncRequest.verify|verify} messages. + * @param message GetFeatureViewSyncRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes a GetFeatureViewSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFeaturestoreRequest + * @returns GetFeatureViewSyncRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureViewSyncRequest; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureViewSyncRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeaturestoreRequest + * @returns GetFeatureViewSyncRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureViewSyncRequest; /** - * Verifies a GetFeaturestoreRequest message. + * Verifies a GetFeatureViewSyncRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureViewSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeaturestoreRequest + * @returns GetFeatureViewSyncRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureViewSyncRequest; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. - * @param message GetFeaturestoreRequest + * Creates a plain object from a GetFeatureViewSyncRequest message. Also converts values to other types if specified. + * @param message GetFeatureViewSyncRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetFeatureViewSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this GetFeatureViewSyncRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeaturestoreRequest + * Gets the default type url for GetFeatureViewSyncRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresRequest. */ - interface IListFeaturestoresRequest { + /** Properties of a ListFeatureViewSyncsRequest. */ + interface IListFeatureViewSyncsRequest { - /** ListFeaturestoresRequest parent */ + /** ListFeatureViewSyncsRequest parent */ parent?: (string|null); - /** ListFeaturestoresRequest filter */ + /** ListFeatureViewSyncsRequest filter */ filter?: (string|null); - /** ListFeaturestoresRequest pageSize */ + /** ListFeatureViewSyncsRequest pageSize */ pageSize?: (number|null); - /** ListFeaturestoresRequest pageToken */ + /** ListFeatureViewSyncsRequest pageToken */ pageToken?: (string|null); - /** ListFeaturestoresRequest orderBy */ + /** ListFeatureViewSyncsRequest orderBy */ orderBy?: (string|null); - - /** ListFeaturestoresRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListFeaturestoresRequest. */ - class ListFeaturestoresRequest implements IListFeaturestoresRequest { + /** Represents a ListFeatureViewSyncsRequest. */ + class ListFeatureViewSyncsRequest implements IListFeatureViewSyncsRequest { /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new ListFeatureViewSyncsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListFeaturestoresRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest); - /** ListFeaturestoresRequest parent. */ + /** ListFeatureViewSyncsRequest parent. */ public parent: string; - /** ListFeaturestoresRequest filter. */ + /** ListFeatureViewSyncsRequest filter. */ public filter: string; - /** ListFeaturestoresRequest pageSize. */ + /** ListFeatureViewSyncsRequest pageSize. */ public pageSize: number; - /** ListFeaturestoresRequest pageToken. */ + /** ListFeatureViewSyncsRequest pageToken. */ public pageToken: string; - /** ListFeaturestoresRequest orderBy. */ + /** ListFeatureViewSyncsRequest orderBy. */ public orderBy: string; - /** ListFeaturestoresRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new ListFeatureViewSyncsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresRequest instance + * @returns ListFeatureViewSyncsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListFeaturestoresRequest): google.cloud.aiplatform.v1.ListFeaturestoresRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest): google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified ListFeatureViewSyncsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest.verify|verify} messages. + * @param message ListFeatureViewSyncsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified ListFeatureViewSyncsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest.verify|verify} messages. + * @param message ListFeatureViewSyncsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a ListFeatureViewSyncsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresRequest + * @returns ListFeatureViewSyncsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturestoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewSyncsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresRequest + * @returns ListFeatureViewSyncsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturestoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a ListFeatureViewSyncsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewSyncsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresRequest + * @returns ListFeatureViewSyncsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturestoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. - * @param message ListFeaturestoresRequest + * Creates a plain object from a ListFeatureViewSyncsRequest message. Also converts values to other types if specified. + * @param message ListFeatureViewSyncsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this ListFeatureViewSyncsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresRequest + * Gets the default type url for ListFeatureViewSyncsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresResponse. */ - interface IListFeaturestoresResponse { + /** Properties of a ListFeatureViewSyncsResponse. */ + interface IListFeatureViewSyncsResponse { - /** ListFeaturestoresResponse featurestores */ - featurestores?: (google.cloud.aiplatform.v1.IFeaturestore[]|null); + /** ListFeatureViewSyncsResponse featureViewSyncs */ + featureViewSyncs?: (google.cloud.aiplatform.v1.IFeatureViewSync[]|null); - /** ListFeaturestoresResponse nextPageToken */ + /** ListFeatureViewSyncsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListFeaturestoresResponse. */ - class ListFeaturestoresResponse implements IListFeaturestoresResponse { + /** Represents a ListFeatureViewSyncsResponse. */ + class ListFeatureViewSyncsResponse implements IListFeatureViewSyncsResponse { /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new ListFeatureViewSyncsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListFeaturestoresResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse); - /** ListFeaturestoresResponse featurestores. */ - public featurestores: google.cloud.aiplatform.v1.IFeaturestore[]; + /** ListFeatureViewSyncsResponse featureViewSyncs. */ + public featureViewSyncs: google.cloud.aiplatform.v1.IFeatureViewSync[]; - /** ListFeaturestoresResponse nextPageToken. */ + /** ListFeatureViewSyncsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new ListFeatureViewSyncsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresResponse instance + * @returns ListFeatureViewSyncsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListFeaturestoresResponse): google.cloud.aiplatform.v1.ListFeaturestoresResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse): google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified ListFeatureViewSyncsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.verify|verify} messages. + * @param message ListFeatureViewSyncsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified ListFeatureViewSyncsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.verify|verify} messages. + * @param message ListFeatureViewSyncsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a ListFeatureViewSyncsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresResponse + * @returns ListFeatureViewSyncsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturestoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewSyncsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresResponse + * @returns ListFeatureViewSyncsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturestoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a ListFeatureViewSyncsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewSyncsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresResponse + * @returns ListFeatureViewSyncsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturestoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. - * @param message ListFeaturestoresResponse + * Creates a plain object from a ListFeatureViewSyncsResponse message. Also converts values to other types if specified. + * @param message ListFeatureViewSyncsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this ListFeatureViewSyncsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresResponse + * Gets the default type url for ListFeatureViewSyncsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeaturestoreRequest. */ - interface IUpdateFeaturestoreRequest { + /** Properties of a FeatureView. */ + interface IFeatureView { - /** UpdateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + /** FeatureView bigQuerySource */ + bigQuerySource?: (google.cloud.aiplatform.v1.FeatureView.IBigQuerySource|null); - /** UpdateFeaturestoreRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** FeatureView featureRegistrySource */ + featureRegistrySource?: (google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource|null); + + /** FeatureView name */ + name?: (string|null); + + /** FeatureView createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureView updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureView etag */ + etag?: (string|null); + + /** FeatureView labels */ + labels?: ({ [k: string]: string }|null); + + /** FeatureView syncConfig */ + syncConfig?: (google.cloud.aiplatform.v1.FeatureView.ISyncConfig|null); } - /** Represents an UpdateFeaturestoreRequest. */ - class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { + /** Represents a FeatureView. */ + class FeatureView implements IFeatureView { /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new FeatureView. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureView); - /** UpdateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + /** FeatureView bigQuerySource. */ + public bigQuerySource?: (google.cloud.aiplatform.v1.FeatureView.IBigQuerySource|null); - /** UpdateFeaturestoreRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** FeatureView featureRegistrySource. */ + public featureRegistrySource?: (google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource|null); + + /** FeatureView name. */ + public name: string; + + /** FeatureView createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureView updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureView etag. */ + public etag: string; + + /** FeatureView labels. */ + public labels: { [k: string]: string }; + + /** FeatureView syncConfig. */ + public syncConfig?: (google.cloud.aiplatform.v1.FeatureView.ISyncConfig|null); + + /** FeatureView source. */ + public source?: ("bigQuerySource"|"featureRegistrySource"); /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureView instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreRequest instance + * @returns FeatureView instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureView): google.cloud.aiplatform.v1.FeatureView; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureView message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.verify|verify} messages. + * @param message FeatureView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.verify|verify} messages. + * @param message FeatureView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureView message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreRequest + * @returns FeatureView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureView; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureView message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreRequest + * @returns FeatureView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureView; /** - * Verifies an UpdateFeaturestoreRequest message. + * Verifies a FeatureView message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureView message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreRequest + * @returns FeatureView */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureView; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreRequest + * Creates a plain object from a FeatureView message. Also converts values to other types if specified. + * @param message FeatureView * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureView, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this FeatureView to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFeaturestoreRequest + * Gets the default type url for FeatureView * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeaturestoreRequest. */ - interface IDeleteFeaturestoreRequest { + namespace FeatureView { - /** DeleteFeaturestoreRequest name */ + /** Properties of a BigQuerySource. */ + interface IBigQuerySource { + + /** BigQuerySource uri */ + uri?: (string|null); + + /** BigQuerySource entityIdColumns */ + entityIdColumns?: (string[]|null); + } + + /** Represents a BigQuerySource. */ + class BigQuerySource implements IBigQuerySource { + + /** + * Constructs a new BigQuerySource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureView.IBigQuerySource); + + /** BigQuerySource uri. */ + public uri: string; + + /** BigQuerySource entityIdColumns. */ + public entityIdColumns: string[]; + + /** + * Creates a new BigQuerySource instance using the specified properties. + * @param [properties] Properties to set + * @returns BigQuerySource instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureView.IBigQuerySource): google.cloud.aiplatform.v1.FeatureView.BigQuerySource; + + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureView.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureView.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureView.BigQuerySource; + + /** + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureView.BigQuerySource; + + /** + * Verifies a BigQuerySource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BigQuerySource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureView.BigQuerySource; + + /** + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @param message BigQuerySource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureView.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigQuerySource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BigQuerySource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SyncConfig. */ + interface ISyncConfig { + + /** SyncConfig cron */ + cron?: (string|null); + } + + /** Represents a SyncConfig. */ + class SyncConfig implements ISyncConfig { + + /** + * Constructs a new SyncConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureView.ISyncConfig); + + /** SyncConfig cron. */ + public cron: string; + + /** + * Creates a new SyncConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SyncConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureView.ISyncConfig): google.cloud.aiplatform.v1.FeatureView.SyncConfig; + + /** + * Encodes the specified SyncConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.SyncConfig.verify|verify} messages. + * @param message SyncConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureView.ISyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SyncConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.SyncConfig.verify|verify} messages. + * @param message SyncConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureView.ISyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SyncConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SyncConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureView.SyncConfig; + + /** + * Decodes a SyncConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SyncConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureView.SyncConfig; + + /** + * Verifies a SyncConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SyncConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SyncConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureView.SyncConfig; + + /** + * Creates a plain object from a SyncConfig message. Also converts values to other types if specified. + * @param message SyncConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureView.SyncConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SyncConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SyncConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FeatureRegistrySource. */ + interface IFeatureRegistrySource { + + /** FeatureRegistrySource featureGroups */ + featureGroups?: (google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup[]|null); + } + + /** Represents a FeatureRegistrySource. */ + class FeatureRegistrySource implements IFeatureRegistrySource { + + /** + * Constructs a new FeatureRegistrySource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource); + + /** FeatureRegistrySource featureGroups. */ + public featureGroups: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup[]; + + /** + * Creates a new FeatureRegistrySource instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureRegistrySource instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource; + + /** + * Encodes the specified FeatureRegistrySource message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.verify|verify} messages. + * @param message FeatureRegistrySource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureRegistrySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.verify|verify} messages. + * @param message FeatureRegistrySource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureRegistrySource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureRegistrySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource; + + /** + * Decodes a FeatureRegistrySource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureRegistrySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource; + + /** + * Verifies a FeatureRegistrySource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureRegistrySource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureRegistrySource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource; + + /** + * Creates a plain object from a FeatureRegistrySource message. Also converts values to other types if specified. + * @param message FeatureRegistrySource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureRegistrySource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureRegistrySource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureRegistrySource { + + /** Properties of a FeatureGroup. */ + interface IFeatureGroup { + + /** FeatureGroup featureGroupId */ + featureGroupId?: (string|null); + + /** FeatureGroup featureIds */ + featureIds?: (string[]|null); + } + + /** Represents a FeatureGroup. */ + class FeatureGroup implements IFeatureGroup { + + /** + * Constructs a new FeatureGroup. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup); + + /** FeatureGroup featureGroupId. */ + public featureGroupId: string; + + /** FeatureGroup featureIds. */ + public featureIds: string[]; + + /** + * Creates a new FeatureGroup instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureGroup instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup; + + /** + * Encodes the specified FeatureGroup message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.verify|verify} messages. + * @param message FeatureGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureGroup message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.verify|verify} messages. + * @param message FeatureGroup message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureGroup message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup; + + /** + * Decodes a FeatureGroup message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup; + + /** + * Verifies a FeatureGroup message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureGroup message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureGroup + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup; + + /** + * Creates a plain object from a FeatureGroup message. Also converts values to other types if specified. + * @param message FeatureGroup + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureGroup to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureGroup + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a FeatureViewSync. */ + interface IFeatureViewSync { + + /** FeatureViewSync name */ name?: (string|null); - /** DeleteFeaturestoreRequest force */ - force?: (boolean|null); + /** FeatureViewSync createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureViewSync runTime */ + runTime?: (google.type.IInterval|null); + + /** FeatureViewSync finalStatus */ + finalStatus?: (google.rpc.IStatus|null); } - /** Represents a DeleteFeaturestoreRequest. */ - class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { + /** Represents a FeatureViewSync. */ + class FeatureViewSync implements IFeatureViewSync { /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new FeatureViewSync. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureViewSync); - /** DeleteFeaturestoreRequest name. */ + /** FeatureViewSync name. */ public name: string; - /** DeleteFeaturestoreRequest force. */ - public force: boolean; + /** FeatureViewSync createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureViewSync runTime. */ + public runTime?: (google.type.IInterval|null); + + /** FeatureViewSync finalStatus. */ + public finalStatus?: (google.rpc.IStatus|null); /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureViewSync instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeaturestoreRequest instance + * @returns FeatureViewSync instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureViewSync): google.cloud.aiplatform.v1.FeatureViewSync; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureViewSync message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewSync.verify|verify} messages. + * @param message FeatureViewSync message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureViewSync, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureViewSync message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewSync.verify|verify} messages. + * @param message FeatureViewSync message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureViewSync, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureViewSync message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeaturestoreRequest + * @returns FeatureViewSync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureViewSync; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureViewSync message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeaturestoreRequest + * @returns FeatureViewSync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureViewSync; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a FeatureViewSync message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureViewSync message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeaturestoreRequest + * @returns FeatureViewSync */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureViewSync; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. - * @param message DeleteFeaturestoreRequest + * Creates a plain object from a FeatureViewSync message. Also converts values to other types if specified. + * @param message FeatureViewSync * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureViewSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this FeatureViewSync to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeaturestoreRequest + * Gets the default type url for FeatureViewSync * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFeatureValuesRequest. */ - interface IImportFeatureValuesRequest { - - /** ImportFeatureValuesRequest avroSource */ - avroSource?: (google.cloud.aiplatform.v1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** Represents a FeatureOnlineStoreService */ + class FeatureOnlineStoreService extends $protobuf.rpc.Service { - /** ImportFeatureValuesRequest csvSource */ - csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + /** + * Constructs a new FeatureOnlineStoreService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ImportFeatureValuesRequest featureTimeField */ - featureTimeField?: (string|null); + /** + * Creates new FeatureOnlineStoreService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeatureOnlineStoreService; - /** ImportFeatureValuesRequest featureTime */ - featureTime?: (google.protobuf.ITimestamp|null); + /** + * Calls FetchFeatureValues. + * @param request FetchFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FetchFeatureValuesResponse + */ + public fetchFeatureValues(request: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValuesCallback): void; - /** ImportFeatureValuesRequest entityType */ - entityType?: (string|null); + /** + * Calls FetchFeatureValues. + * @param request FetchFeatureValuesRequest message or plain object + * @returns Promise + */ + public fetchFeatureValues(request: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest): Promise; + } - /** ImportFeatureValuesRequest entityIdField */ - entityIdField?: (string|null); + namespace FeatureOnlineStoreService { - /** ImportFeatureValuesRequest featureSpecs */ - featureSpecs?: (google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreService|fetchFeatureValues}. + * @param error Error, if any + * @param [response] FetchFeatureValuesResponse + */ + type FetchFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.FetchFeatureValuesResponse) => void; + } - /** ImportFeatureValuesRequest disableOnlineServing */ - disableOnlineServing?: (boolean|null); + /** FeatureViewDataFormat enum. */ + enum FeatureViewDataFormat { + FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0, + KEY_VALUE = 1, + PROTO_STRUCT = 2 + } - /** ImportFeatureValuesRequest workerCount */ - workerCount?: (number|null); + /** Properties of a FeatureViewDataKey. */ + interface IFeatureViewDataKey { - /** ImportFeatureValuesRequest disableIngestionAnalysis */ - disableIngestionAnalysis?: (boolean|null); + /** FeatureViewDataKey key */ + key?: (string|null); } - /** Represents an ImportFeatureValuesRequest. */ - class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { + /** Represents a FeatureViewDataKey. */ + class FeatureViewDataKey implements IFeatureViewDataKey { /** - * Constructs a new ImportFeatureValuesRequest. + * Constructs a new FeatureViewDataKey. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesRequest); - - /** ImportFeatureValuesRequest avroSource. */ - public avroSource?: (google.cloud.aiplatform.v1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField. */ - public featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime. */ - public featureTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureViewDataKey); - /** ImportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ImportFeatureValuesRequest entityIdField. */ - public entityIdField: string; - - /** ImportFeatureValuesRequest featureSpecs. */ - public featureSpecs: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec[]; - - /** ImportFeatureValuesRequest disableOnlineServing. */ - public disableOnlineServing: boolean; - - /** ImportFeatureValuesRequest workerCount. */ - public workerCount: number; - - /** ImportFeatureValuesRequest disableIngestionAnalysis. */ - public disableIngestionAnalysis: boolean; - - /** ImportFeatureValuesRequest source. */ - public source?: ("avroSource"|"bigquerySource"|"csvSource"); + /** FeatureViewDataKey key. */ + public key?: (string|null); - /** ImportFeatureValuesRequest featureTimeSource. */ - public featureTimeSource?: ("featureTimeField"|"featureTime"); + /** FeatureViewDataKey keyOneof. */ + public keyOneof?: "key"; /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new FeatureViewDataKey instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesRequest instance + * @returns FeatureViewDataKey instance */ - public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureViewDataKey): google.cloud.aiplatform.v1.FeatureViewDataKey; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified FeatureViewDataKey message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewDataKey.verify|verify} messages. + * @param message FeatureViewDataKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureViewDataKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified FeatureViewDataKey message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewDataKey.verify|verify} messages. + * @param message FeatureViewDataKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureViewDataKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a FeatureViewDataKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesRequest + * @returns FeatureViewDataKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureViewDataKey; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureViewDataKey message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesRequest + * @returns FeatureViewDataKey * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureViewDataKey; /** - * Verifies an ImportFeatureValuesRequest message. + * Verifies a FeatureViewDataKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureViewDataKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesRequest + * @returns FeatureViewDataKey */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureViewDataKey; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ImportFeatureValuesRequest + * Creates a plain object from a FeatureViewDataKey message. Also converts values to other types if specified. + * @param message FeatureViewDataKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureViewDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this FeatureViewDataKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesRequest + * Gets the default type url for FeatureViewDataKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFeatureValuesRequest { - - /** Properties of a FeatureSpec. */ - interface IFeatureSpec { - - /** FeatureSpec id */ - id?: (string|null); - - /** FeatureSpec sourceField */ - sourceField?: (string|null); - } - - /** Represents a FeatureSpec. */ - class FeatureSpec implements IFeatureSpec { - - /** - * Constructs a new FeatureSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec); - - /** FeatureSpec id. */ - public id: string; - - /** FeatureSpec sourceField. */ - public sourceField: string; - - /** - * Creates a new FeatureSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Verifies a FeatureSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. - * @param message FeatureSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an ImportFeatureValuesResponse. */ - interface IImportFeatureValuesResponse { - - /** ImportFeatureValuesResponse importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** Properties of a FetchFeatureValuesRequest. */ + interface IFetchFeatureValuesRequest { - /** ImportFeatureValuesResponse importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** FetchFeatureValuesRequest featureView */ + featureView?: (string|null); - /** ImportFeatureValuesResponse invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** FetchFeatureValuesRequest dataKey */ + dataKey?: (google.cloud.aiplatform.v1.IFeatureViewDataKey|null); - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); + /** FetchFeatureValuesRequest dataFormat */ + dataFormat?: (google.cloud.aiplatform.v1.FeatureViewDataFormat|keyof typeof google.cloud.aiplatform.v1.FeatureViewDataFormat|null); } - /** Represents an ImportFeatureValuesResponse. */ - class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { + /** Represents a FetchFeatureValuesRequest. */ + class FetchFeatureValuesRequest implements IFetchFeatureValuesRequest { /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new FetchFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesResponse); - - /** ImportFeatureValuesResponse importedEntityCount. */ - public importedEntityCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest); - /** ImportFeatureValuesResponse importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** FetchFeatureValuesRequest featureView. */ + public featureView: string; - /** ImportFeatureValuesResponse invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** FetchFeatureValuesRequest dataKey. */ + public dataKey?: (google.cloud.aiplatform.v1.IFeatureViewDataKey|null); - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); + /** FetchFeatureValuesRequest dataFormat. */ + public dataFormat: (google.cloud.aiplatform.v1.FeatureViewDataFormat|keyof typeof google.cloud.aiplatform.v1.FeatureViewDataFormat); /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new FetchFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesResponse instance + * @returns FetchFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest): google.cloud.aiplatform.v1.FetchFeatureValuesRequest; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified FetchFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesRequest.verify|verify} messages. + * @param message FetchFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified FetchFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesRequest.verify|verify} messages. + * @param message FetchFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a FetchFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesResponse + * @returns FetchFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FetchFeatureValuesRequest; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a FetchFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesResponse + * @returns FetchFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FetchFeatureValuesRequest; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies a FetchFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesResponse + * @returns FetchFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FetchFeatureValuesRequest; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ImportFeatureValuesResponse + * Creates a plain object from a FetchFeatureValuesRequest message. Also converts values to other types if specified. + * @param message FetchFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FetchFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this FetchFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesResponse + * Gets the default type url for FetchFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesRequest. */ - interface IBatchReadFeatureValuesRequest { - - /** BatchReadFeatureValuesRequest csvReadInstances */ - csvReadInstances?: (google.cloud.aiplatform.v1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances */ - bigqueryReadInstances?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore */ - featurestore?: (string|null); - - /** BatchReadFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields */ - passThroughFields?: (google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); + /** Properties of a FetchFeatureValuesResponse. */ + interface IFetchFeatureValuesResponse { - /** BatchReadFeatureValuesRequest entityTypeSpecs */ - entityTypeSpecs?: (google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); + /** FetchFeatureValuesResponse keyValues */ + keyValues?: (google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList|null); - /** BatchReadFeatureValuesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** FetchFeatureValuesResponse protoStruct */ + protoStruct?: (google.protobuf.IStruct|null); } - /** Represents a BatchReadFeatureValuesRequest. */ - class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { + /** Represents a FetchFeatureValuesResponse. */ + class FetchFeatureValuesResponse implements IFetchFeatureValuesResponse { /** - * Constructs a new BatchReadFeatureValuesRequest. + * Constructs a new FetchFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest); - - /** BatchReadFeatureValuesRequest csvReadInstances. */ - public csvReadInstances?: (google.cloud.aiplatform.v1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ - public bigqueryReadInstances?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore. */ - public featurestore: string; - - /** BatchReadFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields. */ - public passThroughFields: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField[]; + constructor(properties?: google.cloud.aiplatform.v1.IFetchFeatureValuesResponse); - /** BatchReadFeatureValuesRequest entityTypeSpecs. */ - public entityTypeSpecs: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + /** FetchFeatureValuesResponse keyValues. */ + public keyValues?: (google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList|null); - /** BatchReadFeatureValuesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** FetchFeatureValuesResponse protoStruct. */ + public protoStruct?: (google.protobuf.IStruct|null); - /** BatchReadFeatureValuesRequest readOption. */ - public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + /** FetchFeatureValuesResponse format. */ + public format?: ("keyValues"|"protoStruct"); /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new FetchFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesRequest instance + * @returns FetchFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFetchFeatureValuesResponse): google.cloud.aiplatform.v1.FetchFeatureValuesResponse; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified FetchFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.verify|verify} messages. + * @param message FetchFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified FetchFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.verify|verify} messages. + * @param message FetchFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a FetchFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesRequest + * @returns FetchFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FetchFeatureValuesResponse; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesRequest + * @returns FetchFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FetchFeatureValuesResponse; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a FetchFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesRequest + * @returns FetchFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FetchFeatureValuesResponse; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesRequest + * Creates a plain object from a FetchFeatureValuesResponse message. Also converts values to other types if specified. + * @param message FetchFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this FetchFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesRequest + * Gets the default type url for FetchFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchReadFeatureValuesRequest { + namespace FetchFeatureValuesResponse { - /** Properties of a PassThroughField. */ - interface IPassThroughField { + /** Properties of a FeatureNameValuePairList. */ + interface IFeatureNameValuePairList { - /** PassThroughField fieldName */ - fieldName?: (string|null); + /** FeatureNameValuePairList features */ + features?: (google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair[]|null); } - /** Represents a PassThroughField. */ - class PassThroughField implements IPassThroughField { + /** Represents a FeatureNameValuePairList. */ + class FeatureNameValuePairList implements IFeatureNameValuePairList { /** - * Constructs a new PassThroughField. + * Constructs a new FeatureNameValuePairList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField); + constructor(properties?: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList); - /** PassThroughField fieldName. */ - public fieldName: string; + /** FeatureNameValuePairList features. */ + public features: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair[]; /** - * Creates a new PassThroughField instance using the specified properties. + * Creates a new FeatureNameValuePairList instance using the specified properties. * @param [properties] Properties to set - * @returns PassThroughField instance + * @returns FeatureNameValuePairList instance */ - public static create(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; + public static create(properties?: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList; /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode + * Encodes the specified FeatureNameValuePairList message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.verify|verify} messages. + * @param message FeatureNameValuePairList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode + * Encodes the specified FeatureNameValuePairList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.verify|verify} messages. + * @param message FeatureNameValuePairList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PassThroughField message from the specified reader or buffer. + * Decodes a FeatureNameValuePairList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PassThroughField + * @returns FeatureNameValuePairList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList; /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. + * Decodes a FeatureNameValuePairList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PassThroughField + * @returns FeatureNameValuePairList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList; /** - * Verifies a PassThroughField message. + * Verifies a FeatureNameValuePairList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureNameValuePairList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PassThroughField + * @returns FeatureNameValuePairList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList; /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. - * @param message PassThroughField + * Creates a plain object from a FeatureNameValuePairList message. Also converts values to other types if specified. + * @param message FeatureNameValuePairList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PassThroughField to JSON. + * Converts this FeatureNameValuePairList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PassThroughField + * Gets the default type url for FeatureNameValuePairList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityTypeSpec. */ - interface IEntityTypeSpec { + namespace FeatureNameValuePairList { - /** EntityTypeSpec entityTypeId */ - entityTypeId?: (string|null); + /** Properties of a FeatureNameValuePair. */ + interface IFeatureNameValuePair { - /** EntityTypeSpec featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** FeatureNameValuePair value */ + value?: (google.cloud.aiplatform.v1.IFeatureValue|null); - /** EntityTypeSpec settings */ - settings?: (google.cloud.aiplatform.v1.IDestinationFeatureSetting[]|null); - } + /** FeatureNameValuePair name */ + name?: (string|null); + } - /** Represents an EntityTypeSpec. */ - class EntityTypeSpec implements IEntityTypeSpec { + /** Represents a FeatureNameValuePair. */ + class FeatureNameValuePair implements IFeatureNameValuePair { - /** - * Constructs a new EntityTypeSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec); + /** + * Constructs a new FeatureNameValuePair. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair); - /** EntityTypeSpec entityTypeId. */ - public entityTypeId: string; + /** FeatureNameValuePair value. */ + public value?: (google.cloud.aiplatform.v1.IFeatureValue|null); - /** EntityTypeSpec featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** FeatureNameValuePair name. */ + public name: string; - /** EntityTypeSpec settings. */ - public settings: google.cloud.aiplatform.v1.IDestinationFeatureSetting[]; + /** FeatureNameValuePair data. */ + public data?: "value"; - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityTypeSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; + /** + * Creates a new FeatureNameValuePair instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureNameValuePair instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair; - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureNameValuePair message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.verify|verify} messages. + * @param message FeatureNameValuePair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureNameValuePair message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.verify|verify} messages. + * @param message FeatureNameValuePair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; + /** + * Decodes a FeatureNameValuePair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureNameValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair; - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; + /** + * Decodes a FeatureNameValuePair message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureNameValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair; - /** - * Verifies an EntityTypeSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a FeatureNameValuePair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityTypeSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; + /** + * Creates a FeatureNameValuePair message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureNameValuePair + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair; - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @param message EntityTypeSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a FeatureNameValuePair message. Also converts values to other types if specified. + * @param message FeatureNameValuePair + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this EntityTypeSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this FeatureNameValuePair to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for EntityTypeSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for FeatureNameValuePair + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } } - /** Properties of an ExportFeatureValuesRequest. */ - interface IExportFeatureValuesRequest { - - /** ExportFeatureValuesRequest snapshotExport */ - snapshotExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport */ - fullExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType */ - entityType?: (string|null); - - /** ExportFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - - /** ExportFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - - /** ExportFeatureValuesRequest settings */ - settings?: (google.cloud.aiplatform.v1.IDestinationFeatureSetting[]|null); - } - - /** Represents an ExportFeatureValuesRequest. */ - class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + /** Represents a FeaturestoreOnlineServingService */ + class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { /** - * Constructs a new ExportFeatureValuesRequest. - * @param [properties] Properties to set + * Constructs a new FeaturestoreOnlineServingService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesRequest); - - /** ExportFeatureValuesRequest snapshotExport. */ - public snapshotExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport. */ - public fullExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ExportFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - - /** ExportFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - - /** ExportFeatureValuesRequest settings. */ - public settings: google.cloud.aiplatform.v1.IDestinationFeatureSetting[]; - - /** ExportFeatureValuesRequest mode. */ - public mode?: ("snapshotExport"|"fullExport"); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFeatureValuesRequest instance + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1.IReadFeatureValuesRequest): Promise; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest): Promise; /** - * Verifies an ExportFeatureValuesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public writeFeatureValues(request: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; /** - * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFeatureValuesRequest + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; + public writeFeatureValues(request: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest): Promise; + } + + namespace FeaturestoreOnlineServingService { /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ExportFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|readFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse) => void; /** - * Converts this ExportFeatureValuesRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public toJSON(): { [k: string]: any }; + type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse) => void; /** - * Gets the default type url for ExportFeatureValuesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|writeFeatureValues}. + * @param error Error, if any + * @param [response] WriteFeatureValuesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ExportFeatureValuesRequest { - - /** Properties of a SnapshotExport. */ - interface ISnapshotExport { - - /** SnapshotExport snapshotTime */ - snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a SnapshotExport. */ - class SnapshotExport implements ISnapshotExport { - - /** - * Constructs a new SnapshotExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport); - - /** SnapshotExport snapshotTime. */ - public snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new SnapshotExport instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Verifies a SnapshotExport message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @param message SnapshotExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FullExport. */ - interface IFullExport { - - /** FullExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** FullExport endTime */ - endTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a FullExport. */ - class FullExport implements IFullExport { - - /** - * Constructs a new FullExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport); - - /** FullExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** FullExport endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new FullExport instance using the specified properties. - * @param [properties] Properties to set - * @returns FullExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; - - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FullExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; - - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; - - /** - * Verifies a FullExport message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FullExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; - - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @param message FullExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FullExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FullExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteFeatureValuesResponse) => void; } - /** Properties of a DestinationFeatureSetting. */ - interface IDestinationFeatureSetting { + /** Properties of a WriteFeatureValuesRequest. */ + interface IWriteFeatureValuesRequest { - /** DestinationFeatureSetting featureId */ - featureId?: (string|null); + /** WriteFeatureValuesRequest entityType */ + entityType?: (string|null); - /** DestinationFeatureSetting destinationField */ - destinationField?: (string|null); + /** WriteFeatureValuesRequest payloads */ + payloads?: (google.cloud.aiplatform.v1.IWriteFeatureValuesPayload[]|null); } - /** Represents a DestinationFeatureSetting. */ - class DestinationFeatureSetting implements IDestinationFeatureSetting { + /** Represents a WriteFeatureValuesRequest. */ + class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { /** - * Constructs a new DestinationFeatureSetting. + * Constructs a new WriteFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDestinationFeatureSetting); + constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest); - /** DestinationFeatureSetting featureId. */ - public featureId: string; + /** WriteFeatureValuesRequest entityType. */ + public entityType: string; - /** DestinationFeatureSetting destinationField. */ - public destinationField: string; + /** WriteFeatureValuesRequest payloads. */ + public payloads: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload[]; /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new WriteFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DestinationFeatureSetting instance + * @returns WriteFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDestinationFeatureSetting): google.cloud.aiplatform.v1.DestinationFeatureSetting; + public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DestinationFeatureSetting + * @returns WriteFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DestinationFeatureSetting; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DestinationFeatureSetting + * @returns WriteFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DestinationFeatureSetting; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; /** - * Verifies a DestinationFeatureSetting message. + * Verifies a WriteFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DestinationFeatureSetting + * @returns WriteFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DestinationFeatureSetting; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesRequest; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. - * @param message DestinationFeatureSetting + * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message WriteFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this WriteFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DestinationFeatureSetting + * Gets the default type url for WriteFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureValueDestination. */ - interface IFeatureValueDestination { - - /** FeatureValueDestination bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** Properties of a WriteFeatureValuesPayload. */ + interface IWriteFeatureValuesPayload { - /** FeatureValueDestination tfrecordDestination */ - tfrecordDestination?: (google.cloud.aiplatform.v1.ITFRecordDestination|null); + /** WriteFeatureValuesPayload entityId */ + entityId?: (string|null); - /** FeatureValueDestination csvDestination */ - csvDestination?: (google.cloud.aiplatform.v1.ICsvDestination|null); + /** WriteFeatureValuesPayload featureValues */ + featureValues?: ({ [k: string]: google.cloud.aiplatform.v1.IFeatureValue }|null); } - /** Represents a FeatureValueDestination. */ - class FeatureValueDestination implements IFeatureValueDestination { + /** Represents a WriteFeatureValuesPayload. */ + class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { /** - * Constructs a new FeatureValueDestination. + * Constructs a new WriteFeatureValuesPayload. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFeatureValueDestination); - - /** FeatureValueDestination bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination. */ - public tfrecordDestination?: (google.cloud.aiplatform.v1.ITFRecordDestination|null); + constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload); - /** FeatureValueDestination csvDestination. */ - public csvDestination?: (google.cloud.aiplatform.v1.ICsvDestination|null); + /** WriteFeatureValuesPayload entityId. */ + public entityId: string; - /** FeatureValueDestination destination. */ - public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); + /** WriteFeatureValuesPayload featureValues. */ + public featureValues: { [k: string]: google.cloud.aiplatform.v1.IFeatureValue }; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new WriteFeatureValuesPayload instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueDestination instance + * @returns WriteFeatureValuesPayload instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFeatureValueDestination): google.cloud.aiplatform.v1.FeatureValueDestination; + public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueDestination + * @returns WriteFeatureValuesPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValueDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueDestination + * @returns WriteFeatureValuesPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValueDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; /** - * Verifies a FeatureValueDestination message. + * Verifies a WriteFeatureValuesPayload message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueDestination + * @returns WriteFeatureValuesPayload */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValueDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesPayload; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. - * @param message FeatureValueDestination + * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. + * @param message WriteFeatureValuesPayload * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this WriteFeatureValuesPayload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValueDestination + * Gets the default type url for WriteFeatureValuesPayload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFeatureValuesResponse. */ - interface IExportFeatureValuesResponse { + /** Properties of a WriteFeatureValuesResponse. */ + interface IWriteFeatureValuesResponse { } - /** Represents an ExportFeatureValuesResponse. */ - class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { + /** Represents a WriteFeatureValuesResponse. */ + class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new WriteFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse); /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * Creates a new WriteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesResponse instance + * @returns WriteFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesResponse + * @returns WriteFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesResponse + * @returns WriteFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a WriteFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesResponse + * @returns WriteFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteFeatureValuesResponse; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ExportFeatureValuesResponse + * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message WriteFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this WriteFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesResponse + * Gets the default type url for WriteFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesResponse. */ - interface IBatchReadFeatureValuesResponse { + /** Properties of a ReadFeatureValuesRequest. */ + interface IReadFeatureValuesRequest { + + /** ReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** ReadFeatureValuesRequest entityId */ + entityId?: (string|null); + + /** ReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); } - /** Represents a BatchReadFeatureValuesResponse. */ - class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { + /** Represents a ReadFeatureValuesRequest. */ + class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new ReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesRequest); + + /** ReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** ReadFeatureValuesRequest entityId. */ + public entityId: string; + + /** ReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesResponse instance + * @returns ReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesResponse + * @returns ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesResponse + * @returns ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; /** - * Verifies a BatchReadFeatureValuesResponse message. + * Verifies a ReadFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesResponse + * @returns ReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesRequest; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesResponse + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesResponse + * Gets the default type url for ReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { - - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** Properties of a ReadFeatureValuesResponse. */ + interface IReadFeatureValuesResponse { - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + /** ReadFeatureValuesResponse header */ + header?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null); - /** CreateEntityTypeRequest entityTypeId */ - entityTypeId?: (string|null); + /** ReadFeatureValuesResponse entityView */ + entityView?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents a ReadFeatureValuesResponse. */ + class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeRequest); - - /** CreateEntityTypeRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesResponse); - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + /** ReadFeatureValuesResponse header. */ + public header?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null); - /** CreateEntityTypeRequest entityTypeId. */ - public entityTypeId: string; + /** ReadFeatureValuesResponse entityView. */ + public entityView?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns ReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a ReadFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns ReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ReadFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { - - /** GetEntityTypeRequest name */ - name?: (string|null); - } + namespace ReadFeatureValuesResponse { - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Properties of a FeatureDescriptor. */ + interface IFeatureDescriptor { - /** - * Constructs a new GetEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IGetEntityTypeRequest); + /** FeatureDescriptor id */ + id?: (string|null); + } - /** GetEntityTypeRequest name. */ - public name: string; + /** Represents a FeatureDescriptor. */ + class FeatureDescriptor implements IFeatureDescriptor { - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IGetEntityTypeRequest): google.cloud.aiplatform.v1.GetEntityTypeRequest; + /** + * Constructs a new FeatureDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor); - /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** FeatureDescriptor id. */ + public id: string; - /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureDescriptor instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from + /** + * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Verifies a FeatureDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @param message FeatureDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Header. */ + interface IHeader { + + /** Header entityType */ + entityType?: (string|null); + + /** Header featureDescriptors */ + featureDescriptors?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + } + + /** Represents a Header. */ + class Header implements IHeader { + + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader); + + /** Header entityType. */ + public entityType: string; + + /** Header featureDescriptors. */ + public featureDescriptors: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; + + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; + + /** + * Verifies a Header message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Header + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EntityView. */ + interface IEntityView { + + /** EntityView entityId */ + entityId?: (string|null); + + /** EntityView data */ + data?: (google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData[]|null); + } + + /** Represents an EntityView. */ + class EntityView implements IEntityView { + + /** + * Constructs a new EntityView. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView); + + /** EntityView entityId. */ + public entityId: string; + + /** EntityView data. */ + public data: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData[]; + + /** + * Creates a new EntityView instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityView instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; + + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; + + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; + + /** + * Verifies an EntityView message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EntityView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityView + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView; + + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @param message EntityView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityView + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EntityView { + + /** Properties of a Data. */ + interface IData { + + /** Data value */ + value?: (google.cloud.aiplatform.v1.IFeatureValue|null); + + /** Data values */ + values?: (google.cloud.aiplatform.v1.IFeatureValueList|null); + } + + /** Represents a Data. */ + class Data implements IData { + + /** + * Constructs a new Data. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData); + + /** Data value. */ + public value?: (google.cloud.aiplatform.v1.IFeatureValue|null); + + /** Data values. */ + public values?: (google.cloud.aiplatform.v1.IFeatureValueList|null); + + /** Data data. */ + public data?: ("value"|"values"); + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Verifies a Data message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Data message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Data + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Data to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Data + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a StreamingReadFeatureValuesRequest. */ + interface IStreamingReadFeatureValuesRequest { + + /** StreamingReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** StreamingReadFeatureValuesRequest entityIds */ + entityIds?: (string[]|null); + + /** StreamingReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + } + + /** Represents a StreamingReadFeatureValuesRequest. */ + class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { + + /** + * Constructs a new StreamingReadFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest); + + /** StreamingReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** StreamingReadFeatureValuesRequest entityIds. */ + public entityIds: string[]; + + /** StreamingReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + + /** + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamingReadFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; + + /** + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a StreamingReadFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns StreamingReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message StreamingReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEntityTypeRequest + * Gets the default type url for StreamingReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { + /** Properties of a FeatureValue. */ + interface IFeatureValue { - /** ListEntityTypesRequest parent */ - parent?: (string|null); + /** FeatureValue boolValue */ + boolValue?: (boolean|null); - /** ListEntityTypesRequest filter */ - filter?: (string|null); + /** FeatureValue doubleValue */ + doubleValue?: (number|null); - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** FeatureValue int64Value */ + int64Value?: (number|Long|string|null); - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** FeatureValue stringValue */ + stringValue?: (string|null); - /** ListEntityTypesRequest orderBy */ - orderBy?: (string|null); + /** FeatureValue boolArrayValue */ + boolArrayValue?: (google.cloud.aiplatform.v1.IBoolArray|null); - /** ListEntityTypesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** FeatureValue doubleArrayValue */ + doubleArrayValue?: (google.cloud.aiplatform.v1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue */ + int64ArrayValue?: (google.cloud.aiplatform.v1.IInt64Array|null); + + /** FeatureValue stringArrayValue */ + stringArrayValue?: (google.cloud.aiplatform.v1.IStringArray|null); + + /** FeatureValue bytesValue */ + bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata */ + metadata?: (google.cloud.aiplatform.v1.FeatureValue.IMetadata|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a FeatureValue. */ + class FeatureValue implements IFeatureValue { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new FeatureValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListEntityTypesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IFeatureValue); - /** ListEntityTypesRequest parent. */ - public parent: string; + /** FeatureValue boolValue. */ + public boolValue?: (boolean|null); - /** ListEntityTypesRequest filter. */ - public filter: string; + /** FeatureValue doubleValue. */ + public doubleValue?: (number|null); - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; + /** FeatureValue int64Value. */ + public int64Value?: (number|Long|string|null); - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; + /** FeatureValue stringValue. */ + public stringValue?: (string|null); - /** ListEntityTypesRequest orderBy. */ - public orderBy: string; + /** FeatureValue boolArrayValue. */ + public boolArrayValue?: (google.cloud.aiplatform.v1.IBoolArray|null); - /** ListEntityTypesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** FeatureValue doubleArrayValue. */ + public doubleArrayValue?: (google.cloud.aiplatform.v1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue. */ + public int64ArrayValue?: (google.cloud.aiplatform.v1.IInt64Array|null); + + /** FeatureValue stringArrayValue. */ + public stringArrayValue?: (google.cloud.aiplatform.v1.IStringArray|null); + + /** FeatureValue bytesValue. */ + public bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata. */ + public metadata?: (google.cloud.aiplatform.v1.FeatureValue.IMetadata|null); + + /** FeatureValue value. */ + public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns FeatureValue instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListEntityTypesRequest): google.cloud.aiplatform.v1.ListEntityTypesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureValue): google.cloud.aiplatform.v1.FeatureValue; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValue; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValue; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a FeatureValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns FeatureValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValue; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * @param message FeatureValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this FeatureValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesRequest + * Gets the default type url for FeatureValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { + namespace FeatureValue { - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.aiplatform.v1.IEntityType[]|null); + /** Properties of a Metadata. */ + interface IMetadata { - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Metadata generateTime */ + generateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureValue.IMetadata); + + /** Metadata generateTime. */ + public generateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureValue.IMetadata): google.cloud.aiplatform.v1.FeatureValue.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValue.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValue.Metadata; + + /** + * Verifies a Metadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValue.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Properties of a FeatureValueList. */ + interface IFeatureValueList { + + /** FeatureValueList values */ + values?: (google.cloud.aiplatform.v1.IFeatureValue[]|null); + } + + /** Represents a FeatureValueList. */ + class FeatureValueList implements IFeatureValueList { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new FeatureValueList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListEntityTypesResponse); - - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.aiplatform.v1.IEntityType[]; + constructor(properties?: google.cloud.aiplatform.v1.IFeatureValueList); - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** FeatureValueList values. */ + public values: google.cloud.aiplatform.v1.IFeatureValue[]; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * @returns FeatureValueList instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListEntityTypesResponse): google.cloud.aiplatform.v1.ListEntityTypesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureValueList): google.cloud.aiplatform.v1.FeatureValueList; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse + * @returns FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValueList; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse + * @returns FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValueList; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a FeatureValueList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesResponse + * @returns FeatureValueList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValueList; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * @param message FeatureValueList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this FeatureValueList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesResponse + * Gets the default type url for FeatureValueList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + /** Properties of an IdMatcher. */ + interface IIdMatcher { - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** IdMatcher ids */ + ids?: (string[]|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents an IdMatcher. */ + class IdMatcher implements IIdMatcher { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new IdMatcher. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + constructor(properties?: google.cloud.aiplatform.v1.IIdMatcher); - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** IdMatcher ids. */ + public ids: string[]; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns IdMatcher instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1.IIdMatcher): google.cloud.aiplatform.v1.IdMatcher; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.IdMatcher; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.IdMatcher; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies an IdMatcher message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns IdMatcher */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IdMatcher; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * @param message IdMatcher * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this IdMatcher to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for IdMatcher * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { - - /** DeleteEntityTypeRequest name */ - name?: (string|null); + /** Properties of a FeatureSelector. */ + interface IFeatureSelector { - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); + /** FeatureSelector idMatcher */ + idMatcher?: (google.cloud.aiplatform.v1.IIdMatcher|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a FeatureSelector. */ + class FeatureSelector implements IFeatureSelector { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new FeatureSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest); - - /** DeleteEntityTypeRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1.IFeatureSelector); - /** DeleteEntityTypeRequest force. */ - public force: boolean; + /** FeatureSelector idMatcher. */ + public idMatcher?: (google.cloud.aiplatform.v1.IIdMatcher|null); /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns FeatureSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1.IFeatureSelector): google.cloud.aiplatform.v1.FeatureSelector; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest + * @returns FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureSelector; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @returns FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureSelector; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a FeatureSelector message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEntityTypeRequest + * @returns FeatureSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureSelector; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. + * @param message FeatureSelector * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this FeatureSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEntityTypeRequest + * Gets the default type url for FeatureSelector * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeatureRequest. */ - interface ICreateFeatureRequest { - - /** CreateFeatureRequest parent */ - parent?: (string|null); - - /** CreateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1.IFeature|null); + /** Properties of a BoolArray. */ + interface IBoolArray { - /** CreateFeatureRequest featureId */ - featureId?: (string|null); + /** BoolArray values */ + values?: (boolean[]|null); } - /** Represents a CreateFeatureRequest. */ - class CreateFeatureRequest implements ICreateFeatureRequest { + /** Represents a BoolArray. */ + class BoolArray implements IBoolArray { /** - * Constructs a new CreateFeatureRequest. + * Constructs a new BoolArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureRequest); - - /** CreateFeatureRequest parent. */ - public parent: string; - - /** CreateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1.IFeature|null); + constructor(properties?: google.cloud.aiplatform.v1.IBoolArray); - /** CreateFeatureRequest featureId. */ - public featureId: string; + /** BoolArray values. */ + public values: boolean[]; /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureRequest instance + * @returns BoolArray instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureRequest): google.cloud.aiplatform.v1.CreateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBoolArray): google.cloud.aiplatform.v1.BoolArray; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureRequest + * @returns BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BoolArray; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureRequest + * @returns BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BoolArray; /** - * Verifies a CreateFeatureRequest message. + * Verifies a BoolArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureRequest + * @returns BoolArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BoolArray; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. - * @param message CreateFeatureRequest + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * @param message BoolArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this BoolArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeatureRequest + * Gets the default type url for BoolArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesRequest. */ - interface IBatchCreateFeaturesRequest { - - /** BatchCreateFeaturesRequest parent */ - parent?: (string|null); + /** Properties of a DoubleArray. */ + interface IDoubleArray { - /** BatchCreateFeaturesRequest requests */ - requests?: (google.cloud.aiplatform.v1.ICreateFeatureRequest[]|null); + /** DoubleArray values */ + values?: (number[]|null); } - /** Represents a BatchCreateFeaturesRequest. */ - class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + /** Represents a DoubleArray. */ + class DoubleArray implements IDoubleArray { /** - * Constructs a new BatchCreateFeaturesRequest. + * Constructs a new DoubleArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest); - - /** BatchCreateFeaturesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IDoubleArray); - /** BatchCreateFeaturesRequest requests. */ - public requests: google.cloud.aiplatform.v1.ICreateFeatureRequest[]; + /** DoubleArray values. */ + public values: number[]; /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesRequest instance + * @returns DoubleArray instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDoubleArray): google.cloud.aiplatform.v1.DoubleArray; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesRequest + * @returns DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DoubleArray; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesRequest + * @returns DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DoubleArray; /** - * Verifies a BatchCreateFeaturesRequest message. + * Verifies a DoubleArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesRequest + * @returns DoubleArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DoubleArray; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesRequest + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * @param message DoubleArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this DoubleArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesRequest + * Gets the default type url for DoubleArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesResponse. */ - interface IBatchCreateFeaturesResponse { + /** Properties of an Int64Array. */ + interface IInt64Array { - /** BatchCreateFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1.IFeature[]|null); + /** Int64Array values */ + values?: ((number|Long|string)[]|null); } - /** Represents a BatchCreateFeaturesResponse. */ - class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { + /** Represents an Int64Array. */ + class Int64Array implements IInt64Array { /** - * Constructs a new BatchCreateFeaturesResponse. + * Constructs a new Int64Array. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IInt64Array); - /** BatchCreateFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1.IFeature[]; + /** Int64Array values. */ + public values: (number|Long|string)[]; /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesResponse instance + * @returns Int64Array instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IInt64Array): google.cloud.aiplatform.v1.Int64Array; /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesResponse + * @returns Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Int64Array; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesResponse + * @returns Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Int64Array; /** - * Verifies a BatchCreateFeaturesResponse message. + * Verifies an Int64Array message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesResponse + * @returns Int64Array */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Int64Array; /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesResponse + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * @param message Int64Array * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesResponse to JSON. + * Converts this Int64Array to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesResponse + * Gets the default type url for Int64Array * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFeatureRequest. */ - interface IGetFeatureRequest { + /** Properties of a StringArray. */ + interface IStringArray { - /** GetFeatureRequest name */ - name?: (string|null); + /** StringArray values */ + values?: (string[]|null); } - /** Represents a GetFeatureRequest. */ - class GetFeatureRequest implements IGetFeatureRequest { + /** Represents a StringArray. */ + class StringArray implements IStringArray { /** - * Constructs a new GetFeatureRequest. + * Constructs a new StringArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureRequest); + constructor(properties?: google.cloud.aiplatform.v1.IStringArray); - /** GetFeatureRequest name. */ - public name: string; + /** StringArray values. */ + public values: string[]; /** - * Creates a new GetFeatureRequest instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeatureRequest instance + * @returns StringArray instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureRequest): google.cloud.aiplatform.v1.GetFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1.IStringArray): google.cloud.aiplatform.v1.StringArray; /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFeatureRequest + * @returns StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StringArray; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeatureRequest + * @returns StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StringArray; /** - * Verifies a GetFeatureRequest message. + * Verifies a StringArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeatureRequest + * @returns StringArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StringArray; /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. - * @param message GetFeatureRequest + * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * @param message StringArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeatureRequest to JSON. + * Converts this StringArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeatureRequest + * Gets the default type url for StringArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturesRequest. */ - interface IListFeaturesRequest { + /** Properties of a Tensor. */ + interface ITensor { - /** ListFeaturesRequest parent */ - parent?: (string|null); + /** Tensor dtype */ + dtype?: (google.cloud.aiplatform.v1.Tensor.DataType|keyof typeof google.cloud.aiplatform.v1.Tensor.DataType|null); - /** ListFeaturesRequest filter */ - filter?: (string|null); + /** Tensor shape */ + shape?: ((number|Long|string)[]|null); - /** ListFeaturesRequest pageSize */ - pageSize?: (number|null); + /** Tensor boolVal */ + boolVal?: (boolean[]|null); - /** ListFeaturesRequest pageToken */ - pageToken?: (string|null); + /** Tensor stringVal */ + stringVal?: (string[]|null); - /** ListFeaturesRequest orderBy */ - orderBy?: (string|null); + /** Tensor bytesVal */ + bytesVal?: (Uint8Array[]|null); - /** ListFeaturesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Tensor floatVal */ + floatVal?: (number[]|null); - /** ListFeaturesRequest latestStatsCount */ - latestStatsCount?: (number|null); + /** Tensor doubleVal */ + doubleVal?: (number[]|null); + + /** Tensor intVal */ + intVal?: (number[]|null); + + /** Tensor int64Val */ + int64Val?: ((number|Long|string)[]|null); + + /** Tensor uintVal */ + uintVal?: (number[]|null); + + /** Tensor uint64Val */ + uint64Val?: ((number|Long|string)[]|null); + + /** Tensor listVal */ + listVal?: (google.cloud.aiplatform.v1.ITensor[]|null); + + /** Tensor structVal */ + structVal?: ({ [k: string]: google.cloud.aiplatform.v1.ITensor }|null); + + /** Tensor tensorVal */ + tensorVal?: (Uint8Array|string|null); } - /** Represents a ListFeaturesRequest. */ - class ListFeaturesRequest implements IListFeaturesRequest { + /** Represents a Tensor. */ + class Tensor implements ITensor { /** - * Constructs a new ListFeaturesRequest. + * Constructs a new Tensor. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ITensor); - /** ListFeaturesRequest parent. */ - public parent: string; + /** Tensor dtype. */ + public dtype: (google.cloud.aiplatform.v1.Tensor.DataType|keyof typeof google.cloud.aiplatform.v1.Tensor.DataType); - /** ListFeaturesRequest filter. */ - public filter: string; + /** Tensor shape. */ + public shape: (number|Long|string)[]; - /** ListFeaturesRequest pageSize. */ - public pageSize: number; + /** Tensor boolVal. */ + public boolVal: boolean[]; - /** ListFeaturesRequest pageToken. */ - public pageToken: string; + /** Tensor stringVal. */ + public stringVal: string[]; - /** ListFeaturesRequest orderBy. */ - public orderBy: string; + /** Tensor bytesVal. */ + public bytesVal: Uint8Array[]; - /** ListFeaturesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Tensor floatVal. */ + public floatVal: number[]; - /** ListFeaturesRequest latestStatsCount. */ - public latestStatsCount: number; + /** Tensor doubleVal. */ + public doubleVal: number[]; + + /** Tensor intVal. */ + public intVal: number[]; + + /** Tensor int64Val. */ + public int64Val: (number|Long|string)[]; + + /** Tensor uintVal. */ + public uintVal: number[]; + + /** Tensor uint64Val. */ + public uint64Val: (number|Long|string)[]; + + /** Tensor listVal. */ + public listVal: google.cloud.aiplatform.v1.ITensor[]; + + /** Tensor structVal. */ + public structVal: { [k: string]: google.cloud.aiplatform.v1.ITensor }; + + /** Tensor tensorVal. */ + public tensorVal: (Uint8Array|string); /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new Tensor instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesRequest instance + * @returns Tensor instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListFeaturesRequest): google.cloud.aiplatform.v1.ListFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ITensor): google.cloud.aiplatform.v1.Tensor; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified Tensor message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. + * @param message Tensor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ITensor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified Tensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. + * @param message Tensor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes a Tensor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesRequest + * @returns Tensor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Tensor; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a Tensor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesRequest + * @returns Tensor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Tensor; /** - * Verifies a ListFeaturesRequest message. + * Verifies a Tensor message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Tensor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesRequest + * @returns Tensor */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensor; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. - * @param message ListFeaturesRequest + * Creates a plain object from a Tensor message. Also converts values to other types if specified. + * @param message Tensor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.Tensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this Tensor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturesRequest + * Gets the default type url for Tensor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturesResponse. */ - interface IListFeaturesResponse { - - /** ListFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1.IFeature[]|null); + namespace Tensor { - /** ListFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DataType enum. */ + enum DataType { + DATA_TYPE_UNSPECIFIED = 0, + BOOL = 1, + STRING = 2, + FLOAT = 3, + DOUBLE = 4, + INT8 = 5, + INT16 = 6, + INT32 = 7, + INT64 = 8, + UINT8 = 9, + UINT16 = 10, + UINT32 = 11, + UINT64 = 12 + } } - /** Represents a ListFeaturesResponse. */ - class ListFeaturesResponse implements IListFeaturesResponse { + /** Represents a FeatureRegistryService */ + class FeatureRegistryService extends $protobuf.rpc.Service { /** - * Constructs a new ListFeaturesResponse. - * @param [properties] Properties to set + * Constructs a new FeatureRegistryService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IListFeaturesResponse); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ListFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1.IFeature[]; + /** + * Creates new FeatureRegistryService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeatureRegistryService; - /** ListFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Calls CreateFeatureGroup. + * @param request CreateFeatureGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeatureGroup(request: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroupCallback): void; /** - * Creates a new ListFeaturesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFeaturesResponse instance + * Calls CreateFeatureGroup. + * @param request CreateFeatureGroupRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IListFeaturesResponse): google.cloud.aiplatform.v1.ListFeaturesResponse; + public createFeatureGroup(request: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest): Promise; /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetFeatureGroup. + * @param request GetFeatureGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureGroup */ - public static encode(message: google.cloud.aiplatform.v1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getFeatureGroup(request: google.cloud.aiplatform.v1.IGetFeatureGroupRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroupCallback): void; /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetFeatureGroup. + * @param request GetFeatureGroupRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getFeatureGroup(request: google.cloud.aiplatform.v1.IGetFeatureGroupRequest): Promise; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListFeatureGroups. + * @param request ListFeatureGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureGroupsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturesResponse; + public listFeatureGroups(request: google.cloud.aiplatform.v1.IListFeatureGroupsRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroupsCallback): void; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListFeatureGroups. + * @param request ListFeatureGroupsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturesResponse; + public listFeatureGroups(request: google.cloud.aiplatform.v1.IListFeatureGroupsRequest): Promise; /** - * Verifies a ListFeaturesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateFeatureGroup. + * @param request UpdateFeatureGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public updateFeatureGroup(request: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroupCallback): void; /** - * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFeaturesResponse + * Calls UpdateFeatureGroup. + * @param request UpdateFeatureGroupRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturesResponse; + public updateFeatureGroup(request: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest): Promise; /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. - * @param message ListFeaturesResponse - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteFeatureGroup. + * @param request DeleteFeatureGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteFeatureGroup(request: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroupCallback): void; /** - * Converts this ListFeaturesResponse to JSON. - * @returns JSON object + * Calls DeleteFeatureGroup. + * @param request DeleteFeatureGroupRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteFeatureGroup(request: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest): Promise; /** - * Gets the default type url for ListFeaturesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureCallback): void; + + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest): Promise; + + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureCallback): void; + + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest): Promise; + + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + */ + public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.ListFeaturesCallback): void; + + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest): Promise; + + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureCallback): void; + + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise + */ + public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest): Promise; + + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureCallback): void; + + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise + */ + public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest): Promise; } - /** Properties of a SearchFeaturesRequest. */ - interface ISearchFeaturesRequest { + namespace FeatureRegistryService { - /** SearchFeaturesRequest location */ - location?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|createFeatureGroup}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateFeatureGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** SearchFeaturesRequest query */ - query?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|getFeatureGroup}. + * @param error Error, if any + * @param [response] FeatureGroup + */ + type GetFeatureGroupCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.FeatureGroup) => void; - /** SearchFeaturesRequest pageSize */ - pageSize?: (number|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|listFeatureGroups}. + * @param error Error, if any + * @param [response] ListFeatureGroupsResponse + */ + type ListFeatureGroupsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeatureGroupsResponse) => void; - /** SearchFeaturesRequest pageToken */ - pageToken?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|updateFeatureGroup}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateFeatureGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|deleteFeatureGroup}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureGroupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|createFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|getFeature}. + * @param error Error, if any + * @param [response] Feature + */ + type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Feature) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|listFeatures}. + * @param error Error, if any + * @param [response] ListFeaturesResponse + */ + type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeaturesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|updateFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|deleteFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Represents a SearchFeaturesRequest. */ - class SearchFeaturesRequest implements ISearchFeaturesRequest { + /** Properties of a CreateFeatureGroupRequest. */ + interface ICreateFeatureGroupRequest { + + /** CreateFeatureGroupRequest parent */ + parent?: (string|null); + + /** CreateFeatureGroupRequest featureGroup */ + featureGroup?: (google.cloud.aiplatform.v1.IFeatureGroup|null); + + /** CreateFeatureGroupRequest featureGroupId */ + featureGroupId?: (string|null); + } + + /** Represents a CreateFeatureGroupRequest. */ + class CreateFeatureGroupRequest implements ICreateFeatureGroupRequest { /** - * Constructs a new SearchFeaturesRequest. + * Constructs a new CreateFeatureGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchFeaturesRequest); - - /** SearchFeaturesRequest location. */ - public location: string; + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest); - /** SearchFeaturesRequest query. */ - public query: string; + /** CreateFeatureGroupRequest parent. */ + public parent: string; - /** SearchFeaturesRequest pageSize. */ - public pageSize: number; + /** CreateFeatureGroupRequest featureGroup. */ + public featureGroup?: (google.cloud.aiplatform.v1.IFeatureGroup|null); - /** SearchFeaturesRequest pageToken. */ - public pageToken: string; + /** CreateFeatureGroupRequest featureGroupId. */ + public featureGroupId: string; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Creates a new CreateFeatureGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesRequest instance + * @returns CreateFeatureGroupRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchFeaturesRequest): google.cloud.aiplatform.v1.SearchFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest): google.cloud.aiplatform.v1.CreateFeatureGroupRequest; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified CreateFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupRequest.verify|verify} messages. + * @param message CreateFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified CreateFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupRequest.verify|verify} messages. + * @param message CreateFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes a CreateFeatureGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesRequest + * @returns CreateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureGroupRequest; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesRequest + * @returns CreateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureGroupRequest; /** - * Verifies a SearchFeaturesRequest message. + * Verifies a CreateFeatureGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesRequest + * @returns CreateFeatureGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureGroupRequest; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. - * @param message SearchFeaturesRequest + * Creates a plain object from a CreateFeatureGroupRequest message. Also converts values to other types if specified. + * @param message CreateFeatureGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this CreateFeatureGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesRequest + * Gets the default type url for CreateFeatureGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchFeaturesResponse. */ - interface ISearchFeaturesResponse { - - /** SearchFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1.IFeature[]|null); + /** Properties of a GetFeatureGroupRequest. */ + interface IGetFeatureGroupRequest { - /** SearchFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetFeatureGroupRequest name */ + name?: (string|null); } - /** Represents a SearchFeaturesResponse. */ - class SearchFeaturesResponse implements ISearchFeaturesResponse { + /** Represents a GetFeatureGroupRequest. */ + class GetFeatureGroupRequest implements IGetFeatureGroupRequest { /** - * Constructs a new SearchFeaturesResponse. + * Constructs a new GetFeatureGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchFeaturesResponse); - - /** SearchFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1.IFeature[]; + constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureGroupRequest); - /** SearchFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** GetFeatureGroupRequest name. */ + public name: string; /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Creates a new GetFeatureGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesResponse instance + * @returns GetFeatureGroupRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchFeaturesResponse): google.cloud.aiplatform.v1.SearchFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureGroupRequest): google.cloud.aiplatform.v1.GetFeatureGroupRequest; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified GetFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureGroupRequest.verify|verify} messages. + * @param message GetFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified GetFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureGroupRequest.verify|verify} messages. + * @param message GetFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a GetFeatureGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesResponse + * @returns GetFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureGroupRequest; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesResponse + * @returns GetFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureGroupRequest; /** - * Verifies a SearchFeaturesResponse message. + * Verifies a GetFeatureGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesResponse + * @returns GetFeatureGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureGroupRequest; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. - * @param message SearchFeaturesResponse + * Creates a plain object from a GetFeatureGroupRequest message. Also converts values to other types if specified. + * @param message GetFeatureGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetFeatureGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this GetFeatureGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesResponse + * Gets the default type url for GetFeatureGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeatureRequest. */ - interface IUpdateFeatureRequest { + /** Properties of a ListFeatureGroupsRequest. */ + interface IListFeatureGroupsRequest { - /** UpdateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1.IFeature|null); + /** ListFeatureGroupsRequest parent */ + parent?: (string|null); - /** UpdateFeatureRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListFeatureGroupsRequest filter */ + filter?: (string|null); + + /** ListFeatureGroupsRequest pageSize */ + pageSize?: (number|null); + + /** ListFeatureGroupsRequest pageToken */ + pageToken?: (string|null); + + /** ListFeatureGroupsRequest orderBy */ + orderBy?: (string|null); } - /** Represents an UpdateFeatureRequest. */ - class UpdateFeatureRequest implements IUpdateFeatureRequest { + /** Represents a ListFeatureGroupsRequest. */ + class ListFeatureGroupsRequest implements IListFeatureGroupsRequest { /** - * Constructs a new UpdateFeatureRequest. + * Constructs a new ListFeatureGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureGroupsRequest); - /** UpdateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1.IFeature|null); + /** ListFeatureGroupsRequest parent. */ + public parent: string; - /** UpdateFeatureRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListFeatureGroupsRequest filter. */ + public filter: string; + + /** ListFeatureGroupsRequest pageSize. */ + public pageSize: number; + + /** ListFeatureGroupsRequest pageToken. */ + public pageToken: string; + + /** ListFeatureGroupsRequest orderBy. */ + public orderBy: string; /** - * Creates a new UpdateFeatureRequest instance using the specified properties. + * Creates a new ListFeatureGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeatureRequest instance + * @returns ListFeatureGroupsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureRequest): google.cloud.aiplatform.v1.UpdateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureGroupsRequest): google.cloud.aiplatform.v1.ListFeatureGroupsRequest; /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode + * Encodes the specified ListFeatureGroupsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsRequest.verify|verify} messages. + * @param message ListFeatureGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode + * Encodes the specified ListFeatureGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsRequest.verify|verify} messages. + * @param message ListFeatureGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * Decodes a ListFeatureGroupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeatureRequest + * @returns ListFeatureGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureGroupsRequest; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureGroupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeatureRequest + * @returns ListFeatureGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureGroupsRequest; /** - * Verifies an UpdateFeatureRequest message. + * Verifies a ListFeatureGroupsRequest message. * @param message Plain 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 UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureGroupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeatureRequest + * @returns ListFeatureGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureGroupsRequest; /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. - * @param message UpdateFeatureRequest + * Creates a plain object from a ListFeatureGroupsRequest message. Also converts values to other types if specified. + * @param message ListFeatureGroupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeatureRequest to JSON. + * Converts this ListFeatureGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFeatureRequest + * Gets the default type url for ListFeatureGroupsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeatureRequest. */ - interface IDeleteFeatureRequest { + /** Properties of a ListFeatureGroupsResponse. */ + interface IListFeatureGroupsResponse { - /** DeleteFeatureRequest name */ - name?: (string|null); + /** ListFeatureGroupsResponse featureGroups */ + featureGroups?: (google.cloud.aiplatform.v1.IFeatureGroup[]|null); + + /** ListFeatureGroupsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteFeatureRequest. */ - class DeleteFeatureRequest implements IDeleteFeatureRequest { + /** Represents a ListFeatureGroupsResponse. */ + class ListFeatureGroupsResponse implements IListFeatureGroupsResponse { /** - * Constructs a new DeleteFeatureRequest. + * Constructs a new ListFeatureGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListFeatureGroupsResponse); - /** DeleteFeatureRequest name. */ - public name: string; + /** ListFeatureGroupsResponse featureGroups. */ + public featureGroups: google.cloud.aiplatform.v1.IFeatureGroup[]; + + /** ListFeatureGroupsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteFeatureRequest instance using the specified properties. + * Creates a new ListFeatureGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeatureRequest instance + * @returns ListFeatureGroupsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureRequest): google.cloud.aiplatform.v1.DeleteFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListFeatureGroupsResponse): google.cloud.aiplatform.v1.ListFeatureGroupsResponse; /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode + * Encodes the specified ListFeatureGroupsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsResponse.verify|verify} messages. + * @param message ListFeatureGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeatureGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode + * Encodes the specified ListFeatureGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsResponse.verify|verify} messages. + * @param message ListFeatureGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeatureGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * Decodes a ListFeatureGroupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeatureRequest + * @returns ListFeatureGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeatureGroupsResponse; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureGroupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeatureRequest + * @returns ListFeatureGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeatureGroupsResponse; /** - * Verifies a DeleteFeatureRequest message. + * Verifies a ListFeatureGroupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureGroupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeatureRequest + * @returns ListFeatureGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeatureGroupsResponse; /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureRequest + * Creates a plain object from a ListFeatureGroupsResponse message. Also converts values to other types if specified. + * @param message ListFeatureGroupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeatureGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeatureRequest to JSON. + * Converts this ListFeatureGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeatureRequest + * Gets the default type url for ListFeatureGroupsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeaturestoreOperationMetadata. */ - interface ICreateFeaturestoreOperationMetadata { + /** Properties of an UpdateFeatureGroupRequest. */ + interface IUpdateFeatureGroupRequest { - /** CreateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** UpdateFeatureGroupRequest featureGroup */ + featureGroup?: (google.cloud.aiplatform.v1.IFeatureGroup|null); + + /** UpdateFeatureGroupRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateFeaturestoreOperationMetadata. */ - class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + /** Represents an UpdateFeatureGroupRequest. */ + class UpdateFeatureGroupRequest implements IUpdateFeatureGroupRequest { /** - * Constructs a new CreateFeaturestoreOperationMetadata. + * Constructs a new UpdateFeatureGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest); - /** CreateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** UpdateFeatureGroupRequest featureGroup. */ + public featureGroup?: (google.cloud.aiplatform.v1.IFeatureGroup|null); + + /** UpdateFeatureGroupRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeaturestoreOperationMetadata instance + * @returns UpdateFeatureGroupRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest): google.cloud.aiplatform.v1.UpdateFeatureGroupRequest; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.verify|verify} messages. + * @param message UpdateFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.verify|verify} messages. + * @param message UpdateFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreOperationMetadata + * @returns UpdateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureGroupRequest; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreOperationMetadata + * @returns UpdateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureGroupRequest; /** - * Verifies a CreateFeaturestoreOperationMetadata message. + * Verifies an UpdateFeatureGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeaturestoreOperationMetadata + * @returns UpdateFeatureGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureGroupRequest; /** - * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeaturestoreOperationMetadata + * Creates a plain object from an UpdateFeatureGroupRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. + * Converts this UpdateFeatureGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeaturestoreOperationMetadata + * Gets the default type url for UpdateFeatureGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeaturestoreOperationMetadata. */ - interface IUpdateFeaturestoreOperationMetadata { + /** Properties of a DeleteFeatureGroupRequest. */ + interface IDeleteFeatureGroupRequest { - /** UpdateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** DeleteFeatureGroupRequest name */ + name?: (string|null); + + /** DeleteFeatureGroupRequest force */ + force?: (boolean|null); } - /** Represents an UpdateFeaturestoreOperationMetadata. */ - class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + /** Represents a DeleteFeatureGroupRequest. */ + class DeleteFeatureGroupRequest implements IDeleteFeatureGroupRequest { /** - * Constructs a new UpdateFeaturestoreOperationMetadata. + * Constructs a new DeleteFeatureGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest); - /** UpdateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** DeleteFeatureGroupRequest name. */ + public name: string; + + /** DeleteFeatureGroupRequest force. */ + public force: boolean; /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new DeleteFeatureGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreOperationMetadata instance + * @returns DeleteFeatureGroupRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest): google.cloud.aiplatform.v1.DeleteFeatureGroupRequest; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified DeleteFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureGroupRequest.verify|verify} messages. + * @param message DeleteFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified DeleteFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureGroupRequest.verify|verify} messages. + * @param message DeleteFeatureGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteFeatureGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreOperationMetadata + * @returns DeleteFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureGroupRequest; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreOperationMetadata + * @returns DeleteFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureGroupRequest; /** - * Verifies an UpdateFeaturestoreOperationMetadata message. + * Verifies a DeleteFeatureGroupRequest message. * @param message Plain 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 UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreOperationMetadata + * @returns DeleteFeatureGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureGroupRequest; /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreOperationMetadata + * Creates a plain object from a DeleteFeatureGroupRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * Converts this DeleteFeatureGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFeaturestoreOperationMetadata + * Gets the default type url for DeleteFeatureGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFeatureValuesOperationMetadata. */ - interface IImportFeatureValuesOperationMetadata { + /** Properties of a CreateFeatureGroupOperationMetadata. */ + interface ICreateFeatureGroupOperationMetadata { - /** ImportFeatureValuesOperationMetadata genericMetadata */ + /** CreateFeatureGroupOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** ImportFeatureValuesOperationMetadata importedEntityCount */ - importedEntityCount?: (number|Long|string|null); - - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); - - /** ImportFeatureValuesOperationMetadata sourceUris */ - sourceUris?: (string[]|null); - - /** ImportFeatureValuesOperationMetadata invalidRowCount */ - invalidRowCount?: (number|Long|string|null); - - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); - - /** ImportFeatureValuesOperationMetadata blockingOperationIds */ - blockingOperationIds?: ((number|Long|string)[]|null); - } - - /** Represents an ImportFeatureValuesOperationMetadata. */ - class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + /** Represents a CreateFeatureGroupOperationMetadata. */ + class CreateFeatureGroupOperationMetadata implements ICreateFeatureGroupOperationMetadata { /** - * Constructs a new ImportFeatureValuesOperationMetadata. + * Constructs a new CreateFeatureGroupOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata); - /** ImportFeatureValuesOperationMetadata genericMetadata. */ + /** CreateFeatureGroupOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** ImportFeatureValuesOperationMetadata importedEntityCount. */ - public importedEntityCount: (number|Long|string); - - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); - - /** ImportFeatureValuesOperationMetadata sourceUris. */ - public sourceUris: string[]; - - /** ImportFeatureValuesOperationMetadata invalidRowCount. */ - public invalidRowCount: (number|Long|string); - - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); - - /** ImportFeatureValuesOperationMetadata blockingOperationIds. */ - public blockingOperationIds: (number|Long|string)[]; - /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new CreateFeatureGroupOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesOperationMetadata instance + * @returns CreateFeatureGroupOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata): google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified CreateFeatureGroupOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata.verify|verify} messages. + * @param message CreateFeatureGroupOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified CreateFeatureGroupOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata.verify|verify} messages. + * @param message CreateFeatureGroupOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a CreateFeatureGroupOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesOperationMetadata + * @returns CreateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureGroupOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesOperationMetadata + * @returns CreateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata; /** - * Verifies an ImportFeatureValuesOperationMetadata message. + * Verifies a CreateFeatureGroupOperationMetadata message. * @param message Plain 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 ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureGroupOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesOperationMetadata + * @returns CreateFeatureGroupOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata; /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ImportFeatureValuesOperationMetadata + * Creates a plain object from a CreateFeatureGroupOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureGroupOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. + * Converts this CreateFeatureGroupOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesOperationMetadata + * Gets the default type url for CreateFeatureGroupOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFeatureValuesOperationMetadata. */ - interface IExportFeatureValuesOperationMetadata { + /** Properties of an UpdateFeatureGroupOperationMetadata. */ + interface IUpdateFeatureGroupOperationMetadata { - /** ExportFeatureValuesOperationMetadata genericMetadata */ + /** UpdateFeatureGroupOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents an ExportFeatureValuesOperationMetadata. */ - class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + /** Represents an UpdateFeatureGroupOperationMetadata. */ + class UpdateFeatureGroupOperationMetadata implements IUpdateFeatureGroupOperationMetadata { /** - * Constructs a new ExportFeatureValuesOperationMetadata. + * Constructs a new UpdateFeatureGroupOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata); - /** ExportFeatureValuesOperationMetadata genericMetadata. */ + /** UpdateFeatureGroupOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureGroupOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesOperationMetadata instance + * @returns UpdateFeatureGroupOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata): google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureGroupOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureGroupOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureGroupOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureGroupOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureGroupOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesOperationMetadata + * @returns UpdateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureGroupOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesOperationMetadata + * @returns UpdateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata; /** - * Verifies an ExportFeatureValuesOperationMetadata message. + * Verifies an UpdateFeatureGroupOperationMetadata message. * @param message Plain 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 ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureGroupOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesOperationMetadata + * @returns UpdateFeatureGroupOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata; /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ExportFeatureValuesOperationMetadata + * Creates a plain object from an UpdateFeatureGroupOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeatureGroupOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. + * Converts this UpdateFeatureGroupOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesOperationMetadata + * Gets the default type url for UpdateFeatureGroupOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesOperationMetadata. */ - interface IBatchReadFeatureValuesOperationMetadata { + /** Properties of a CreateRegistryFeatureOperationMetadata. */ + interface ICreateRegistryFeatureOperationMetadata { - /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + /** CreateRegistryFeatureOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a BatchReadFeatureValuesOperationMetadata. */ - class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + /** Represents a CreateRegistryFeatureOperationMetadata. */ + class CreateRegistryFeatureOperationMetadata implements ICreateRegistryFeatureOperationMetadata { /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. + * Constructs a new CreateRegistryFeatureOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata); - /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + /** CreateRegistryFeatureOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new CreateRegistryFeatureOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesOperationMetadata instance + * @returns CreateRegistryFeatureOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata): google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified CreateRegistryFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata.verify|verify} messages. + * @param message CreateRegistryFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified CreateRegistryFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata.verify|verify} messages. + * @param message CreateRegistryFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a CreateRegistryFeatureOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesOperationMetadata + * @returns CreateRegistryFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateRegistryFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesOperationMetadata + * @returns CreateRegistryFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata; /** - * Verifies a BatchReadFeatureValuesOperationMetadata message. + * Verifies a CreateRegistryFeatureOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateRegistryFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesOperationMetadata + * @returns CreateRegistryFeatureOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata; /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesOperationMetadata + * Creates a plain object from a CreateRegistryFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message CreateRegistryFeatureOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * Converts this CreateRegistryFeatureOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesOperationMetadata + * Gets the default type url for CreateRegistryFeatureOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeatureValuesOperationMetadata. */ - interface IDeleteFeatureValuesOperationMetadata { + /** Properties of an UpdateFeatureOperationMetadata. */ + interface IUpdateFeatureOperationMetadata { - /** DeleteFeatureValuesOperationMetadata genericMetadata */ + /** UpdateFeatureOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a DeleteFeatureValuesOperationMetadata. */ - class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { + /** Represents an UpdateFeatureOperationMetadata. */ + class UpdateFeatureOperationMetadata implements IUpdateFeatureOperationMetadata { /** - * Constructs a new DeleteFeatureValuesOperationMetadata. + * Constructs a new UpdateFeatureOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata); - /** DeleteFeatureValuesOperationMetadata genericMetadata. */ + /** UpdateFeatureOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeatureValuesOperationMetadata instance + * @returns UpdateFeatureOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata): google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata; /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. - * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. - * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata.verify|verify} messages. + * @param message UpdateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesOperationMetadata + * @returns UpdateFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata; /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesOperationMetadata + * @returns UpdateFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata; /** - * Verifies a DeleteFeatureValuesOperationMetadata message. + * Verifies an UpdateFeatureOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeatureValuesOperationMetadata + * @returns UpdateFeatureOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata; /** - * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesOperationMetadata + * Creates a plain object from an UpdateFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeatureOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * Converts this UpdateFeatureOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeatureValuesOperationMetadata + * Gets the default type url for UpdateFeatureOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEntityTypeOperationMetadata. */ - interface ICreateEntityTypeOperationMetadata { + /** Represents a FeaturestoreService */ + class FeaturestoreService extends $protobuf.rpc.Service { - /** CreateEntityTypeOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Constructs a new FeaturestoreService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new FeaturestoreService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; + + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeaturestore(request: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestoreCallback): void; + + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @returns Promise + */ + public createFeaturestore(request: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest): Promise; + + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Featurestore + */ + public getFeaturestore(request: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestoreCallback): void; + + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @returns Promise + */ + public getFeaturestore(request: google.cloud.aiplatform.v1.IGetFeaturestoreRequest): Promise; + + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + */ + public listFeaturestores(request: google.cloud.aiplatform.v1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestoresCallback): void; + + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @returns Promise + */ + public listFeaturestores(request: google.cloud.aiplatform.v1.IListFeaturestoresRequest): Promise; + + /** + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateFeaturestore(request: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestoreCallback): void; + + /** + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @returns Promise + */ + public updateFeaturestore(request: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest): Promise; + + /** + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeaturestore(request: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestoreCallback): void; + + /** + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @returns Promise + */ + public deleteFeaturestore(request: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest): Promise; + + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEntityType(request: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityTypeCallback): void; + + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise + */ + public createEntityType(request: google.cloud.aiplatform.v1.ICreateEntityTypeRequest): Promise; + + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public getEntityType(request: google.cloud.aiplatform.v1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetEntityTypeCallback): void; + + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise + */ + public getEntityType(request: google.cloud.aiplatform.v1.IGetEntityTypeRequest): Promise; + + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + */ + public listEntityTypes(request: google.cloud.aiplatform.v1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypesCallback): void; + + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise + */ + public listEntityTypes(request: google.cloud.aiplatform.v1.IListEntityTypesRequest): Promise; + + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public updateEntityType(request: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityTypeCallback): void; + + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest): Promise; + + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEntityType(request: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityTypeCallback): void; + + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest): Promise; + + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.CreateFeatureCallback): void; + + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + 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.FeaturestoreService.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 + * @param callback Node-style callback called with the error, if any, and Feature + */ + public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.GetFeatureCallback): void; + + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1.IGetFeatureRequest): Promise; + + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + */ + public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturesCallback): void; + + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1.IListFeaturesRequest): Promise; + + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeatureCallback): void; + + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise + */ + public updateFeature(request: google.cloud.aiplatform.v1.IUpdateFeatureRequest): Promise; + + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureCallback): void; + + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise + */ + public deleteFeature(request: google.cloud.aiplatform.v1.IDeleteFeatureRequest): Promise; + + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importFeatureValues(request: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValuesCallback): void; + + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @returns Promise + */ + public importFeatureValues(request: google.cloud.aiplatform.v1.IImportFeatureValuesRequest): Promise; + + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @returns Promise + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest): Promise; + + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValuesCallback): void; + + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @returns Promise + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1.IExportFeatureValuesRequest): Promise; + + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback): void; + + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @returns Promise + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): Promise; + + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse + */ + public searchFeatures(request: google.cloud.aiplatform.v1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1.FeaturestoreService.SearchFeaturesCallback): void; + + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @returns Promise + */ + public searchFeatures(request: google.cloud.aiplatform.v1.ISearchFeaturesRequest): Promise; } - /** Represents a CreateEntityTypeOperationMetadata. */ - class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + namespace FeaturestoreService { /** - * Constructs a new CreateEntityTypeOperationMetadata. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata); + type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** CreateEntityTypeOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeaturestore}. + * @param error Error, if any + * @param [response] Featurestore + */ + type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Featurestore) => void; /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateEntityTypeOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeaturestores}. + * @param error Error, if any + * @param [response] ListFeaturestoresResponse */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeaturestoresResponse) => void; /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static encode(message: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateEntityTypeOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.EntityType) => void; /** - * Verifies a CreateEntityTypeOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListEntityTypesResponse) => void; /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEntityTypeOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.EntityType) => void; /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEntityTypeOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this CreateEntityTypeOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeature}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for CreateEntityTypeOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeature}. + * @param error Error, if any + * @param [response] Feature + */ + type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Feature) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeatures}. + * @param error Error, if any + * @param [response] ListFeaturesResponse + */ + type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListFeaturesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeature}. + * @param error Error, if any + * @param [response] Feature + */ + type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Feature) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|importFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchReadFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|exportFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. + * @param error Error, if any + * @param [response] SearchFeaturesResponse + */ + type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchFeaturesResponse) => void; } - /** Properties of a CreateFeatureOperationMetadata. */ - interface ICreateFeatureOperationMetadata { + /** Properties of a CreateFeaturestoreRequest. */ + interface ICreateFeaturestoreRequest { - /** CreateFeatureOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** CreateFeaturestoreRequest parent */ + parent?: (string|null); + + /** CreateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId */ + featurestoreId?: (string|null); } - /** Represents a CreateFeatureOperationMetadata. */ - class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + /** Represents a CreateFeaturestoreRequest. */ + class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { /** - * Constructs a new CreateFeatureOperationMetadata. + * Constructs a new CreateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest); - /** CreateFeatureOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** CreateFeaturestoreRequest parent. */ + public parent: string; + + /** CreateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId. */ + public featurestoreId: string; /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureOperationMetadata instance + * @returns CreateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureOperationMetadata + * @returns CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureOperationMetadata + * @returns CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; /** - * Verifies a CreateFeatureOperationMetadata message. + * Verifies a CreateFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureOperationMetadata + * @returns CreateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeaturestoreRequest; /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeatureOperationMetadata + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message CreateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureOperationMetadata to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeatureOperationMetadata + * Gets the default type url for CreateFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesOperationMetadata. */ - interface IBatchCreateFeaturesOperationMetadata { + /** Properties of a GetFeaturestoreRequest. */ + interface IGetFeaturestoreRequest { - /** BatchCreateFeaturesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetFeaturestoreRequest name */ + name?: (string|null); } - /** Represents a BatchCreateFeaturesOperationMetadata. */ - class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + /** Represents a GetFeaturestoreRequest. */ + class GetFeaturestoreRequest implements IGetFeaturestoreRequest { /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new GetFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IGetFeaturestoreRequest); - /** BatchCreateFeaturesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetFeaturestoreRequest name. */ + public name: string; /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesOperationMetadata instance + * @returns GetFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1.GetFeaturestoreRequest; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesOperationMetadata + * @returns GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeaturestoreRequest; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesOperationMetadata + * @returns GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeaturestoreRequest; /** - * Verifies a BatchCreateFeaturesOperationMetadata message. + * Verifies a GetFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesOperationMetadata + * @returns GetFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeaturestoreRequest; /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesOperationMetadata + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @param message GetFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesOperationMetadata + * Gets the default type url for GetFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeatureValuesRequest. */ - interface IDeleteFeatureValuesRequest { + /** Properties of a ListFeaturestoresRequest. */ + interface IListFeaturestoresRequest { - /** DeleteFeatureValuesRequest selectEntity */ - selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** ListFeaturestoresRequest parent */ + parent?: (string|null); - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ - selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** ListFeaturestoresRequest filter */ + filter?: (string|null); - /** DeleteFeatureValuesRequest entityType */ - entityType?: (string|null); + /** ListFeaturestoresRequest pageSize */ + pageSize?: (number|null); + + /** ListFeaturestoresRequest pageToken */ + pageToken?: (string|null); + + /** ListFeaturestoresRequest orderBy */ + orderBy?: (string|null); + + /** ListFeaturestoresRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteFeatureValuesRequest. */ - class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { + /** Represents a ListFeaturestoresRequest. */ + class ListFeaturestoresRequest implements IListFeaturestoresRequest { /** - * Constructs a new DeleteFeatureValuesRequest. + * Constructs a new ListFeaturestoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListFeaturestoresRequest); - /** DeleteFeatureValuesRequest selectEntity. */ - public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** ListFeaturestoresRequest parent. */ + public parent: string; - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ - public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** ListFeaturestoresRequest filter. */ + public filter: string; - /** DeleteFeatureValuesRequest entityType. */ - public entityType: string; + /** ListFeaturestoresRequest pageSize. */ + public pageSize: number; - /** DeleteFeatureValuesRequest DeleteOption. */ - public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); + /** ListFeaturestoresRequest pageToken. */ + public pageToken: string; + + /** ListFeaturestoresRequest orderBy. */ + public orderBy: string; + + /** ListFeaturestoresRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturestoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeatureValuesRequest instance + * @returns ListFeaturestoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListFeaturestoresRequest): google.cloud.aiplatform.v1.ListFeaturestoresRequest; /** - * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. - * @param message DeleteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. - * @param message DeleteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesRequest + * @returns ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturestoresRequest; /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesRequest + * @returns ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturestoresRequest; /** - * Verifies a DeleteFeatureValuesRequest message. + * Verifies a ListFeaturestoresRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeatureValuesRequest + * @returns ListFeaturestoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturestoresRequest; /** - * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesRequest + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * @param message ListFeaturestoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeatureValuesRequest to JSON. + * Converts this ListFeaturestoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeatureValuesRequest + * Gets the default type url for ListFeaturestoresRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DeleteFeatureValuesRequest { - - /** Properties of a SelectEntity. */ - interface ISelectEntity { + /** Properties of a ListFeaturestoresResponse. */ + interface IListFeaturestoresResponse { - /** SelectEntity entityIdSelector */ - entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); - } + /** ListFeaturestoresResponse featurestores */ + featurestores?: (google.cloud.aiplatform.v1.IFeaturestore[]|null); - /** Represents a SelectEntity. */ - class SelectEntity implements ISelectEntity { + /** ListFeaturestoresResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Constructs a new SelectEntity. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity); + /** Represents a ListFeaturestoresResponse. */ + class ListFeaturestoresResponse implements IListFeaturestoresResponse { - /** SelectEntity entityIdSelector. */ - public entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); + /** + * Constructs a new ListFeaturestoresResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListFeaturestoresResponse); - /** - * Creates a new SelectEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns SelectEntity instance - */ - public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + /** ListFeaturestoresResponse featurestores. */ + public featurestores: google.cloud.aiplatform.v1.IFeaturestore[]; - /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListFeaturestoresResponse nextPageToken. */ + public nextPageToken: string; - /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ListFeaturestoresResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturestoresResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListFeaturestoresResponse): google.cloud.aiplatform.v1.ListFeaturestoresResponse; - /** - * Decodes a SelectEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + /** + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SelectEntity message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + /** + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a SelectEntity message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturestoresResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturestoresResponse; - /** - * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SelectEntity - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + /** + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturestoresResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturestoresResponse; - /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @param message SelectEntity - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a ListFeaturestoresResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this SelectEntity to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturestoresResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturestoresResponse; - /** - * Gets the default type url for SelectEntity - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * @param message ListFeaturestoresResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a SelectTimeRangeAndFeature. */ - interface ISelectTimeRangeAndFeature { + /** + * Converts this ListFeaturestoresResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SelectTimeRangeAndFeature timeRange */ - timeRange?: (google.type.IInterval|null); + /** + * Gets the default type url for ListFeaturestoresResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SelectTimeRangeAndFeature featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** Properties of an UpdateFeaturestoreRequest. */ + interface IUpdateFeaturestoreRequest { - /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ - skipOnlineStorageDelete?: (boolean|null); - } + /** UpdateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); - /** Represents a SelectTimeRangeAndFeature. */ - class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + /** UpdateFeaturestoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Constructs a new SelectTimeRangeAndFeature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + /** Represents an UpdateFeaturestoreRequest. */ + class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { - /** SelectTimeRangeAndFeature timeRange. */ - public timeRange?: (google.type.IInterval|null); + /** + * Constructs a new UpdateFeaturestoreRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest); - /** SelectTimeRangeAndFeature featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + /** UpdateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1.IFeaturestore|null); - /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ - public skipOnlineStorageDelete: boolean; + /** UpdateFeaturestoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. - * @param [properties] Properties to set - * @returns SelectTimeRangeAndFeature instance - */ - public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + /** + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeaturestoreRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; - /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + /** + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + /** + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; - /** - * Verifies a SelectTimeRangeAndFeature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an UpdateFeaturestoreRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SelectTimeRangeAndFeature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + /** + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeaturestoreRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeaturestoreRequest; - /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @param message SelectTimeRangeAndFeature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this SelectTimeRangeAndFeature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateFeaturestoreRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for SelectTimeRangeAndFeature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateFeaturestoreRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeatureValuesResponse. */ - interface IDeleteFeatureValuesResponse { + /** Properties of a DeleteFeaturestoreRequest. */ + interface IDeleteFeaturestoreRequest { - /** DeleteFeatureValuesResponse selectEntity */ - selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + /** DeleteFeaturestoreRequest name */ + name?: (string|null); - /** DeleteFeatureValuesResponse selectTimeRangeAndFeature */ - selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + /** DeleteFeaturestoreRequest force */ + force?: (boolean|null); } - /** Represents a DeleteFeatureValuesResponse. */ - class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { + /** Represents a DeleteFeaturestoreRequest. */ + class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { /** - * Constructs a new DeleteFeatureValuesResponse. + * Constructs a new DeleteFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse); - - /** DeleteFeatureValuesResponse selectEntity. */ - public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest); - /** DeleteFeatureValuesResponse selectTimeRangeAndFeature. */ - public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + /** DeleteFeaturestoreRequest name. */ + public name: string; - /** DeleteFeatureValuesResponse response. */ - public response?: ("selectEntity"|"selectTimeRangeAndFeature"); + /** DeleteFeaturestoreRequest force. */ + public force: boolean; /** - * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeatureValuesResponse instance + * @returns DeleteFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; /** - * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. - * @param message DeleteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. - * @param message DeleteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; /** - * Verifies a DeleteFeatureValuesResponse message. + * Verifies a DeleteFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeaturestoreRequest; /** - * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. - * @param message DeleteFeatureValuesResponse + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * @param message DeleteFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeatureValuesResponse to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeatureValuesResponse + * Gets the default type url for DeleteFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DeleteFeatureValuesResponse { + /** Properties of an ImportFeatureValuesRequest. */ + interface IImportFeatureValuesRequest { - /** Properties of a SelectEntity. */ - interface ISelectEntity { + /** ImportFeatureValuesRequest avroSource */ + avroSource?: (google.cloud.aiplatform.v1.IAvroSource|null); - /** SelectEntity offlineStorageDeletedEntityRowCount */ - offlineStorageDeletedEntityRowCount?: (number|Long|string|null); + /** ImportFeatureValuesRequest bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** SelectEntity onlineStorageDeletedEntityCount */ - onlineStorageDeletedEntityCount?: (number|Long|string|null); - } + /** ImportFeatureValuesRequest csvSource */ + csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); - /** Represents a SelectEntity. */ - class SelectEntity implements ISelectEntity { + /** ImportFeatureValuesRequest featureTimeField */ + featureTimeField?: (string|null); - /** - * Constructs a new SelectEntity. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity); + /** ImportFeatureValuesRequest featureTime */ + featureTime?: (google.protobuf.ITimestamp|null); - /** SelectEntity offlineStorageDeletedEntityRowCount. */ - public offlineStorageDeletedEntityRowCount: (number|Long|string); + /** ImportFeatureValuesRequest entityType */ + entityType?: (string|null); - /** SelectEntity onlineStorageDeletedEntityCount. */ - public onlineStorageDeletedEntityCount: (number|Long|string); + /** ImportFeatureValuesRequest entityIdField */ + entityIdField?: (string|null); - /** - * Creates a new SelectEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns SelectEntity instance - */ - public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + /** ImportFeatureValuesRequest featureSpecs */ + featureSpecs?: (google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec[]|null); - /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImportFeatureValuesRequest disableOnlineServing */ + disableOnlineServing?: (boolean|null); - /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImportFeatureValuesRequest workerCount */ + workerCount?: (number|null); - /** - * Decodes a SelectEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + /** ImportFeatureValuesRequest disableIngestionAnalysis */ + disableIngestionAnalysis?: (boolean|null); + } - /** - * Decodes a SelectEntity message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + /** Represents an ImportFeatureValuesRequest. */ + class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { - /** - * Verifies a SelectEntity message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new ImportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesRequest); - /** - * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SelectEntity - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + /** ImportFeatureValuesRequest avroSource. */ + public avroSource?: (google.cloud.aiplatform.v1.IAvroSource|null); - /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @param message SelectEntity - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ImportFeatureValuesRequest bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Converts this SelectEntity to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ImportFeatureValuesRequest csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); - /** - * Gets the default type url for SelectEntity - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ImportFeatureValuesRequest featureTimeField. */ + public featureTimeField?: (string|null); - /** Properties of a SelectTimeRangeAndFeature. */ - interface ISelectTimeRangeAndFeature { + /** ImportFeatureValuesRequest featureTime. */ + public featureTime?: (google.protobuf.ITimestamp|null); - /** SelectTimeRangeAndFeature impactedFeatureCount */ - impactedFeatureCount?: (number|Long|string|null); + /** ImportFeatureValuesRequest entityType. */ + public entityType: string; - /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount */ - offlineStorageModifiedEntityRowCount?: (number|Long|string|null); + /** ImportFeatureValuesRequest entityIdField. */ + public entityIdField: string; - /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount */ - onlineStorageModifiedEntityCount?: (number|Long|string|null); + /** ImportFeatureValuesRequest featureSpecs. */ + public featureSpecs: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec[]; + + /** ImportFeatureValuesRequest disableOnlineServing. */ + public disableOnlineServing: boolean; + + /** ImportFeatureValuesRequest workerCount. */ + public workerCount: number; + + /** ImportFeatureValuesRequest disableIngestionAnalysis. */ + public disableIngestionAnalysis: boolean; + + /** ImportFeatureValuesRequest source. */ + public source?: ("avroSource"|"bigquerySource"|"csvSource"); + + /** ImportFeatureValuesRequest featureTimeSource. */ + public featureTimeSource?: ("featureTimeField"|"featureTime"); + + /** + * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + + /** + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + + /** + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + + /** + * Verifies an ImportFeatureValuesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesRequest; + + /** + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ImportFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImportFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImportFeatureValuesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ImportFeatureValuesRequest { + + /** Properties of a FeatureSpec. */ + interface IFeatureSpec { + + /** FeatureSpec id */ + id?: (string|null); + + /** FeatureSpec sourceField */ + sourceField?: (string|null); } - /** Represents a SelectTimeRangeAndFeature. */ - class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + /** Represents a FeatureSpec. */ + class FeatureSpec implements IFeatureSpec { /** - * Constructs a new SelectTimeRangeAndFeature. + * Constructs a new FeatureSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature); - - /** SelectTimeRangeAndFeature impactedFeatureCount. */ - public impactedFeatureCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec); - /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. */ - public offlineStorageModifiedEntityRowCount: (number|Long|string); + /** FeatureSpec id. */ + public id: string; - /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. */ - public onlineStorageModifiedEntityCount: (number|Long|string); + /** FeatureSpec sourceField. */ + public sourceField: string; /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * Creates a new FeatureSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SelectTimeRangeAndFeature instance + * @returns FeatureSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + public static create(properties?: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * Decodes a FeatureSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SelectTimeRangeAndFeature + * @returns FeatureSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SelectTimeRangeAndFeature + * @returns FeatureSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; /** - * Verifies a SelectTimeRangeAndFeature message. + * Verifies a FeatureSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SelectTimeRangeAndFeature + * @returns FeatureSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @param message SelectTimeRangeAndFeature + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @param message FeatureSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SelectTimeRangeAndFeature to JSON. + * Converts this FeatureSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SelectTimeRangeAndFeature + * Gets the default type url for FeatureSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -27036,1089 +28037,6023 @@ export namespace google { } } - /** Properties of an EntityIdSelector. */ - interface IEntityIdSelector { + /** Properties of an ImportFeatureValuesResponse. */ + interface IImportFeatureValuesResponse { - /** EntityIdSelector csvSource */ - csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + /** ImportFeatureValuesResponse importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** EntityIdSelector entityIdField */ - entityIdField?: (string|null); + /** ImportFeatureValuesResponse importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } - /** Represents an EntityIdSelector. */ - class EntityIdSelector implements IEntityIdSelector { + /** Represents an ImportFeatureValuesResponse. */ + class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { /** - * Constructs a new EntityIdSelector. + * Constructs a new ImportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IEntityIdSelector); + constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesResponse); - /** EntityIdSelector csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + /** ImportFeatureValuesResponse importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** EntityIdSelector entityIdField. */ - public entityIdField: string; + /** ImportFeatureValuesResponse importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); - /** EntityIdSelector EntityIdsSource. */ - public EntityIdsSource?: "csvSource"; + /** ImportFeatureValuesResponse invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); /** - * Creates a new EntityIdSelector instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EntityIdSelector instance + * @returns ImportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IEntityIdSelector): google.cloud.aiplatform.v1.EntityIdSelector; + public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; /** - * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. - * @param message EntityIdSelector message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. - * @param message EntityIdSelector message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityIdSelector message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityIdSelector + * @returns ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.EntityIdSelector; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; /** - * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityIdSelector + * @returns ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.EntityIdSelector; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; /** - * Verifies an EntityIdSelector message. + * Verifies an ImportFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityIdSelector + * @returns ImportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EntityIdSelector; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesResponse; /** - * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. - * @param message EntityIdSelector + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ImportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityIdSelector to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityIdSelector + * Gets the default type url for ImportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a HyperparameterTuningJob. */ - interface IHyperparameterTuningJob { - - /** HyperparameterTuningJob name */ - name?: (string|null); - - /** HyperparameterTuningJob displayName */ - displayName?: (string|null); - - /** HyperparameterTuningJob studySpec */ - studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount */ - maxTrialCount?: (number|null); + /** Properties of a BatchReadFeatureValuesRequest. */ + interface IBatchReadFeatureValuesRequest { - /** HyperparameterTuningJob parallelTrialCount */ - parallelTrialCount?: (number|null); + /** BatchReadFeatureValuesRequest csvReadInstances */ + csvReadInstances?: (google.cloud.aiplatform.v1.ICsvSource|null); - /** HyperparameterTuningJob maxFailedTrialCount */ - maxFailedTrialCount?: (number|null); + /** BatchReadFeatureValuesRequest bigqueryReadInstances */ + bigqueryReadInstances?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** HyperparameterTuningJob trialJobSpec */ - trialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + /** BatchReadFeatureValuesRequest featurestore */ + featurestore?: (string|null); - /** HyperparameterTuningJob trials */ - trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + /** BatchReadFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - /** HyperparameterTuningJob state */ - state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + /** BatchReadFeatureValuesRequest passThroughFields */ + passThroughFields?: (google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - /** HyperparameterTuningJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** BatchReadFeatureValuesRequest entityTypeSpecs */ + entityTypeSpecs?: (google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); - /** HyperparameterTuningJob startTime */ + /** BatchReadFeatureValuesRequest startTime */ startTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error */ - error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels */ - labels?: ({ [k: string]: string }|null); - - /** HyperparameterTuningJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); } - /** Represents a HyperparameterTuningJob. */ - class HyperparameterTuningJob implements IHyperparameterTuningJob { + /** Represents a BatchReadFeatureValuesRequest. */ + class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { /** - * Constructs a new HyperparameterTuningJob. + * Constructs a new BatchReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IHyperparameterTuningJob); - - /** HyperparameterTuningJob name. */ - public name: string; - - /** HyperparameterTuningJob displayName. */ - public displayName: string; - - /** HyperparameterTuningJob studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount. */ - public maxTrialCount: number; + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest); - /** HyperparameterTuningJob parallelTrialCount. */ - public parallelTrialCount: number; + /** BatchReadFeatureValuesRequest csvReadInstances. */ + public csvReadInstances?: (google.cloud.aiplatform.v1.ICsvSource|null); - /** HyperparameterTuningJob maxFailedTrialCount. */ - public maxFailedTrialCount: number; + /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ + public bigqueryReadInstances?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** HyperparameterTuningJob trialJobSpec. */ - public trialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + /** BatchReadFeatureValuesRequest featurestore. */ + public featurestore: string; - /** HyperparameterTuningJob trials. */ - public trials: google.cloud.aiplatform.v1.ITrial[]; + /** BatchReadFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - /** HyperparameterTuningJob state. */ - public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + /** BatchReadFeatureValuesRequest passThroughFields. */ + public passThroughFields: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField[]; - /** HyperparameterTuningJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** BatchReadFeatureValuesRequest entityTypeSpecs. */ + public entityTypeSpecs: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; - /** HyperparameterTuningJob startTime. */ + /** BatchReadFeatureValuesRequest startTime. */ public startTime?: (google.protobuf.ITimestamp|null); - /** HyperparameterTuningJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error. */ - public error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels. */ - public labels: { [k: string]: string }; - - /** HyperparameterTuningJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** BatchReadFeatureValuesRequest readOption. */ + public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); /** - * Creates a new HyperparameterTuningJob instance using the specified properties. + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns HyperparameterTuningJob instance + * @returns BatchReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IHyperparameterTuningJob): google.cloud.aiplatform.v1.HyperparameterTuningJob; + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HyperparameterTuningJob + * @returns BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.HyperparameterTuningJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HyperparameterTuningJob + * @returns BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.HyperparameterTuningJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; /** - * Verifies a HyperparameterTuningJob message. + * Verifies a BatchReadFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HyperparameterTuningJob + * @returns BatchReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.HyperparameterTuningJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. - * @param message HyperparameterTuningJob + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HyperparameterTuningJob to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for HyperparameterTuningJob + * Gets the default type url for BatchReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Study. */ - interface IStudy { - - /** Study name */ - name?: (string|null); - - /** Study displayName */ - displayName?: (string|null); - - /** Study studySpec */ - studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + namespace BatchReadFeatureValuesRequest { - /** Study state */ - state?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); + /** Properties of a PassThroughField. */ + interface IPassThroughField { - /** Study createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** PassThroughField fieldName */ + fieldName?: (string|null); + } - /** Study inactiveReason */ - inactiveReason?: (string|null); - } + /** Represents a PassThroughField. */ + class PassThroughField implements IPassThroughField { - /** Represents a Study. */ - class Study implements IStudy { + /** + * Constructs a new PassThroughField. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField); - /** - * Constructs a new Study. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IStudy); + /** PassThroughField fieldName. */ + public fieldName: string; - /** Study name. */ - public name: string; + /** + * Creates a new PassThroughField instance using the specified properties. + * @param [properties] Properties to set + * @returns PassThroughField instance + */ + public static create(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; - /** Study displayName. */ - public displayName: string; + /** + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - /** Study studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + /** + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - /** Study state. */ - public state: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); + /** + * Decodes a PassThroughField message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; - /** Study createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; - /** Study inactiveReason. */ - public inactiveReason: string; + /** + * Verifies a PassThroughField message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a new Study instance using the specified properties. - * @param [properties] Properties to set - * @returns Study instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IStudy): google.cloud.aiplatform.v1.Study; + /** + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PassThroughField + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField; - /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * @param message PassThroughField + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this PassThroughField to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a Study message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Study - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Study; + /** + * Gets the default type url for PassThroughField + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a Study message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Study - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Study; + /** Properties of an EntityTypeSpec. */ + interface IEntityTypeSpec { - /** - * Verifies a Study message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** EntityTypeSpec entityTypeId */ + entityTypeId?: (string|null); - /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Study - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Study; + /** EntityTypeSpec featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - /** - * Creates a plain object from a Study message. Also converts values to other types if specified. - * @param message Study - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EntityTypeSpec settings */ + settings?: (google.cloud.aiplatform.v1.IDestinationFeatureSetting[]|null); + } - /** - * Converts this Study to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an EntityTypeSpec. */ + class EntityTypeSpec implements IEntityTypeSpec { - /** - * Gets the default type url for Study - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new EntityTypeSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - namespace Study { + /** EntityTypeSpec entityTypeId. */ + public entityTypeId: string; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - INACTIVE = 2, - COMPLETED = 3 - } - } + /** EntityTypeSpec featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - /** Properties of a Trial. */ - interface ITrial { + /** EntityTypeSpec settings. */ + public settings: google.cloud.aiplatform.v1.IDestinationFeatureSetting[]; - /** Trial name */ - name?: (string|null); + /** + * Creates a new EntityTypeSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityTypeSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** Trial id */ - id?: (string|null); + /** + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial state */ - state?: (google.cloud.aiplatform.v1.Trial.State|keyof typeof google.cloud.aiplatform.v1.Trial.State|null); + /** + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial parameters */ - parameters?: (google.cloud.aiplatform.v1.Trial.IParameter[]|null); + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** Trial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** Trial measurements */ - measurements?: (google.cloud.aiplatform.v1.IMeasurement[]|null); + /** + * Verifies an EntityTypeSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Trial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityTypeSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** Trial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @param message EntityTypeSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Trial clientId */ - clientId?: (string|null); + /** + * Converts this EntityTypeSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Trial infeasibleReason */ - infeasibleReason?: (string|null); + /** + * Gets the default type url for EntityTypeSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Trial customJob */ - customJob?: (string|null); + /** Properties of an ExportFeatureValuesRequest. */ + interface IExportFeatureValuesRequest { - /** Trial webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); - } + /** ExportFeatureValuesRequest snapshotExport */ + snapshotExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** Represents a Trial. */ - class Trial implements ITrial { + /** ExportFeatureValuesRequest fullExport */ + fullExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null); - /** - * Constructs a new Trial. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITrial); + /** ExportFeatureValuesRequest entityType */ + entityType?: (string|null); - /** Trial name. */ - public name: string; + /** ExportFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - /** Trial id. */ - public id: string; + /** ExportFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - /** Trial state. */ - public state: (google.cloud.aiplatform.v1.Trial.State|keyof typeof google.cloud.aiplatform.v1.Trial.State); + /** ExportFeatureValuesRequest settings */ + settings?: (google.cloud.aiplatform.v1.IDestinationFeatureSetting[]|null); + } - /** Trial parameters. */ - public parameters: google.cloud.aiplatform.v1.Trial.IParameter[]; + /** Represents an ExportFeatureValuesRequest. */ + class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { - /** Trial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** + * Constructs a new ExportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesRequest); - /** Trial measurements. */ - public measurements: google.cloud.aiplatform.v1.IMeasurement[]; + /** ExportFeatureValuesRequest snapshotExport. */ + public snapshotExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** Trial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ExportFeatureValuesRequest fullExport. */ + public fullExport?: (google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null); - /** Trial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ExportFeatureValuesRequest entityType. */ + public entityType: string; - /** Trial clientId. */ - public clientId: string; + /** ExportFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1.IFeatureValueDestination|null); - /** Trial infeasibleReason. */ - public infeasibleReason: string; + /** ExportFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); - /** Trial customJob. */ - public customJob: string; + /** ExportFeatureValuesRequest settings. */ + public settings: google.cloud.aiplatform.v1.IDestinationFeatureSetting[]; - /** Trial webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** ExportFeatureValuesRequest mode. */ + public mode?: ("snapshotExport"|"fullExport"); /** - * Creates a new Trial instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Trial instance + * @returns ExportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITrial): google.cloud.aiplatform.v1.Trial; + public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Trial + * @returns ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Trial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Trial + * @returns ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Trial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; /** - * Verifies a Trial message. + * Verifies an ExportFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Trial + * @returns ExportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Trial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. - * @param message Trial + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ExportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Trial to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Trial + * Gets the default type url for ExportFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Trial { + namespace ExportFeatureValuesRequest { - /** Properties of a Parameter. */ - interface IParameter { + /** Properties of a SnapshotExport. */ + interface ISnapshotExport { - /** Parameter parameterId */ - parameterId?: (string|null); + /** SnapshotExport snapshotTime */ + snapshotTime?: (google.protobuf.ITimestamp|null); - /** Parameter value */ - value?: (google.protobuf.IValue|null); + /** SnapshotExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a SnapshotExport. */ + class SnapshotExport implements ISnapshotExport { /** - * Constructs a new Parameter. + * Constructs a new SnapshotExport. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.Trial.IParameter); + constructor(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport); - /** Parameter parameterId. */ - public parameterId: string; + /** SnapshotExport snapshotTime. */ + public snapshotTime?: (google.protobuf.ITimestamp|null); - /** Parameter value. */ - public value?: (google.protobuf.IValue|null); + /** SnapshotExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Parameter instance using the specified properties. + * Creates a new SnapshotExport instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns SnapshotExport instance */ - public static create(properties?: google.cloud.aiplatform.v1.Trial.IParameter): google.cloud.aiplatform.v1.Trial.Parameter; + public static create(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a SnapshotExport message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Parameter + * @returns SnapshotExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Trial.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Parameter + * @returns SnapshotExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Trial.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; /** - * Verifies a Parameter message. + * Verifies a SnapshotExport message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns SnapshotExport */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Trial.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. + * @param message SnapshotExport * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this SnapshotExport to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Parameter + * Gets the default type url for SnapshotExport * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 + /** Properties of a FullExport. */ + interface IFullExport { + + /** FullExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** FullExport endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a FullExport. */ + class FullExport implements IFullExport { + + /** + * Constructs a new FullExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport); + + /** FullExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FullExport endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new FullExport instance using the specified properties. + * @param [properties] Properties to set + * @returns FullExport instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; + + /** + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FullExport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; + + /** + * Decodes a FullExport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; + + /** + * Verifies a FullExport message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullExport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; + + /** + * Creates a plain object from a FullExport message. Also converts values to other types if specified. + * @param message FullExport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FullExport + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } - /** Properties of a TrialContext. */ - interface ITrialContext { + /** Properties of a DestinationFeatureSetting. */ + interface IDestinationFeatureSetting { - /** TrialContext description */ - description?: (string|null); + /** DestinationFeatureSetting featureId */ + featureId?: (string|null); - /** TrialContext parameters */ - parameters?: (google.cloud.aiplatform.v1.Trial.IParameter[]|null); + /** DestinationFeatureSetting destinationField */ + destinationField?: (string|null); } - /** Represents a TrialContext. */ - class TrialContext implements ITrialContext { + /** Represents a DestinationFeatureSetting. */ + class DestinationFeatureSetting implements IDestinationFeatureSetting { /** - * Constructs a new TrialContext. + * Constructs a new DestinationFeatureSetting. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITrialContext); + constructor(properties?: google.cloud.aiplatform.v1.IDestinationFeatureSetting); - /** TrialContext description. */ - public description: string; + /** DestinationFeatureSetting featureId. */ + public featureId: string; - /** TrialContext parameters. */ - public parameters: google.cloud.aiplatform.v1.Trial.IParameter[]; + /** DestinationFeatureSetting destinationField. */ + public destinationField: string; /** - * Creates a new TrialContext instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @param [properties] Properties to set - * @returns TrialContext instance + * @returns DestinationFeatureSetting instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITrialContext): google.cloud.aiplatform.v1.TrialContext; + public static create(properties?: google.cloud.aiplatform.v1.IDestinationFeatureSetting): google.cloud.aiplatform.v1.DestinationFeatureSetting; /** - * Encodes the specified TrialContext message. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. - * @param message TrialContext message or plain object to encode + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITrialContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrialContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. - * @param message TrialContext message or plain object to encode + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrialContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrialContext message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrialContext + * @returns DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.TrialContext; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DestinationFeatureSetting; /** - * Decodes a TrialContext message from the specified reader or buffer, length delimited. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrialContext + * @returns DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.TrialContext; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DestinationFeatureSetting; /** - * Verifies a TrialContext message. + * Verifies a DestinationFeatureSetting message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrialContext message from a plain object. Also converts values to their respective internal types. + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrialContext + * @returns DestinationFeatureSetting */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrialContext; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DestinationFeatureSetting; /** - * Creates a plain object from a TrialContext message. Also converts values to other types if specified. - * @param message TrialContext + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * @param message DestinationFeatureSetting * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TrialContext, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrialContext to JSON. + * Converts this DestinationFeatureSetting to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrialContext + * Gets the default type url for DestinationFeatureSetting * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StudySpec. */ - interface IStudySpec { + /** Properties of a FeatureValueDestination. */ + interface IFeatureValueDestination { - /** StudySpec decayCurveStoppingSpec */ - decayCurveStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** FeatureValueDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** StudySpec medianAutomatedStoppingSpec */ - medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** FeatureValueDestination tfrecordDestination */ + tfrecordDestination?: (google.cloud.aiplatform.v1.ITFRecordDestination|null); - /** StudySpec convexAutomatedStoppingSpec */ - convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** FeatureValueDestination csvDestination */ + csvDestination?: (google.cloud.aiplatform.v1.ICsvDestination|null); + } - /** StudySpec metrics */ - metrics?: (google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]|null); + /** Represents a FeatureValueDestination. */ + class FeatureValueDestination implements IFeatureValueDestination { - /** StudySpec parameters */ - parameters?: (google.cloud.aiplatform.v1.StudySpec.IParameterSpec[]|null); + /** + * Constructs a new FeatureValueDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFeatureValueDestination); - /** StudySpec algorithm */ - algorithm?: (google.cloud.aiplatform.v1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1.StudySpec.Algorithm|null); + /** FeatureValueDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** StudySpec observationNoise */ - observationNoise?: (google.cloud.aiplatform.v1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1.StudySpec.ObservationNoise|null); + /** FeatureValueDestination tfrecordDestination. */ + public tfrecordDestination?: (google.cloud.aiplatform.v1.ITFRecordDestination|null); - /** StudySpec measurementSelectionType */ - measurementSelectionType?: (google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|null); - } + /** FeatureValueDestination csvDestination. */ + public csvDestination?: (google.cloud.aiplatform.v1.ICsvDestination|null); - /** Represents a StudySpec. */ - class StudySpec implements IStudySpec { + /** FeatureValueDestination destination. */ + public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); /** - * Constructs a new StudySpec. + * Creates a new FeatureValueDestination instance using the specified properties. * @param [properties] Properties to set + * @returns FeatureValueDestination instance */ - constructor(properties?: google.cloud.aiplatform.v1.IStudySpec); + public static create(properties?: google.cloud.aiplatform.v1.IFeatureValueDestination): google.cloud.aiplatform.v1.FeatureValueDestination; - /** StudySpec decayCurveStoppingSpec. */ - public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; - /** StudySpec medianAutomatedStoppingSpec. */ - public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; - /** StudySpec convexAutomatedStoppingSpec. */ - public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** + * Decodes a FeatureValueDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureValueDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.FeatureValueDestination; - /** StudySpec metrics. */ - public metrics: google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]; + /** + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureValueDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.FeatureValueDestination; - /** StudySpec parameters. */ - public parameters: google.cloud.aiplatform.v1.StudySpec.IParameterSpec[]; + /** + * Verifies a FeatureValueDestination message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** StudySpec algorithm. */ - public algorithm: (google.cloud.aiplatform.v1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1.StudySpec.Algorithm); + /** + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureValueDestination + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureValueDestination; - /** StudySpec observationNoise. */ - public observationNoise: (google.cloud.aiplatform.v1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1.StudySpec.ObservationNoise); + /** + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * @param message FeatureValueDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** StudySpec measurementSelectionType. */ - public measurementSelectionType: (google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType); + /** + * Converts this FeatureValueDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"); + /** + * Gets the default type url for FeatureValueDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExportFeatureValuesResponse. */ + interface IExportFeatureValuesResponse { + } + + /** Represents an ExportFeatureValuesResponse. */ + class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { /** - * Creates a new StudySpec instance using the specified properties. + * Constructs a new ExportFeatureValuesResponse. * @param [properties] Properties to set - * @returns StudySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStudySpec): google.cloud.aiplatform.v1.StudySpec; + constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesResponse); /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFeatureValuesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; + + /** + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StudySpec + * @returns ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StudySpec + * @returns ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; /** - * Verifies a StudySpec message. + * Verifies an ExportFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StudySpec + * @returns ExportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesResponse; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. - * @param message StudySpec + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ExportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StudySpec to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StudySpec + * Gets the default type url for ExportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace StudySpec { - - /** Properties of a MetricSpec. */ - interface IMetricSpec { + /** Properties of a BatchReadFeatureValuesResponse. */ + interface IBatchReadFeatureValuesResponse { + } - /** MetricSpec metricId */ - metricId?: (string|null); + /** Represents a BatchReadFeatureValuesResponse. */ + class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null); + /** + * Constructs a new BatchReadFeatureValuesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse); - /** MetricSpec safetyConfig */ - safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); - } + /** + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchReadFeatureValuesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { + /** + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.StudySpec.IMetricSpec); + /** + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** MetricSpec metricId. */ - public metricId: string; + /** + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType); + /** + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; - /** MetricSpec safetyConfig. */ - public safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + /** + * Verifies a BatchReadFeatureValuesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MetricSpec _safetyConfig. */ - public _safetyConfig?: "safetyConfig"; + /** + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchReadFeatureValuesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; - /** - * Creates a new MetricSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + /** + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this BatchReadFeatureValuesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for BatchReadFeatureValuesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + /** CreateEntityTypeRequest parent */ + parent?: (string|null); - /** - * Verifies a MetricSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1.IEntityType|null); - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + /** CreateEntityTypeRequest entityTypeId */ + entityTypeId?: (string|null); + } - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @param message MetricSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new CreateEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeRequest); - /** - * Gets the default type url for MetricSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CreateEntityTypeRequest parent. */ + public parent: string; - namespace MetricSpec { + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1.IEntityType|null); - /** Properties of a SafetyMetricConfig. */ - interface ISafetyMetricConfig { + /** CreateEntityTypeRequest entityTypeId. */ + public entityTypeId: string; - /** SafetyMetricConfig safetyThreshold */ - safetyThreshold?: (number|null); + /** + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1.CreateEntityTypeRequest; - /** SafetyMetricConfig desiredMinSafeTrialsFraction */ - desiredMinSafeTrialsFraction?: (number|null); - } + /** + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a SafetyMetricConfig. */ - class SafetyMetricConfig implements ISafetyMetricConfig { + /** + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + + /** + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + + /** + * Verifies a CreateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateEntityTypeRequest; + + /** + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { + + /** GetEntityTypeRequest name */ + name?: (string|null); + } + + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { + + /** + * Constructs a new GetEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetEntityTypeRequest); + + /** GetEntityTypeRequest name. */ + public name: string; + + /** + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEntityTypeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetEntityTypeRequest): google.cloud.aiplatform.v1.GetEntityTypeRequest; + + /** + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetEntityTypeRequest; + + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetEntityTypeRequest; + + /** + * Verifies a GetEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetEntityTypeRequest; + + /** + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { + + /** ListEntityTypesRequest parent */ + parent?: (string|null); + + /** ListEntityTypesRequest filter */ + filter?: (string|null); + + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); + + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + + /** ListEntityTypesRequest orderBy */ + orderBy?: (string|null); + + /** ListEntityTypesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { + + /** + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListEntityTypesRequest); + + /** ListEntityTypesRequest parent. */ + public parent: string; + + /** ListEntityTypesRequest filter. */ + public filter: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; + + /** ListEntityTypesRequest orderBy. */ + public orderBy: string; + + /** ListEntityTypesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListEntityTypesRequest): google.cloud.aiplatform.v1.ListEntityTypesRequest; + + /** + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListEntityTypesRequest; + + /** + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListEntityTypesRequest; + + /** + * Verifies a ListEntityTypesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListEntityTypesRequest; + + /** + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEntityTypesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEntityTypesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { + + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.aiplatform.v1.IEntityType[]|null); + + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { + + /** + * Constructs a new ListEntityTypesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListEntityTypesResponse); + + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.aiplatform.v1.IEntityType[]; + + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListEntityTypesResponse): google.cloud.aiplatform.v1.ListEntityTypesResponse; + + /** + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListEntityTypesResponse; + + /** + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListEntityTypesResponse; + + /** + * Verifies a ListEntityTypesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListEntityTypesResponse; + + /** + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEntityTypesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEntityTypesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { + + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + + /** + * Constructs a new UpdateEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest); + + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEntityTypeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + + /** + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + + /** + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + + /** + * Verifies an UpdateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateEntityTypeRequest; + + /** + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { + + /** DeleteEntityTypeRequest name */ + name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + + /** + * Constructs a new DeleteEntityTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest); + + /** DeleteEntityTypeRequest name. */ + public name: string; + + /** DeleteEntityTypeRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteEntityTypeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + + /** + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + + /** + * Verifies a DeleteEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteEntityTypeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteEntityTypeRequest; + + /** + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateFeatureRequest. */ + interface ICreateFeatureRequest { + + /** CreateFeatureRequest parent */ + parent?: (string|null); + + /** CreateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1.IFeature|null); + + /** CreateFeatureRequest featureId */ + featureId?: (string|null); + } + + /** Represents a CreateFeatureRequest. */ + class CreateFeatureRequest implements ICreateFeatureRequest { + + /** + * Constructs a new CreateFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureRequest); + + /** CreateFeatureRequest parent. */ + public parent: string; + + /** CreateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1.IFeature|null); + + /** CreateFeatureRequest featureId. */ + public featureId: string; + + /** + * Creates a new CreateFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureRequest): google.cloud.aiplatform.v1.CreateFeatureRequest; + + /** + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureRequest; + + /** + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureRequest; + + /** + * Verifies a CreateFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureRequest; + + /** + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * @param message CreateFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeatureRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchCreateFeaturesRequest. */ + interface IBatchCreateFeaturesRequest { + + /** BatchCreateFeaturesRequest parent */ + parent?: (string|null); + + /** BatchCreateFeaturesRequest requests */ + requests?: (google.cloud.aiplatform.v1.ICreateFeatureRequest[]|null); + } + + /** Represents a BatchCreateFeaturesRequest. */ + class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + + /** + * Constructs a new BatchCreateFeaturesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest); + + /** BatchCreateFeaturesRequest parent. */ + public parent: string; + + /** BatchCreateFeaturesRequest requests. */ + public requests: google.cloud.aiplatform.v1.ICreateFeatureRequest[]; + + /** + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateFeaturesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + + /** + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + + /** + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + + /** + * Verifies a BatchCreateFeaturesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateFeaturesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; + + /** + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchCreateFeaturesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateFeaturesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchCreateFeaturesResponse. */ + interface IBatchCreateFeaturesResponse { + + /** BatchCreateFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1.IFeature[]|null); + } + + /** Represents a BatchCreateFeaturesResponse. */ + class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { + + /** + * Constructs a new BatchCreateFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse); + + /** BatchCreateFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1.IFeature[]; + + /** + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + + /** + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + + /** + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + + /** + * Verifies a BatchCreateFeaturesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; + + /** + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchCreateFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateFeaturesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFeatureRequest. */ + interface IGetFeatureRequest { + + /** GetFeatureRequest name */ + name?: (string|null); + } + + /** Represents a GetFeatureRequest. */ + class GetFeatureRequest implements IGetFeatureRequest { + + /** + * Constructs a new GetFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetFeatureRequest); + + /** GetFeatureRequest name. */ + public name: string; + + /** + * Creates a new GetFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetFeatureRequest): google.cloud.aiplatform.v1.GetFeatureRequest; + + /** + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetFeatureRequest; + + /** + * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetFeatureRequest; + + /** + * Verifies a GetFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetFeatureRequest; + + /** + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * @param message GetFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFeatureRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeaturesRequest. */ + interface IListFeaturesRequest { + + /** ListFeaturesRequest parent */ + parent?: (string|null); + + /** ListFeaturesRequest filter */ + filter?: (string|null); + + /** ListFeaturesRequest pageSize */ + pageSize?: (number|null); + + /** ListFeaturesRequest pageToken */ + pageToken?: (string|null); + + /** ListFeaturesRequest orderBy */ + orderBy?: (string|null); + + /** ListFeaturesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListFeaturesRequest latestStatsCount */ + latestStatsCount?: (number|null); + } + + /** Represents a ListFeaturesRequest. */ + class ListFeaturesRequest implements IListFeaturesRequest { + + /** + * Constructs a new ListFeaturesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListFeaturesRequest); + + /** ListFeaturesRequest parent. */ + public parent: string; + + /** ListFeaturesRequest filter. */ + public filter: string; + + /** ListFeaturesRequest pageSize. */ + public pageSize: number; + + /** ListFeaturesRequest pageToken. */ + public pageToken: string; + + /** ListFeaturesRequest orderBy. */ + public orderBy: string; + + /** ListFeaturesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListFeaturesRequest latestStatsCount. */ + public latestStatsCount: number; + + /** + * Creates a new ListFeaturesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListFeaturesRequest): google.cloud.aiplatform.v1.ListFeaturesRequest; + + /** + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturesRequest; + + /** + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturesRequest; + + /** + * Verifies a ListFeaturesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturesRequest; + + /** + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * @param message ListFeaturesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeaturesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeaturesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeaturesResponse. */ + interface IListFeaturesResponse { + + /** ListFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1.IFeature[]|null); + + /** ListFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListFeaturesResponse. */ + class ListFeaturesResponse implements IListFeaturesResponse { + + /** + * Constructs a new ListFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListFeaturesResponse); + + /** ListFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1.IFeature[]; + + /** ListFeaturesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListFeaturesResponse): google.cloud.aiplatform.v1.ListFeaturesResponse; + + /** + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListFeaturesResponse; + + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListFeaturesResponse; + + /** + * Verifies a ListFeaturesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListFeaturesResponse; + + /** + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * @param message ListFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeaturesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SearchFeaturesRequest. */ + interface ISearchFeaturesRequest { + + /** SearchFeaturesRequest location */ + location?: (string|null); + + /** SearchFeaturesRequest query */ + query?: (string|null); + + /** SearchFeaturesRequest pageSize */ + pageSize?: (number|null); + + /** SearchFeaturesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a SearchFeaturesRequest. */ + class SearchFeaturesRequest implements ISearchFeaturesRequest { + + /** + * Constructs a new SearchFeaturesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISearchFeaturesRequest); + + /** SearchFeaturesRequest location. */ + public location: string; + + /** SearchFeaturesRequest query. */ + public query: string; + + /** SearchFeaturesRequest pageSize. */ + public pageSize: number; + + /** SearchFeaturesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new SearchFeaturesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchFeaturesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISearchFeaturesRequest): google.cloud.aiplatform.v1.SearchFeaturesRequest; + + /** + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchFeaturesRequest; + + /** + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchFeaturesRequest; + + /** + * Verifies a SearchFeaturesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchFeaturesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchFeaturesRequest; + + /** + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @param message SearchFeaturesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchFeaturesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchFeaturesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SearchFeaturesResponse. */ + interface ISearchFeaturesResponse { + + /** SearchFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1.IFeature[]|null); + + /** SearchFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchFeaturesResponse. */ + class SearchFeaturesResponse implements ISearchFeaturesResponse { + + /** + * Constructs a new SearchFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISearchFeaturesResponse); + + /** SearchFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1.IFeature[]; + + /** SearchFeaturesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISearchFeaturesResponse): google.cloud.aiplatform.v1.SearchFeaturesResponse; + + /** + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchFeaturesResponse; + + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchFeaturesResponse; + + /** + * Verifies a SearchFeaturesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchFeaturesResponse; + + /** + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * @param message SearchFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchFeaturesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateFeatureRequest. */ + interface IUpdateFeatureRequest { + + /** UpdateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1.IFeature|null); + + /** UpdateFeatureRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateFeatureRequest. */ + class UpdateFeatureRequest implements IUpdateFeatureRequest { + + /** + * Constructs a new UpdateFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeatureRequest); + + /** UpdateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1.IFeature|null); + + /** UpdateFeatureRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeatureRequest): google.cloud.aiplatform.v1.UpdateFeatureRequest; + + /** + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeatureRequest; + + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeatureRequest; + + /** + * Verifies an UpdateFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeatureRequest; + + /** + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateFeatureRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteFeatureRequest. */ + interface IDeleteFeatureRequest { + + /** DeleteFeatureRequest name */ + name?: (string|null); + } + + /** Represents a DeleteFeatureRequest. */ + class DeleteFeatureRequest implements IDeleteFeatureRequest { + + /** + * Constructs a new DeleteFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureRequest); + + /** DeleteFeatureRequest name. */ + public name: string; + + /** + * Creates a new DeleteFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureRequest): google.cloud.aiplatform.v1.DeleteFeatureRequest; + + /** + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureRequest; + + /** + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureRequest; + + /** + * Verifies a DeleteFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureRequest; + + /** + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateFeaturestoreOperationMetadata. */ + interface ICreateFeaturestoreOperationMetadata { + + /** CreateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a CreateFeaturestoreOperationMetadata. */ + class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + + /** + * Constructs a new CreateFeaturestoreOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata); + + /** CreateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeaturestoreOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + + /** + * Verifies a CreateFeaturestoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeaturestoreOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata; + + /** + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeaturestoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeaturestoreOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeaturestoreOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateFeaturestoreOperationMetadata. */ + interface IUpdateFeaturestoreOperationMetadata { + + /** UpdateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateFeaturestoreOperationMetadata. */ + class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + + /** + * Constructs a new UpdateFeaturestoreOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata); + + /** UpdateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeaturestoreOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + + /** + * Verifies an UpdateFeaturestoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeaturestoreOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata; + + /** + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateFeaturestoreOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ImportFeatureValuesOperationMetadata. */ + interface IImportFeatureValuesOperationMetadata { + + /** ImportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** ImportFeatureValuesOperationMetadata importedEntityCount */ + importedEntityCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata sourceUris */ + sourceUris?: (string[]|null); + + /** ImportFeatureValuesOperationMetadata invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata blockingOperationIds */ + blockingOperationIds?: ((number|Long|string)[]|null); + } + + /** Represents an ImportFeatureValuesOperationMetadata. */ + class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + + /** + * Constructs a new ImportFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata); + + /** ImportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** ImportFeatureValuesOperationMetadata importedEntityCount. */ + public importedEntityCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata sourceUris. */ + public sourceUris: string[]; + + /** ImportFeatureValuesOperationMetadata invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata blockingOperationIds. */ + public blockingOperationIds: (number|Long|string)[]; + + /** + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + + /** + * Verifies an ImportFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; + + /** + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ImportFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImportFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImportFeatureValuesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExportFeatureValuesOperationMetadata. */ + interface IExportFeatureValuesOperationMetadata { + + /** ExportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an ExportFeatureValuesOperationMetadata. */ + class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + + /** + * Constructs a new ExportFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata); + + /** ExportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + + /** + * Verifies an ExportFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; + + /** + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ExportFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportFeatureValuesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchReadFeatureValuesOperationMetadata. */ + interface IBatchReadFeatureValuesOperationMetadata { + + /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a BatchReadFeatureValuesOperationMetadata. */ + class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + + /** + * Constructs a new BatchReadFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata); + + /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchReadFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + + /** + * Verifies a BatchReadFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchReadFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; + + /** + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchReadFeatureValuesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteFeatureValuesOperationMetadata. */ + interface IDeleteFeatureValuesOperationMetadata { + + /** DeleteFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a DeleteFeatureValuesOperationMetadata. */ + class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { + + /** + * Constructs a new DeleteFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata); + + /** DeleteFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @param message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Verifies a DeleteFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata; + + /** + * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateEntityTypeOperationMetadata. */ + interface ICreateEntityTypeOperationMetadata { + + /** CreateEntityTypeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a CreateEntityTypeOperationMetadata. */ + class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + + /** + * Constructs a new CreateEntityTypeOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata); + + /** CreateEntityTypeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + + /** + * Verifies a CreateEntityTypeOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata; + + /** + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEntityTypeOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateEntityTypeOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateEntityTypeOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateFeatureOperationMetadata. */ + interface ICreateFeatureOperationMetadata { + + /** CreateFeatureOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a CreateFeatureOperationMetadata. */ + class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + + /** + * Constructs a new CreateFeatureOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata); + + /** CreateFeatureOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + + /** + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + + /** + * Verifies a CreateFeatureOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; + + /** + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeatureOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeatureOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchCreateFeaturesOperationMetadata. */ + interface IBatchCreateFeaturesOperationMetadata { + + /** BatchCreateFeaturesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a BatchCreateFeaturesOperationMetadata. */ + class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + + /** + * Constructs a new BatchCreateFeaturesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata); + + /** BatchCreateFeaturesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateFeaturesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + + /** + * Verifies a BatchCreateFeaturesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateFeaturesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; + + /** + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateFeaturesOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteFeatureValuesRequest. */ + interface IDeleteFeatureValuesRequest { + + /** DeleteFeatureValuesRequest selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType */ + entityType?: (string|null); + } + + /** Represents a DeleteFeatureValuesRequest. */ + class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { + + /** + * Constructs a new DeleteFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest); + + /** DeleteFeatureValuesRequest selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null); + + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType. */ + public entityType: string; + + /** DeleteFeatureValuesRequest DeleteOption. */ + public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); + + /** + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @param message DeleteFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Verifies a DeleteFeatureValuesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest; + + /** + * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DeleteFeatureValuesRequest { + + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity entityIdSelector */ + entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity); + + /** SelectEntity entityIdSelector. */ + public entityIdSelector?: (google.cloud.aiplatform.v1.IEntityIdSelector|null); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Verifies a SelectEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature timeRange */ + timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ + skipOnlineStorageDelete?: (boolean|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature timeRange. */ + public timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1.IFeatureSelector|null); + + /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ + public skipOnlineStorageDelete: boolean; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a DeleteFeatureValuesResponse. */ + interface IDeleteFeatureValuesResponse { + + /** DeleteFeatureValuesResponse selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + } + + /** Represents a DeleteFeatureValuesResponse. */ + class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { + + /** + * Constructs a new DeleteFeatureValuesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse); + + /** DeleteFeatureValuesResponse selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null); + + /** DeleteFeatureValuesResponse selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesResponse response. */ + public response?: ("selectEntity"|"selectTimeRangeAndFeature"); + + /** + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureValuesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @param message DeleteFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Verifies a DeleteFeatureValuesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureValuesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse; + + /** + * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message DeleteFeatureValuesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureValuesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureValuesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DeleteFeatureValuesResponse { + + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity offlineStorageDeletedEntityRowCount */ + offlineStorageDeletedEntityRowCount?: (number|Long|string|null); + + /** SelectEntity onlineStorageDeletedEntityCount */ + onlineStorageDeletedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity); + + /** SelectEntity offlineStorageDeletedEntityRowCount. */ + public offlineStorageDeletedEntityRowCount: (number|Long|string); + + /** SelectEntity onlineStorageDeletedEntityCount. */ + public onlineStorageDeletedEntityCount: (number|Long|string); + + /** + * Creates a new SelectEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectEntity instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @param message SelectEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Verifies a SelectEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectEntity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @param message SelectEntity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectEntity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectEntity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SelectTimeRangeAndFeature. */ + interface ISelectTimeRangeAndFeature { + + /** SelectTimeRangeAndFeature impactedFeatureCount */ + impactedFeatureCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount */ + offlineStorageModifiedEntityRowCount?: (number|Long|string|null); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount */ + onlineStorageModifiedEntityCount?: (number|Long|string|null); + } + + /** Represents a SelectTimeRangeAndFeature. */ + class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature impactedFeatureCount. */ + public impactedFeatureCount: (number|Long|string); + + /** SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. */ + public offlineStorageModifiedEntityRowCount: (number|Long|string); + + /** SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. */ + public onlineStorageModifiedEntityCount: (number|Long|string); + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns SelectTimeRangeAndFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @param message SelectTimeRangeAndFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SelectTimeRangeAndFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @param message SelectTimeRangeAndFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EntityIdSelector. */ + interface IEntityIdSelector { + + /** EntityIdSelector csvSource */ + csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + + /** EntityIdSelector entityIdField */ + entityIdField?: (string|null); + } + + /** Represents an EntityIdSelector. */ + class EntityIdSelector implements IEntityIdSelector { + + /** + * Constructs a new EntityIdSelector. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEntityIdSelector); + + /** EntityIdSelector csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1.ICsvSource|null); + + /** EntityIdSelector entityIdField. */ + public entityIdField: string; + + /** EntityIdSelector EntityIdsSource. */ + public EntityIdsSource?: "csvSource"; + + /** + * Creates a new EntityIdSelector instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityIdSelector instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEntityIdSelector): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @param message EntityIdSelector message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Verifies an EntityIdSelector message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityIdSelector + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EntityIdSelector; + + /** + * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * @param message EntityIdSelector + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityIdSelector to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityIdSelector + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Featurestore. */ + interface IFeaturestore { + + /** Featurestore name */ + name?: (string|null); + + /** Featurestore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag */ + etag?: (string|null); + + /** Featurestore labels */ + labels?: ({ [k: string]: string }|null); + + /** Featurestore onlineServingConfig */ + onlineServingConfig?: (google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state */ + state?: (google.cloud.aiplatform.v1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1.Featurestore.State|null); + + /** Featurestore onlineStorageTtlDays */ + onlineStorageTtlDays?: (number|null); + + /** Featurestore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + } + + /** Represents a Featurestore. */ + class Featurestore implements IFeaturestore { + + /** + * Constructs a new Featurestore. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFeaturestore); + + /** Featurestore name. */ + public name: string; + + /** Featurestore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag. */ + public etag: string; + + /** Featurestore labels. */ + public labels: { [k: string]: string }; + + /** Featurestore onlineServingConfig. */ + public onlineServingConfig?: (google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state. */ + public state: (google.cloud.aiplatform.v1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1.Featurestore.State); + + /** Featurestore onlineStorageTtlDays. */ + public onlineStorageTtlDays: number; + + /** Featurestore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** + * Creates a new Featurestore instance using the specified properties. + * @param [properties] Properties to set + * @returns Featurestore instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFeaturestore): google.cloud.aiplatform.v1.Featurestore; + + /** + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Featurestore message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Featurestore + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore; + + /** + * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Featurestore + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore; + + /** + * Verifies a Featurestore message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Featurestore + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore; + + /** + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * @param message Featurestore + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Featurestore to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Featurestore + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Featurestore { + + /** Properties of an OnlineServingConfig. */ + interface IOnlineServingConfig { + + /** OnlineServingConfig fixedNodeCount */ + fixedNodeCount?: (number|null); + + /** OnlineServingConfig scaling */ + scaling?: (google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null); + } + + /** Represents an OnlineServingConfig. */ + class OnlineServingConfig implements IOnlineServingConfig { + + /** + * Constructs a new OnlineServingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig); + + /** OnlineServingConfig fixedNodeCount. */ + public fixedNodeCount: number; + + /** OnlineServingConfig scaling. */ + public scaling?: (google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null); + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OnlineServingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + + /** + * Verifies an OnlineServingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OnlineServingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @param message OnlineServingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OnlineServingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OnlineServingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace OnlineServingConfig { + + /** Properties of a Scaling. */ + interface IScaling { + + /** Scaling minNodeCount */ + minNodeCount?: (number|null); + + /** Scaling maxNodeCount */ + maxNodeCount?: (number|null); + + /** Scaling cpuUtilizationTarget */ + cpuUtilizationTarget?: (number|null); + } + + /** Represents a Scaling. */ + class Scaling implements IScaling { + + /** + * Constructs a new Scaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling); + + /** Scaling minNodeCount. */ + public minNodeCount: number; + + /** Scaling maxNodeCount. */ + public maxNodeCount: number; + + /** Scaling cpuUtilizationTarget. */ + public cpuUtilizationTarget: number; + + /** + * Creates a new Scaling instance using the specified properties. + * @param [properties] Properties to set + * @returns Scaling instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scaling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Verifies a Scaling message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scaling + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @param message Scaling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Scaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Scaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STABLE = 1, + UPDATING = 2 + } + } + + /** Properties of a HyperparameterTuningJob. */ + interface IHyperparameterTuningJob { + + /** HyperparameterTuningJob name */ + name?: (string|null); + + /** HyperparameterTuningJob displayName */ + displayName?: (string|null); + + /** HyperparameterTuningJob studySpec */ + studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + + /** HyperparameterTuningJob maxTrialCount */ + maxTrialCount?: (number|null); + + /** HyperparameterTuningJob parallelTrialCount */ + parallelTrialCount?: (number|null); + + /** HyperparameterTuningJob maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + + /** HyperparameterTuningJob trialJobSpec */ + trialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + + /** HyperparameterTuningJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + + /** HyperparameterTuningJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob error */ + error?: (google.rpc.IStatus|null); + + /** HyperparameterTuningJob labels */ + labels?: ({ [k: string]: string }|null); + + /** HyperparameterTuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + } + + /** Represents a HyperparameterTuningJob. */ + class HyperparameterTuningJob implements IHyperparameterTuningJob { + + /** + * Constructs a new HyperparameterTuningJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IHyperparameterTuningJob); + + /** HyperparameterTuningJob name. */ + public name: string; + + /** HyperparameterTuningJob displayName. */ + public displayName: string; + + /** HyperparameterTuningJob studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + + /** HyperparameterTuningJob maxTrialCount. */ + public maxTrialCount: number; + + /** HyperparameterTuningJob parallelTrialCount. */ + public parallelTrialCount: number; + + /** HyperparameterTuningJob maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** HyperparameterTuningJob trialJobSpec. */ + public trialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; + + /** HyperparameterTuningJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + + /** HyperparameterTuningJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob error. */ + public error?: (google.rpc.IStatus|null); + + /** HyperparameterTuningJob labels. */ + public labels: { [k: string]: string }; + + /** HyperparameterTuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** + * Creates a new HyperparameterTuningJob instance using the specified properties. + * @param [properties] Properties to set + * @returns HyperparameterTuningJob instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IHyperparameterTuningJob): google.cloud.aiplatform.v1.HyperparameterTuningJob; + + /** + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.HyperparameterTuningJob; + + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.HyperparameterTuningJob; + + /** + * Verifies a HyperparameterTuningJob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HyperparameterTuningJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.HyperparameterTuningJob; + + /** + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @param message HyperparameterTuningJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HyperparameterTuningJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HyperparameterTuningJob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Study. */ + interface IStudy { + + /** Study name */ + name?: (string|null); + + /** Study displayName */ + displayName?: (string|null); + + /** Study studySpec */ + studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + + /** Study state */ + state?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); + + /** Study createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason */ + inactiveReason?: (string|null); + } + + /** Represents a Study. */ + class Study implements IStudy { + + /** + * Constructs a new Study. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStudy); + + /** Study name. */ + public name: string; + + /** Study displayName. */ + public displayName: string; + + /** Study studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1.IStudySpec|null); + + /** Study state. */ + public state: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); + + /** Study createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason. */ + public inactiveReason: string; + + /** + * Creates a new Study instance using the specified properties. + * @param [properties] Properties to set + * @returns Study instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStudy): google.cloud.aiplatform.v1.Study; + + /** + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * @param message Study message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * @param message Study message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Study message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Study; + + /** + * Decodes a Study message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Study; + + /** + * Verifies a Study message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Study message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Study + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Study; + + /** + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @param message Study + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Study to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Study + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Study { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2, + COMPLETED = 3 + } + } + + /** Properties of a Trial. */ + interface ITrial { + + /** Trial name */ + name?: (string|null); + + /** Trial id */ + id?: (string|null); + + /** Trial state */ + state?: (google.cloud.aiplatform.v1.Trial.State|keyof typeof google.cloud.aiplatform.v1.Trial.State|null); + + /** Trial parameters */ + parameters?: (google.cloud.aiplatform.v1.Trial.IParameter[]|null); + + /** Trial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1.IMeasurement[]|null); + + /** Trial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId */ + clientId?: (string|null); + + /** Trial infeasibleReason */ + infeasibleReason?: (string|null); + + /** Trial customJob */ + customJob?: (string|null); + + /** Trial webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); + } + + /** Represents a Trial. */ + class Trial implements ITrial { + + /** + * Constructs a new Trial. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITrial); + + /** Trial name. */ + public name: string; + + /** Trial id. */ + public id: string; + + /** Trial state. */ + public state: (google.cloud.aiplatform.v1.Trial.State|keyof typeof google.cloud.aiplatform.v1.Trial.State); + + /** Trial parameters. */ + public parameters: google.cloud.aiplatform.v1.Trial.IParameter[]; + + /** Trial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1.IMeasurement[]; + + /** Trial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId. */ + public clientId: string; + + /** Trial infeasibleReason. */ + public infeasibleReason: string; + + /** Trial customJob. */ + public customJob: string; + + /** Trial webAccessUris. */ + public webAccessUris: { [k: string]: string }; + + /** + * Creates a new Trial instance using the specified properties. + * @param [properties] Properties to set + * @returns Trial instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITrial): google.cloud.aiplatform.v1.Trial; + + /** + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Trial message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Trial; + + /** + * Decodes a Trial message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Trial; + + /** + * Verifies a Trial message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Trial + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Trial; + + /** + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @param message Trial + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Trial to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Trial + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Trial { + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter parameterId */ + parameterId?: (string|null); + + /** Parameter value */ + value?: (google.protobuf.IValue|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Trial.IParameter); + + /** Parameter parameterId. */ + public parameterId: string; + + /** Parameter value. */ + public value?: (google.protobuf.IValue|null); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Trial.IParameter): google.cloud.aiplatform.v1.Trial.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Trial.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Trial.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Trial.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } + + /** Properties of a TrialContext. */ + interface ITrialContext { + + /** TrialContext description */ + description?: (string|null); + + /** TrialContext parameters */ + parameters?: (google.cloud.aiplatform.v1.Trial.IParameter[]|null); + } + + /** Represents a TrialContext. */ + class TrialContext implements ITrialContext { + + /** + * Constructs a new TrialContext. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITrialContext); + + /** TrialContext description. */ + public description: string; + + /** TrialContext parameters. */ + public parameters: google.cloud.aiplatform.v1.Trial.IParameter[]; + + /** + * Creates a new TrialContext instance using the specified properties. + * @param [properties] Properties to set + * @returns TrialContext instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITrialContext): google.cloud.aiplatform.v1.TrialContext; + + /** + * Encodes the specified TrialContext message. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. + * @param message TrialContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITrialContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrialContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. + * @param message TrialContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrialContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrialContext message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrialContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.TrialContext; + + /** + * Decodes a TrialContext message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrialContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.TrialContext; + + /** + * Verifies a TrialContext message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrialContext message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrialContext + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrialContext; + + /** + * Creates a plain object from a TrialContext message. Also converts values to other types if specified. + * @param message TrialContext + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TrialContext, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrialContext to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrialContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StudyTimeConstraint. */ + interface IStudyTimeConstraint { + + /** StudyTimeConstraint maxDuration */ + maxDuration?: (google.protobuf.IDuration|null); + + /** StudyTimeConstraint endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a StudyTimeConstraint. */ + class StudyTimeConstraint implements IStudyTimeConstraint { + + /** + * Constructs a new StudyTimeConstraint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStudyTimeConstraint); + + /** StudyTimeConstraint maxDuration. */ + public maxDuration?: (google.protobuf.IDuration|null); + + /** StudyTimeConstraint endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** StudyTimeConstraint constraint. */ + public constraint?: ("maxDuration"|"endTime"); + + /** + * Creates a new StudyTimeConstraint instance using the specified properties. + * @param [properties] Properties to set + * @returns StudyTimeConstraint instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStudyTimeConstraint): google.cloud.aiplatform.v1.StudyTimeConstraint; + + /** + * Encodes the specified StudyTimeConstraint message. Does not implicitly {@link google.cloud.aiplatform.v1.StudyTimeConstraint.verify|verify} messages. + * @param message StudyTimeConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStudyTimeConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StudyTimeConstraint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudyTimeConstraint.verify|verify} messages. + * @param message StudyTimeConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStudyTimeConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudyTimeConstraint; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudyTimeConstraint; + + /** + * Verifies a StudyTimeConstraint message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StudyTimeConstraint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StudyTimeConstraint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudyTimeConstraint; + + /** + * Creates a plain object from a StudyTimeConstraint message. Also converts values to other types if specified. + * @param message StudyTimeConstraint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudyTimeConstraint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StudyTimeConstraint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StudyTimeConstraint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StudySpec. */ + interface IStudySpec { + + /** StudySpec decayCurveStoppingSpec */ + decayCurveStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec */ + medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics */ + metrics?: (google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]|null); + + /** StudySpec parameters */ + parameters?: (google.cloud.aiplatform.v1.StudySpec.IParameterSpec[]|null); + + /** StudySpec algorithm */ + algorithm?: (google.cloud.aiplatform.v1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1.StudySpec.Algorithm|null); + + /** StudySpec observationNoise */ + observationNoise?: (google.cloud.aiplatform.v1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1.StudySpec.ObservationNoise|null); + + /** StudySpec measurementSelectionType */ + measurementSelectionType?: (google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|null); + + /** StudySpec studyStoppingConfig */ + studyStoppingConfig?: (google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig|null); + } + + /** Represents a StudySpec. */ + class StudySpec implements IStudySpec { + + /** + * Constructs a new StudySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStudySpec); + + /** StudySpec decayCurveStoppingSpec. */ + public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec. */ + public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics. */ + public metrics: google.cloud.aiplatform.v1.StudySpec.IMetricSpec[]; + + /** StudySpec parameters. */ + public parameters: google.cloud.aiplatform.v1.StudySpec.IParameterSpec[]; + + /** StudySpec algorithm. */ + public algorithm: (google.cloud.aiplatform.v1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1.StudySpec.Algorithm); + + /** StudySpec observationNoise. */ + public observationNoise: (google.cloud.aiplatform.v1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1.StudySpec.ObservationNoise); + + /** StudySpec measurementSelectionType. */ + public measurementSelectionType: (google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType); + + /** StudySpec studyStoppingConfig. */ + public studyStoppingConfig?: (google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig|null); + + /** StudySpec automatedStoppingSpec. */ + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"); + + /** StudySpec _studyStoppingConfig. */ + public _studyStoppingConfig?: "studyStoppingConfig"; + + /** + * Creates a new StudySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns StudySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStudySpec): google.cloud.aiplatform.v1.StudySpec; + + /** + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StudySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudySpec; + + /** + * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudySpec; + + /** + * Verifies a StudySpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StudySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec; + + /** + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @param message StudySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StudySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StudySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StudySpec { + + /** Properties of a MetricSpec. */ + interface IMetricSpec { + + /** MetricSpec metricId */ + metricId?: (string|null); + + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null); + + /** MetricSpec safetyConfig */ + safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + } + + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { + + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.StudySpec.IMetricSpec); + + /** MetricSpec metricId. */ + public metricId: string; + + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType); + + /** MetricSpec safetyConfig. */ + public safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + + /** MetricSpec _safetyConfig. */ + public _safetyConfig?: "safetyConfig"; + + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + + /** + * Verifies a MetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec.MetricSpec; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricSpec { + + /** Properties of a SafetyMetricConfig. */ + interface ISafetyMetricConfig { + + /** SafetyMetricConfig safetyThreshold */ + safetyThreshold?: (number|null); + + /** SafetyMetricConfig desiredMinSafeTrialsFraction */ + desiredMinSafeTrialsFraction?: (number|null); + } + + /** Represents a SafetyMetricConfig. */ + class SafetyMetricConfig implements ISafetyMetricConfig { /** * Constructs a new SafetyMetricConfig. @@ -29540,6 +35475,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a StudyStoppingConfig. */ + interface IStudyStoppingConfig { + + /** StudyStoppingConfig shouldStopAsap */ + shouldStopAsap?: (google.protobuf.IBoolValue|null); + + /** StudyStoppingConfig minimumRuntimeConstraint */ + minimumRuntimeConstraint?: (google.cloud.aiplatform.v1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig maximumRuntimeConstraint */ + maximumRuntimeConstraint?: (google.cloud.aiplatform.v1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig minNumTrials */ + minNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrials */ + maxNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrialsNoProgress */ + maxNumTrialsNoProgress?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxDurationNoProgress */ + maxDurationNoProgress?: (google.protobuf.IDuration|null); + } + + /** Represents a StudyStoppingConfig. */ + class StudyStoppingConfig implements IStudyStoppingConfig { + + /** + * Constructs a new StudyStoppingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig); + + /** StudyStoppingConfig shouldStopAsap. */ + public shouldStopAsap?: (google.protobuf.IBoolValue|null); + + /** StudyStoppingConfig minimumRuntimeConstraint. */ + public minimumRuntimeConstraint?: (google.cloud.aiplatform.v1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig maximumRuntimeConstraint. */ + public maximumRuntimeConstraint?: (google.cloud.aiplatform.v1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig minNumTrials. */ + public minNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrials. */ + public maxNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrialsNoProgress. */ + public maxNumTrialsNoProgress?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxDurationNoProgress. */ + public maxDurationNoProgress?: (google.protobuf.IDuration|null); + + /** + * Creates a new StudyStoppingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StudyStoppingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig): google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig; + + /** + * Encodes the specified StudyStoppingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @param message StudyStoppingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StudyStoppingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @param message StudyStoppingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig; + + /** + * Verifies a StudyStoppingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StudyStoppingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StudyStoppingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig; + + /** + * Creates a plain object from a StudyStoppingConfig message. Also converts values to other types if specified. + * @param message StudyStoppingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StudyStoppingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StudyStoppingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Algorithm enum. */ enum Algorithm { ALGORITHM_UNSPECIFIED = 0, @@ -29968,6 +36036,9 @@ export namespace google { /** IndexDatapoint restricts */ restricts?: (google.cloud.aiplatform.v1.IndexDatapoint.IRestriction[]|null); + /** IndexDatapoint numericRestricts */ + numericRestricts?: (google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction[]|null); + /** IndexDatapoint crowdingTag */ crowdingTag?: (google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null); } @@ -29990,6 +36061,9 @@ export namespace google { /** IndexDatapoint restricts. */ public restricts: google.cloud.aiplatform.v1.IndexDatapoint.IRestriction[]; + /** IndexDatapoint numericRestricts. */ + public numericRestricts: google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction[]; + /** IndexDatapoint crowdingTag. */ public crowdingTag?: (google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null); @@ -30182,6 +36256,143 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NumericRestriction. */ + interface INumericRestriction { + + /** NumericRestriction valueInt */ + valueInt?: (number|Long|string|null); + + /** NumericRestriction valueFloat */ + valueFloat?: (number|null); + + /** NumericRestriction valueDouble */ + valueDouble?: (number|null); + + /** NumericRestriction namespace */ + namespace?: (string|null); + + /** NumericRestriction op */ + op?: (google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator|keyof typeof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator|null); + } + + /** Represents a NumericRestriction. */ + class NumericRestriction implements INumericRestriction { + + /** + * Constructs a new NumericRestriction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction); + + /** NumericRestriction valueInt. */ + public valueInt?: (number|Long|string|null); + + /** NumericRestriction valueFloat. */ + public valueFloat?: (number|null); + + /** NumericRestriction valueDouble. */ + public valueDouble?: (number|null); + + /** NumericRestriction namespace. */ + public namespace: string; + + /** NumericRestriction op. */ + public op: (google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator|keyof typeof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator); + + /** NumericRestriction Value. */ + public Value?: ("valueInt"|"valueFloat"|"valueDouble"); + + /** + * Creates a new NumericRestriction instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericRestriction instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction): google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction; + + /** + * Encodes the specified NumericRestriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @param message NumericRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericRestriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @param message NumericRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction; + + /** + * Verifies a NumericRestriction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NumericRestriction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericRestriction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction; + + /** + * Creates a plain object from a NumericRestriction message. Also converts values to other types if specified. + * @param message NumericRestriction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericRestriction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericRestriction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NumericRestriction { + + /** Operator enum. */ + enum Operator { + OPERATOR_UNSPECIFIED = 0, + LESS = 1, + LESS_EQUAL = 2, + EQUAL = 3, + GREATER_EQUAL = 4, + GREATER = 5 + } + } + /** Properties of a CrowdingTag. */ interface ICrowdingTag { @@ -39511,4032 +45722,5496 @@ export namespace google { */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { + + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + + /** + * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); + + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelDeploymentMonitoringJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + + /** + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelDeploymentMonitoringJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + + /** + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelDeploymentMonitoringJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + + /** + * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelDeploymentMonitoringJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + + /** + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { + + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); + + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + + /** + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { + + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } + + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); + + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; + + /** + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + + /** + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + + /** + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + + /** + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { + + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } + + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); + + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; + + /** + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PauseModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PauseModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PauseModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + + /** + * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PauseModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + + /** + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { + + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } + + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); + + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; + + /** + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResumeModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + + /** + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResumeModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + + /** + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + + /** + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + + /** + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } + + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { + + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); + + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); + + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); + + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); + + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); + + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); + + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); + + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); + + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); + + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); + + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); + } + + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); + + /** ModelDeploymentMonitoringJob name. */ + public name: string; + + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; + + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; + + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); + + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; + + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; + + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; + + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); + + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringJob instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + + /** + * Verifies a ModelDeploymentMonitoringJob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringJob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelDeploymentMonitoringJob { + + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { + + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LatestMonitoringPipelineMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LatestMonitoringPipelineMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LatestMonitoringPipelineMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Verifies a LatestMonitoringPipelineMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LatestMonitoringPipelineMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LatestMonitoringPipelineMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LatestMonitoringPipelineMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 + } } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ModelDeploymentMonitoringBigQueryTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ModelDeploymentMonitoringBigQueryTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ModelDeploymentMonitoringBigQueryTable message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + namespace ModelDeploymentMonitoringBigQueryTable { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + } + + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** DeleteModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); - /** DeleteModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns ModelDeploymentMonitoringScheduleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a ModelDeploymentMonitoringScheduleConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns ModelDeploymentMonitoringScheduleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); + + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); + + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); + + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new ModelMonitoringStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); + + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; + + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; + + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns ModelMonitoringStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a ModelMonitoringStatsAnomalies message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns ModelMonitoringStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for ModelMonitoringStatsAnomalies * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + namespace ModelMonitoringStatsAnomalies { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); + } - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureHistoricStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Verifies a FeatureHistoricStatsAnomalies message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureHistoricStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); } - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new ModelMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @returns ModelMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a ModelMonitoringObjectiveConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns ModelMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for ModelMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } + namespace ModelMonitoringObjectiveConfig { - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** ModelDeploymentMonitoringJob name */ - name?: (string|null); + /** TrainingDataset dataset */ + dataset?: (string|null); - /** ModelDeploymentMonitoringJob displayName */ - displayName?: (string|null); + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); + /** TrainingDataset targetField */ + targetField?: (string|null); - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + } - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { + + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); + + /** TrainingDataset dataset. */ + public dataset?: (string|null); + + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + + /** TrainingDataset dataFormat. */ + public dataFormat: string; + + /** TrainingDataset targetField. */ + public targetField: string; + + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Verifies a TrainingDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { + + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } + + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { + + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } + + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + + /** + * Verifies a PredictionDriftDetectionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { + + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); + + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } + + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { + + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); + + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; + + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); + /** + * Verifies an ExplanationConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); + /** + * Gets the default type url for ExplanationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ModelDeploymentMonitoringJob labels */ - labels?: ({ [k: string]: string }|null); + namespace ExplanationConfig { - /** ModelDeploymentMonitoringJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { - /** ModelDeploymentMonitoringJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); - } + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** - * Constructs a new ModelDeploymentMonitoringJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); - /** ModelDeploymentMonitoringJob name. */ - public name: string; + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); - /** ModelDeploymentMonitoringJob displayName. */ - public displayName: string; + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; + /** + * Verifies an ExplanationBaseline message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; + /** + * Gets the default type url for ExplanationBaseline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); + namespace ExplanationBaseline { - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } + } - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ModelMonitoringAlertConfig notificationChannels */ + notificationChannels?: (string[]|null); + } - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ModelMonitoringAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** ModelMonitoringAlertConfig notificationChannels. */ + public notificationChannels: string[]; - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ModelMonitoringAlertConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for ModelMonitoringAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { - - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { + namespace ModelMonitoringAlertConfig { - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); } - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { /** - * Constructs a new LatestMonitoringPipelineMetadata. + * Constructs a new EmailAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * Creates a new EmailAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance + * @returns EmailAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * Decodes an EmailAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata + * @returns EmailAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata + * @returns EmailAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; /** - * Verifies a LatestMonitoringPipelineMetadata message. + * Verifies an EmailAlertConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LatestMonitoringPipelineMetadata + * @returns EmailAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LatestMonitoringPipelineMetadata to JSON. + * Converts this EmailAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LatestMonitoringPipelineMetadata + * Gets the default type url for EmailAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } } - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { - - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); + /** ThresholdConfig value */ + value?: (number|null); } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); + constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** ThresholdConfig value. */ + public value?: (number|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a ThresholdConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for ThresholdConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } - - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a SamplingStrategy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for SamplingStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + namespace SamplingStrategy { - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } + + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { + + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); + + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + + /** + * Verifies a RandomSampleConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RandomSampleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Properties of a NasJob. */ + interface INasJob { + + /** NasJob name */ + name?: (string|null); + + /** NasJob displayName */ + displayName?: (string|null); + + /** NasJob nasJobSpec */ + nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); + + /** NasJob nasJobOutput */ + nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); + + /** NasJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + + /** NasJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error */ + error?: (google.rpc.IStatus|null); + + /** NasJob labels */ + labels?: ({ [k: string]: string }|null); + + /** NasJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining */ + enableRestrictedImageTraining?: (boolean|null); + } + + /** Represents a NasJob. */ + class NasJob implements INasJob { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new NasJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1.INasJob); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** NasJob name. */ + public name: string; - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** NasJob displayName. */ + public displayName: string; + + /** NasJob nasJobSpec. */ + public nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); + + /** NasJob nasJobOutput. */ + public nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); + + /** NasJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + + /** NasJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error. */ + public error?: (google.rpc.IStatus|null); + + /** NasJob labels. */ + public labels: { [k: string]: string }; + + /** NasJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining. */ + public enableRestrictedImageTraining: boolean; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1.INasJob): google.cloud.aiplatform.v1.NasJob; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJob; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJob; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a NasJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns NasJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJob; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @param message NasJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this NasJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for NasJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { + /** Properties of a NasTrialDetail. */ + interface INasTrialDetail { - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); + /** NasTrialDetail name */ + name?: (string|null); - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** NasTrialDetail parameters */ + parameters?: (string|null); - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** NasTrialDetail searchTrial */ + searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** NasTrialDetail trainTrial */ + trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a NasTrialDetail. */ + class NasTrialDetail implements INasTrialDetail { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new NasTrialDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); + constructor(properties?: google.cloud.aiplatform.v1.INasTrialDetail); - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); + /** NasTrialDetail name. */ + public name: string; - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + /** NasTrialDetail parameters. */ + public parameters: string; - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** NasTrialDetail searchTrial. */ + public searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** NasTrialDetail trainTrial. */ + public trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns NasTrialDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1.INasTrialDetail): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a NasTrialDetail message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; - - /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ModelMonitoringStatsAnomalies to JSON. - * @returns JSON object + * @returns NasTrialDetail */ - public toJSON(): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Gets the default type url for ModelMonitoringStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); - } - - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; - - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @param message NasTrialDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this NasTrialDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for NasTrialDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { - - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** Properties of a NasJobSpec. */ + interface INasJobSpec { - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** NasJobSpec multiTrialAlgorithmSpec */ + multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** NasJobSpec resumeNasJobId */ + resumeNasJobId?: (string|null); - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** NasJobSpec searchSpaceSpec */ + searchSpaceSpec?: (string|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a NasJobSpec. */ + class NasJobSpec implements INasJobSpec { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new NasJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1.INasJobSpec); - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** NasJobSpec multiTrialAlgorithmSpec. */ + public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** NasJobSpec resumeNasJobId. */ + public resumeNasJobId: string; - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** NasJobSpec searchSpaceSpec. */ + public searchSpaceSpec: string; - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** NasJobSpec nasAlgorithmSpec. */ + public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns NasJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.INasJobSpec): google.cloud.aiplatform.v1.NasJobSpec; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a NasJobSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns NasJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @param message NasJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this NasJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for NasJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { - - /** TrainingDataset dataset */ - dataset?: (string|null); + namespace NasJobSpec { - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + /** Properties of a MultiTrialAlgorithmSpec. */ + interface IMultiTrialAlgorithmSpec { - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ + multiTrialAlgorithm?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** MultiTrialAlgorithmSpec metric */ + metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** TrainingDataset targetField */ - targetField?: (string|null); + /** MultiTrialAlgorithmSpec searchTrialSpec */ + searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** MultiTrialAlgorithmSpec trainTrialSpec */ + trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); } - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** Represents a MultiTrialAlgorithmSpec. */ + class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { /** - * Constructs a new TrainingDataset. + * Constructs a new MultiTrialAlgorithmSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); - - /** TrainingDataset dataset. */ - public dataset?: (string|null); - - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec); - /** TrainingDataset dataFormat. */ - public dataFormat: string; + /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ + public multiTrialAlgorithm: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - /** TrainingDataset targetField. */ - public targetField: string; + /** MultiTrialAlgorithmSpec metric. */ + public metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** MultiTrialAlgorithmSpec searchTrialSpec. */ + public searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** MultiTrialAlgorithmSpec trainTrialSpec. */ + public trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); /** - * Creates a new TrainingDataset instance using the specified properties. + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingDataset instance + * @returns MultiTrialAlgorithmSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingDataset + * @returns MultiTrialAlgorithmSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingDataset + * @returns MultiTrialAlgorithmSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; /** - * Verifies a TrainingDataset message. + * Verifies a MultiTrialAlgorithmSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingDataset + * @returns MultiTrialAlgorithmSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @param message MultiTrialAlgorithmSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingDataset to JSON. + * Converts this MultiTrialAlgorithmSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for MultiTrialAlgorithmSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { + namespace MultiTrialAlgorithmSpec { - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** Properties of a MetricSpec. */ + interface IMetricSpec { - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** MetricSpec metricId */ + metricId?: (string|null); - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); + } - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** MetricSpec metricId. */ + public metricId: string; - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Verifies a MetricSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + namespace MetricSpec { - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** Properties of a SearchTrialSpec. */ + interface ISearchTrialSpec { - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** SearchTrialSpec searchTrialJobSpec */ + searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - /** PredictionDriftDetectionConfig defaultDriftThreshold */ - defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** SearchTrialSpec maxTrialCount */ + maxTrialCount?: (number|null); - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + /** SearchTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + /** SearchTrialSpec maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + } - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** Represents a SearchTrialSpec. */ + class SearchTrialSpec implements ISearchTrialSpec { - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** + * Constructs a new SearchTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); - /** PredictionDriftDetectionConfig defaultDriftThreshold. */ - public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** SearchTrialSpec searchTrialJobSpec. */ + public searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** SearchTrialSpec maxTrialCount. */ + public maxTrialCount: number; - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** SearchTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** SearchTrialSpec maxFailedTrialCount. */ + public maxFailedTrialCount: number; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a PredictionDriftDetectionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a SearchTrialSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @param message SearchTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainTrialSpec. */ + interface ITrainTrialSpec { + + /** TrainTrialSpec trainTrialJobSpec */ + trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** TrainTrialSpec frequency */ + frequency?: (number|null); + } + + /** Represents a TrainTrialSpec. */ + class TrainTrialSpec implements ITrainTrialSpec { + + /** + * Constructs a new TrainTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); + + /** TrainTrialSpec trainTrialJobSpec. */ + public trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** TrainTrialSpec frequency. */ + public frequency: number; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Verifies a TrainTrialSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @param message TrainTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MultiTrialAlgorithm enum. */ + enum MultiTrialAlgorithm { + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, + REINFORCEMENT_LEARNING = 1, + GRID_SEARCH = 2 + } } + } - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { + /** Properties of a NasJobOutput. */ + interface INasJobOutput { - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); + /** NasJobOutput multiTrialJobOutput */ + multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + } - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + /** Represents a NasJobOutput. */ + class NasJobOutput implements INasJobOutput { + + /** + * Constructs a new NasJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INasJobOutput); + + /** NasJobOutput multiTrialJobOutput. */ + public multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + + /** NasJobOutput output. */ + public output?: "multiTrialJobOutput"; + + /** + * Creates a new NasJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns NasJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INasJobOutput): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NasJobOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NasJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NasJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Verifies a NasJobOutput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NasJobOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @param message NasJobOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NasJobOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NasJobOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NasJobOutput { + + /** Properties of a MultiTrialJobOutput. */ + interface IMultiTrialJobOutput { + + /** MultiTrialJobOutput searchTrials */ + searchTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); + + /** MultiTrialJobOutput trainTrials */ + trainTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); } - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { + /** Represents a MultiTrialJobOutput. */ + class MultiTrialJobOutput implements IMultiTrialJobOutput { /** - * Constructs a new ExplanationConfig. + * Constructs a new MultiTrialJobOutput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); + constructor(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput); - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; + /** MultiTrialJobOutput searchTrials. */ + public searchTrials: google.cloud.aiplatform.v1.INasTrial[]; - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + /** MultiTrialJobOutput trainTrials. */ + public trainTrials: google.cloud.aiplatform.v1.INasTrial[]; /** - * Creates a new ExplanationConfig instance using the specified properties. + * Creates a new MultiTrialJobOutput instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationConfig instance + * @returns MultiTrialJobOutput instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static create(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationConfig + * @returns MultiTrialJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationConfig + * @returns MultiTrialJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; /** - * Verifies an ExplanationConfig message. + * Verifies a MultiTrialJobOutput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationConfig + * @returns MultiTrialJobOutput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @param message MultiTrialJobOutput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationConfig to JSON. + * Converts this MultiTrialJobOutput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationConfig + * Gets the default type url for MultiTrialJobOutput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } + + /** Properties of a NasTrial. */ + interface INasTrial { + + /** NasTrial id */ + id?: (string|null); + + /** NasTrial state */ + state?: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State|null); + + /** NasTrial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a NasTrial. */ + class NasTrial implements INasTrial { + + /** + * Constructs a new NasTrial. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INasTrial); + + /** NasTrial id. */ + public id: string; + + /** NasTrial state. */ + public state: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State); + + /** NasTrial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new NasTrial instance using the specified properties. + * @param [properties] Properties to set + * @returns NasTrial instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INasTrial): google.cloud.aiplatform.v1.NasTrial; + + /** + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NasTrial message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NasTrial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrial; + + /** + * Decodes a NasTrial message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NasTrial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrial; + + /** + * Verifies a NasTrial message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NasTrial + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrial; + + /** + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @param message NasTrial + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NasTrial to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NasTrial + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NasTrial { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } - namespace ExplanationConfig { + /** Properties of a LineageSubgraph. */ + interface ILineageSubgraph { - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** LineageSubgraph artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** LineageSubgraph executions */ + executions?: (google.cloud.aiplatform.v1.IExecution[]|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** LineageSubgraph events */ + events?: (google.cloud.aiplatform.v1.IEvent[]|null); + } - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** Represents a LineageSubgraph. */ + class LineageSubgraph implements ILineageSubgraph { - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** + * Constructs a new LineageSubgraph. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** LineageSubgraph artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** LineageSubgraph executions. */ + public executions: google.cloud.aiplatform.v1.IExecution[]; - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** LineageSubgraph events. */ + public events: google.cloud.aiplatform.v1.IEvent[]; - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** + * Creates a new LineageSubgraph instance using the specified properties. + * @param [properties] Properties to set + * @returns LineageSubgraph instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a LineageSubgraph message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LineageSubgraph + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LineageSubgraph; - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LineageSubgraph + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LineageSubgraph; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Verifies a LineageSubgraph message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LineageSubgraph + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; - /** - * Verifies an ExplanationBaseline message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * @param message LineageSubgraph + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Converts this LineageSubgraph to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for LineageSubgraph + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a LlmUtilityService */ + class LlmUtilityService extends $protobuf.rpc.Service { - /** - * Gets the default type url for ExplanationBaseline - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new LlmUtilityService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - namespace ExplanationBaseline { + /** + * Creates new LlmUtilityService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LlmUtilityService; - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } + /** + * Calls CountTokens. + * @param request CountTokensRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CountTokensResponse + */ + public countTokens(request: google.cloud.aiplatform.v1.ICountTokensRequest, callback: google.cloud.aiplatform.v1.LlmUtilityService.CountTokensCallback): void; + + /** + * Calls CountTokens. + * @param request CountTokensRequest message or plain object + * @returns Promise + */ + public countTokens(request: google.cloud.aiplatform.v1.ICountTokensRequest): Promise; + + /** + * Calls ComputeTokens. + * @param request ComputeTokensRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ComputeTokensResponse + */ + public computeTokens(request: google.cloud.aiplatform.v1.IComputeTokensRequest, callback: google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokensCallback): void; + + /** + * Calls ComputeTokens. + * @param request ComputeTokensRequest message or plain object + * @returns Promise + */ + public computeTokens(request: google.cloud.aiplatform.v1.IComputeTokensRequest): Promise; } - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + namespace LlmUtilityService { - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.LlmUtilityService|countTokens}. + * @param error Error, if any + * @param [response] CountTokensResponse + */ + type CountTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.CountTokensResponse) => void; - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.LlmUtilityService|computeTokens}. + * @param error Error, if any + * @param [response] ComputeTokensResponse + */ + type ComputeTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ComputeTokensResponse) => void; + } - /** ModelMonitoringAlertConfig notificationChannels */ - notificationChannels?: (string[]|null); + /** Properties of a ComputeTokensRequest. */ + interface IComputeTokensRequest { + + /** ComputeTokensRequest endpoint */ + endpoint?: (string|null); + + /** ComputeTokensRequest instances */ + instances?: (google.protobuf.IValue[]|null); } - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** Represents a ComputeTokensRequest. */ + class ComputeTokensRequest implements IComputeTokensRequest { /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ComputeTokensRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); - - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); - - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + constructor(properties?: google.cloud.aiplatform.v1.IComputeTokensRequest); - /** ModelMonitoringAlertConfig notificationChannels. */ - public notificationChannels: string[]; + /** ComputeTokensRequest endpoint. */ + public endpoint: string; - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** ComputeTokensRequest instances. */ + public instances: google.protobuf.IValue[]; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ComputeTokensRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns ComputeTokensRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1.IComputeTokensRequest): google.cloud.aiplatform.v1.ComputeTokensRequest; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ComputeTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensRequest.verify|verify} messages. + * @param message ComputeTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IComputeTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ComputeTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensRequest.verify|verify} messages. + * @param message ComputeTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IComputeTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ComputeTokensRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns ComputeTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ComputeTokensRequest; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ComputeTokensRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns ComputeTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ComputeTokensRequest; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ComputeTokensRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeTokensRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns ComputeTokensRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ComputeTokensRequest; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a ComputeTokensRequest message. Also converts values to other types if specified. + * @param message ComputeTokensRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ComputeTokensRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ComputeTokensRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ComputeTokensRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringAlertConfig { + /** Properties of a TokensInfo. */ + interface ITokensInfo { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** TokensInfo tokens */ + tokens?: (Uint8Array[]|null); - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); - } + /** TokensInfo tokenIds */ + tokenIds?: ((number|Long|string)[]|null); + } - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** Represents a TokensInfo. */ + class TokensInfo implements ITokensInfo { - /** - * Constructs a new EmailAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); + /** + * Constructs a new TokensInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITokensInfo); - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; + /** TokensInfo tokens. */ + public tokens: Uint8Array[]; - /** - * Creates a new EmailAlertConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailAlertConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** TokensInfo tokenIds. */ + public tokenIds: (number|Long|string)[]; - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TokensInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TokensInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITokensInfo): google.cloud.aiplatform.v1.TokensInfo; - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TokensInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.TokensInfo.verify|verify} messages. + * @param message TokensInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITokensInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Encodes the specified TokensInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TokensInfo.verify|verify} messages. + * @param message TokensInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITokensInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Decodes a TokensInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.TokensInfo; - /** - * Verifies an EmailAlertConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a TokensInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.TokensInfo; - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmailAlertConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Verifies a TokensInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TokensInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TokensInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TokensInfo; - /** - * Converts this EmailAlertConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a TokensInfo message. Also converts values to other types if specified. + * @param message TokensInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TokensInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for EmailAlertConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this TokensInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TokensInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a ComputeTokensResponse. */ + interface IComputeTokensResponse { - /** ThresholdConfig value */ - value?: (number|null); + /** ComputeTokensResponse tokensInfo */ + tokensInfo?: (google.cloud.aiplatform.v1.ITokensInfo[]|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a ComputeTokensResponse. */ + class ComputeTokensResponse implements IComputeTokensResponse { /** - * Constructs a new ThresholdConfig. + * Constructs a new ComputeTokensResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); - - /** ThresholdConfig value. */ - public value?: (number|null); + constructor(properties?: google.cloud.aiplatform.v1.IComputeTokensResponse); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** ComputeTokensResponse tokensInfo. */ + public tokensInfo: google.cloud.aiplatform.v1.ITokensInfo[]; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ComputeTokensResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns ComputeTokensResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1.IComputeTokensResponse): google.cloud.aiplatform.v1.ComputeTokensResponse; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ComputeTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensResponse.verify|verify} messages. + * @param message ComputeTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IComputeTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ComputeTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensResponse.verify|verify} messages. + * @param message ComputeTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IComputeTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ComputeTokensResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns ComputeTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ComputeTokensResponse; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ComputeTokensResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns ComputeTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ComputeTokensResponse; /** - * Verifies a ThresholdConfig message. + * Verifies a ComputeTokensResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeTokensResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns ComputeTokensResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ComputeTokensResponse; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a ComputeTokensResponse message. Also converts values to other types if specified. + * @param message ComputeTokensResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ComputeTokensResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ComputeTokensResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for ComputeTokensResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + /** Represents a PredictionService */ + class PredictionService extends $protobuf.rpc.Service { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** + * Constructs a new PredictionService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new PredictionService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; + + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PredictResponse + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; + + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @returns Promise + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; + + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HttpBody + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; + + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @returns Promise + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; + + /** + * Calls ServerStreamingPredict. + * @param request StreamingPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse + */ + public serverStreamingPredict(request: google.cloud.aiplatform.v1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredictCallback): void; + + /** + * Calls ServerStreamingPredict. + * @param request StreamingPredictRequest message or plain object + * @returns Promise + */ + public serverStreamingPredict(request: google.cloud.aiplatform.v1.IStreamingPredictRequest): Promise; + + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExplainResponse + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; + + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @returns Promise + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + namespace PredictionService { /** - * Constructs a new SamplingStrategy. + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @param error Error, if any + * @param [response] PredictResponse + */ + type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @param error Error, if any + * @param [response] HttpBody + */ + type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|serverStreamingPredict}. + * @param error Error, if any + * @param [response] StreamingPredictResponse + */ + type ServerStreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.StreamingPredictResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @param error Error, if any + * @param [response] ExplainResponse + */ + type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; + } + + /** Properties of a PredictRequest. */ + interface IPredictRequest { + + /** PredictRequest endpoint */ + endpoint?: (string|null); + + /** PredictRequest instances */ + instances?: (google.protobuf.IValue[]|null); + + /** PredictRequest parameters */ + parameters?: (google.protobuf.IValue|null); + } + + /** Represents a PredictRequest. */ + class PredictRequest implements IPredictRequest { + + /** + * Constructs a new PredictRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** PredictRequest endpoint. */ + public endpoint: string; + + /** PredictRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** PredictRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new PredictRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns PredictRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a PredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PredictRequest; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PredictRequest; /** - * Verifies a SamplingStrategy message. + * Verifies a PredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns PredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. + * @param message PredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this PredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for PredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SamplingStrategy { + /** Properties of a PredictResponse. */ + interface IPredictResponse { - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { + /** PredictResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } + /** PredictResponse deployedModelId */ + deployedModelId?: (string|null); - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { + /** PredictResponse model */ + model?: (string|null); - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; + /** PredictResponse modelDisplayName */ + modelDisplayName?: (string|null); - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RandomSampleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + /** PredictResponse metadata */ + metadata?: (google.protobuf.IValue|null); + } - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a PredictResponse. */ + class PredictResponse implements IPredictResponse { - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PredictResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RandomSampleConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + /** PredictResponse predictions. */ + public predictions: google.protobuf.IValue[]; - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + /** PredictResponse deployedModelId. */ + public deployedModelId: string; - /** - * Verifies a RandomSampleConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** PredictResponse model. */ + public model: string; - /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RandomSampleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PredictResponse modelDisplayName. */ + public modelDisplayName: string; - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PredictResponse metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** - * Gets the default type url for RandomSampleConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a new PredictResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; - /** Properties of a NasJob. */ - interface INasJob { + /** + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** NasJob name */ - name?: (string|null); + /** + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** NasJob displayName */ - displayName?: (string|null); + /** + * Decodes a PredictResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PredictResponse; - /** NasJob nasJobSpec */ - nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); + /** + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PredictResponse; - /** NasJob nasJobOutput */ - nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); + /** + * Verifies a PredictResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** NasJob state */ - state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); + /** + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; - /** NasJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. + * @param message PredictResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NasJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Converts this PredictResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NasJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for PredictResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NasJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a RawPredictRequest. */ + interface IRawPredictRequest { - /** NasJob error */ - error?: (google.rpc.IStatus|null); + /** RawPredictRequest endpoint */ + endpoint?: (string|null); - /** NasJob labels */ - labels?: ({ [k: string]: string }|null); + /** RawPredictRequest httpBody */ + httpBody?: (google.api.IHttpBody|null); + } - /** NasJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Represents a RawPredictRequest. */ + class RawPredictRequest implements IRawPredictRequest { - /** NasJob enableRestrictedImageTraining */ - enableRestrictedImageTraining?: (boolean|null); - } + /** + * Constructs a new RawPredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - /** Represents a NasJob. */ - class NasJob implements INasJob { + /** RawPredictRequest endpoint. */ + public endpoint: string; + + /** RawPredictRequest httpBody. */ + public httpBody?: (google.api.IHttpBody|null); /** - * Constructs a new NasJob. + * Creates a new RawPredictRequest instance using the specified properties. * @param [properties] Properties to set + * @returns RawPredictRequest instance */ - constructor(properties?: google.cloud.aiplatform.v1.INasJob); + public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; - /** NasJob name. */ - public name: string; + /** + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NasJob displayName. */ - public displayName: string; + /** + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** NasJob nasJobSpec. */ - public nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); + /** + * Decodes a RawPredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.RawPredictRequest; - /** NasJob nasJobOutput. */ - public nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); + /** + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.RawPredictRequest; - /** NasJob state. */ - public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); + /** + * Verifies a RawPredictRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** NasJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RawPredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; - /** NasJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @param message RawPredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NasJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Converts this RawPredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NasJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for RawPredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NasJob error. */ - public error?: (google.rpc.IStatus|null); + /** Properties of a StreamingPredictRequest. */ + interface IStreamingPredictRequest { - /** NasJob labels. */ - public labels: { [k: string]: string }; + /** StreamingPredictRequest endpoint */ + endpoint?: (string|null); - /** NasJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** StreamingPredictRequest inputs */ + inputs?: (google.cloud.aiplatform.v1.ITensor[]|null); - /** NasJob enableRestrictedImageTraining. */ - public enableRestrictedImageTraining: boolean; + /** StreamingPredictRequest parameters */ + parameters?: (google.cloud.aiplatform.v1.ITensor|null); + } + + /** Represents a StreamingPredictRequest. */ + class StreamingPredictRequest implements IStreamingPredictRequest { /** - * Creates a new NasJob instance using the specified properties. + * Constructs a new StreamingPredictRequest. * @param [properties] Properties to set - * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.INasJob): google.cloud.aiplatform.v1.NasJob; + constructor(properties?: google.cloud.aiplatform.v1.IStreamingPredictRequest); + + /** StreamingPredictRequest endpoint. */ + public endpoint: string; + + /** StreamingPredictRequest inputs. */ + public inputs: google.cloud.aiplatform.v1.ITensor[]; + + /** StreamingPredictRequest parameters. */ + public parameters?: (google.cloud.aiplatform.v1.ITensor|null); /** - * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. - * @param message NasJob message or plain object to encode + * Creates a new StreamingPredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamingPredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStreamingPredictRequest): google.cloud.aiplatform.v1.StreamingPredictRequest; + + /** + * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. + * @param message StreamingPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. - * @param message NasJob message or plain object to encode + * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. + * @param message StreamingPredictRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NasJob message from the specified reader or buffer. + * Decodes a StreamingPredictRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NasJob + * @returns StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingPredictRequest; /** - * Decodes a NasJob message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NasJob + * @returns StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingPredictRequest; /** - * Verifies a NasJob message. + * Verifies a StreamingPredictRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NasJob message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NasJob + * @returns StreamingPredictRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingPredictRequest; /** - * Creates a plain object from a NasJob message. Also converts values to other types if specified. - * @param message NasJob + * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. + * @param message StreamingPredictRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StreamingPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NasJob to JSON. + * Converts this StreamingPredictRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NasJob + * Gets the default type url for StreamingPredictRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NasTrialDetail. */ - interface INasTrialDetail { - - /** NasTrialDetail name */ - name?: (string|null); - - /** NasTrialDetail parameters */ - parameters?: (string|null); + /** Properties of a StreamingPredictResponse. */ + interface IStreamingPredictResponse { - /** NasTrialDetail searchTrial */ - searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + /** StreamingPredictResponse outputs */ + outputs?: (google.cloud.aiplatform.v1.ITensor[]|null); - /** NasTrialDetail trainTrial */ - trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + /** StreamingPredictResponse parameters */ + parameters?: (google.cloud.aiplatform.v1.ITensor|null); } - /** Represents a NasTrialDetail. */ - class NasTrialDetail implements INasTrialDetail { + /** Represents a StreamingPredictResponse. */ + class StreamingPredictResponse implements IStreamingPredictResponse { /** - * Constructs a new NasTrialDetail. + * Constructs a new StreamingPredictResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.INasTrialDetail); - - /** NasTrialDetail name. */ - public name: string; - - /** NasTrialDetail parameters. */ - public parameters: string; + constructor(properties?: google.cloud.aiplatform.v1.IStreamingPredictResponse); - /** NasTrialDetail searchTrial. */ - public searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + /** StreamingPredictResponse outputs. */ + public outputs: google.cloud.aiplatform.v1.ITensor[]; - /** NasTrialDetail trainTrial. */ - public trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + /** StreamingPredictResponse parameters. */ + public parameters?: (google.cloud.aiplatform.v1.ITensor|null); /** - * Creates a new NasTrialDetail instance using the specified properties. + * Creates a new StreamingPredictResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NasTrialDetail instance + * @returns StreamingPredictResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.INasTrialDetail): google.cloud.aiplatform.v1.NasTrialDetail; + public static create(properties?: google.cloud.aiplatform.v1.IStreamingPredictResponse): google.cloud.aiplatform.v1.StreamingPredictResponse; /** - * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. - * @param message NasTrialDetail message or plain object to encode + * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * @param message StreamingPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. - * @param message NasTrialDetail message or plain object to encode + * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * @param message StreamingPredictResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NasTrialDetail message from the specified reader or buffer. + * Decodes a StreamingPredictResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NasTrialDetail + * @returns StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrialDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingPredictResponse; /** - * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NasTrialDetail + * @returns StreamingPredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrialDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingPredictResponse; /** - * Verifies a NasTrialDetail message. + * Verifies a StreamingPredictResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NasTrialDetail + * @returns StreamingPredictResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrialDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingPredictResponse; /** - * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. - * @param message NasTrialDetail + * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. + * @param message StreamingPredictResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StreamingPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NasTrialDetail to JSON. + * Converts this StreamingPredictResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NasTrialDetail + * Gets the default type url for StreamingPredictResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NasJobSpec. */ - interface INasJobSpec { + /** Properties of an ExplainRequest. */ + interface IExplainRequest { - /** NasJobSpec multiTrialAlgorithmSpec */ - multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + /** ExplainRequest endpoint */ + endpoint?: (string|null); - /** NasJobSpec resumeNasJobId */ - resumeNasJobId?: (string|null); + /** ExplainRequest instances */ + instances?: (google.protobuf.IValue[]|null); - /** NasJobSpec searchSpaceSpec */ - searchSpaceSpec?: (string|null); + /** ExplainRequest parameters */ + parameters?: (google.protobuf.IValue|null); + + /** ExplainRequest explanationSpecOverride */ + explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId */ + deployedModelId?: (string|null); } - /** Represents a NasJobSpec. */ - class NasJobSpec implements INasJobSpec { + /** Represents an ExplainRequest. */ + class ExplainRequest implements IExplainRequest { /** - * Constructs a new NasJobSpec. + * Constructs a new ExplainRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.INasJobSpec); + constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); - /** NasJobSpec multiTrialAlgorithmSpec. */ - public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + /** ExplainRequest endpoint. */ + public endpoint: string; - /** NasJobSpec resumeNasJobId. */ - public resumeNasJobId: string; + /** ExplainRequest instances. */ + public instances: google.protobuf.IValue[]; - /** NasJobSpec searchSpaceSpec. */ - public searchSpaceSpec: string; + /** ExplainRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); - /** NasJobSpec nasAlgorithmSpec. */ - public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; + /** ExplainRequest explanationSpecOverride. */ + public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId. */ + public deployedModelId: string; /** - * Creates a new NasJobSpec instance using the specified properties. + * Creates a new ExplainRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NasJobSpec instance + * @returns ExplainRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.INasJobSpec): google.cloud.aiplatform.v1.NasJobSpec; + public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; /** - * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. - * @param message NasJobSpec message or plain object to encode + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. - * @param message NasJobSpec message or plain object to encode + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NasJobSpec message from the specified reader or buffer. + * Decodes an ExplainRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NasJobSpec + * @returns ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainRequest; /** - * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NasJobSpec + * @returns ExplainRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainRequest; /** - * Verifies a NasJobSpec message. + * Verifies an ExplainRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NasJobSpec + * @returns ExplainRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; /** - * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. - * @param message NasJobSpec + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @param message ExplainRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NasJobSpec to JSON. + * Converts this ExplainRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NasJobSpec + * Gets the default type url for ExplainRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NasJobSpec { - - /** Properties of a MultiTrialAlgorithmSpec. */ - interface IMultiTrialAlgorithmSpec { - - /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ - multiTrialAlgorithm?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - - /** MultiTrialAlgorithmSpec metric */ - metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - - /** MultiTrialAlgorithmSpec searchTrialSpec */ - searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - - /** MultiTrialAlgorithmSpec trainTrialSpec */ - trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); - } - - /** Represents a MultiTrialAlgorithmSpec. */ - class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { - - /** - * Constructs a new MultiTrialAlgorithmSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec); - - /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ - public multiTrialAlgorithm: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - - /** MultiTrialAlgorithmSpec metric. */ - public metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - - /** MultiTrialAlgorithmSpec searchTrialSpec. */ - public searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - - /** MultiTrialAlgorithmSpec trainTrialSpec. */ - public trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); - - /** - * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MultiTrialAlgorithmSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - - /** - * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. - * @param message MultiTrialAlgorithmSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. - * @param message MultiTrialAlgorithmSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MultiTrialAlgorithmSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - - /** - * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MultiTrialAlgorithmSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - - /** - * Verifies a MultiTrialAlgorithmSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MultiTrialAlgorithmSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - - /** - * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. - * @param message MultiTrialAlgorithmSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MultiTrialAlgorithmSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MultiTrialAlgorithmSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MultiTrialAlgorithmSpec { - - /** Properties of a MetricSpec. */ - interface IMetricSpec { - - /** MetricSpec metricId */ - metricId?: (string|null); - - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); - } - - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { - - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); - - /** MetricSpec metricId. */ - public metricId: string; - - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); - - /** - * Creates a new MetricSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - - /** - * Verifies a MetricSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; - - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @param message MetricSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetricSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MetricSpec { - - /** GoalType enum. */ - enum GoalType { - GOAL_TYPE_UNSPECIFIED = 0, - MAXIMIZE = 1, - MINIMIZE = 2 - } - } - - /** Properties of a SearchTrialSpec. */ - interface ISearchTrialSpec { - - /** SearchTrialSpec searchTrialJobSpec */ - searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - - /** SearchTrialSpec maxTrialCount */ - maxTrialCount?: (number|null); - - /** SearchTrialSpec maxParallelTrialCount */ - maxParallelTrialCount?: (number|null); - - /** SearchTrialSpec maxFailedTrialCount */ - maxFailedTrialCount?: (number|null); - } - - /** Represents a SearchTrialSpec. */ - class SearchTrialSpec implements ISearchTrialSpec { - - /** - * Constructs a new SearchTrialSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); - - /** SearchTrialSpec searchTrialJobSpec. */ - public searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - - /** SearchTrialSpec maxTrialCount. */ - public maxTrialCount: number; - - /** SearchTrialSpec maxParallelTrialCount. */ - public maxParallelTrialCount: number; - - /** SearchTrialSpec maxFailedTrialCount. */ - public maxFailedTrialCount: number; - - /** - * Creates a new SearchTrialSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns SearchTrialSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - - /** - * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. - * @param message SearchTrialSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. - * @param message SearchTrialSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SearchTrialSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SearchTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - - /** - * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SearchTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - - /** - * Verifies a SearchTrialSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SearchTrialSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; - - /** - * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. - * @param message SearchTrialSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SearchTrialSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SearchTrialSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TrainTrialSpec. */ - interface ITrainTrialSpec { - - /** TrainTrialSpec trainTrialJobSpec */ - trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - - /** TrainTrialSpec maxParallelTrialCount */ - maxParallelTrialCount?: (number|null); - - /** TrainTrialSpec frequency */ - frequency?: (number|null); - } - - /** Represents a TrainTrialSpec. */ - class TrainTrialSpec implements ITrainTrialSpec { - - /** - * Constructs a new TrainTrialSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); - - /** TrainTrialSpec trainTrialJobSpec. */ - public trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); - - /** TrainTrialSpec maxParallelTrialCount. */ - public maxParallelTrialCount: number; - - /** TrainTrialSpec frequency. */ - public frequency: number; - - /** - * Creates a new TrainTrialSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainTrialSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - - /** - * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. - * @param message TrainTrialSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. - * @param message TrainTrialSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainTrialSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - - /** - * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - - /** - * Verifies a TrainTrialSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainTrialSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - - /** - * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. - * @param message TrainTrialSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainTrialSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TrainTrialSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an ExplainResponse. */ + interface IExplainResponse { - /** MultiTrialAlgorithm enum. */ - enum MultiTrialAlgorithm { - MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, - REINFORCEMENT_LEARNING = 1, - GRID_SEARCH = 2 - } - } - } + /** ExplainResponse explanations */ + explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); - /** Properties of a NasJobOutput. */ - interface INasJobOutput { + /** ExplainResponse deployedModelId */ + deployedModelId?: (string|null); - /** NasJobOutput multiTrialJobOutput */ - multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + /** ExplainResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); } - /** Represents a NasJobOutput. */ - class NasJobOutput implements INasJobOutput { + /** Represents an ExplainResponse. */ + class ExplainResponse implements IExplainResponse { /** - * Constructs a new NasJobOutput. + * Constructs a new ExplainResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.INasJobOutput); + constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); - /** NasJobOutput multiTrialJobOutput. */ - public multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + /** ExplainResponse explanations. */ + public explanations: google.cloud.aiplatform.v1.IExplanation[]; - /** NasJobOutput output. */ - public output?: "multiTrialJobOutput"; + /** ExplainResponse deployedModelId. */ + public deployedModelId: string; + + /** ExplainResponse predictions. */ + public predictions: google.protobuf.IValue[]; /** - * Creates a new NasJobOutput instance using the specified properties. + * Creates a new ExplainResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NasJobOutput instance + * @returns ExplainResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.INasJobOutput): google.cloud.aiplatform.v1.NasJobOutput; + public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; /** - * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. - * @param message NasJobOutput message or plain object to encode + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. - * @param message NasJobOutput message or plain object to encode + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NasJobOutput message from the specified reader or buffer. + * Decodes an ExplainResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NasJobOutput + * @returns ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainResponse; /** - * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NasJobOutput + * @returns ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainResponse; /** - * Verifies a NasJobOutput message. + * Verifies an ExplainResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NasJobOutput + * @returns ExplainResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; /** - * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. - * @param message NasJobOutput + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @param message ExplainResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NasJobOutput to JSON. + * Converts this ExplainResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NasJobOutput + * Gets the default type url for ExplainResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NasJobOutput { - - /** Properties of a MultiTrialJobOutput. */ - interface IMultiTrialJobOutput { - - /** MultiTrialJobOutput searchTrials */ - searchTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); - - /** MultiTrialJobOutput trainTrials */ - trainTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); - } - - /** Represents a MultiTrialJobOutput. */ - class MultiTrialJobOutput implements IMultiTrialJobOutput { - - /** - * Constructs a new MultiTrialJobOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput); - - /** MultiTrialJobOutput searchTrials. */ - public searchTrials: google.cloud.aiplatform.v1.INasTrial[]; - - /** MultiTrialJobOutput trainTrials. */ - public trainTrials: google.cloud.aiplatform.v1.INasTrial[]; - - /** - * Creates a new MultiTrialJobOutput instance using the specified properties. - * @param [properties] Properties to set - * @returns MultiTrialJobOutput instance - */ - public static create(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; - - /** - * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. - * @param message MultiTrialJobOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. - * @param message MultiTrialJobOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MultiTrialJobOutput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MultiTrialJobOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; - - /** - * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MultiTrialJobOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; - - /** - * Verifies a MultiTrialJobOutput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MultiTrialJobOutput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; - - /** - * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. - * @param message MultiTrialJobOutput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MultiTrialJobOutput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MultiTrialJobOutput - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a NasTrial. */ - interface INasTrial { - - /** NasTrial id */ - id?: (string|null); - - /** NasTrial state */ - state?: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State|null); - - /** NasTrial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** Properties of a CountTokensRequest. */ + interface ICountTokensRequest { - /** NasTrial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** CountTokensRequest endpoint */ + endpoint?: (string|null); - /** NasTrial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** CountTokensRequest instances */ + instances?: (google.protobuf.IValue[]|null); } - /** Represents a NasTrial. */ - class NasTrial implements INasTrial { + /** Represents a CountTokensRequest. */ + class CountTokensRequest implements ICountTokensRequest { /** - * Constructs a new NasTrial. + * Constructs a new CountTokensRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.INasTrial); - - /** NasTrial id. */ - public id: string; - - /** NasTrial state. */ - public state: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State); - - /** NasTrial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + constructor(properties?: google.cloud.aiplatform.v1.ICountTokensRequest); - /** NasTrial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** CountTokensRequest endpoint. */ + public endpoint: string; - /** NasTrial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** CountTokensRequest instances. */ + public instances: google.protobuf.IValue[]; /** - * Creates a new NasTrial instance using the specified properties. + * Creates a new CountTokensRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NasTrial instance + * @returns CountTokensRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.INasTrial): google.cloud.aiplatform.v1.NasTrial; + public static create(properties?: google.cloud.aiplatform.v1.ICountTokensRequest): google.cloud.aiplatform.v1.CountTokensRequest; /** - * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. - * @param message NasTrial message or plain object to encode + * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensRequest.verify|verify} messages. + * @param message CountTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. - * @param message NasTrial message or plain object to encode + * Encodes the specified CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensRequest.verify|verify} messages. + * @param message CountTokensRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICountTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NasTrial message from the specified reader or buffer. + * Decodes a CountTokensRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NasTrial + * @returns CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CountTokensRequest; /** - * Decodes a NasTrial message from the specified reader or buffer, length delimited. + * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NasTrial + * @returns CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CountTokensRequest; /** - * Verifies a NasTrial message. + * Verifies a CountTokensRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NasTrial + * @returns CountTokensRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CountTokensRequest; /** - * Creates a plain object from a NasTrial message. Also converts values to other types if specified. - * @param message NasTrial + * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. + * @param message CountTokensRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CountTokensRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NasTrial to JSON. + * Converts this CountTokensRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NasTrial + * Gets the default type url for CountTokensRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NasTrial { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 - } - } - - /** Properties of a LineageSubgraph. */ - interface ILineageSubgraph { - - /** LineageSubgraph artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + /** Properties of a CountTokensResponse. */ + interface ICountTokensResponse { - /** LineageSubgraph executions */ - executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + /** CountTokensResponse totalTokens */ + totalTokens?: (number|null); - /** LineageSubgraph events */ - events?: (google.cloud.aiplatform.v1.IEvent[]|null); + /** CountTokensResponse totalBillableCharacters */ + totalBillableCharacters?: (number|null); } - /** Represents a LineageSubgraph. */ - class LineageSubgraph implements ILineageSubgraph { + /** Represents a CountTokensResponse. */ + class CountTokensResponse implements ICountTokensResponse { /** - * Constructs a new LineageSubgraph. + * Constructs a new CountTokensResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - - /** LineageSubgraph artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + constructor(properties?: google.cloud.aiplatform.v1.ICountTokensResponse); - /** LineageSubgraph executions. */ - public executions: google.cloud.aiplatform.v1.IExecution[]; + /** CountTokensResponse totalTokens. */ + public totalTokens: number; - /** LineageSubgraph events. */ - public events: google.cloud.aiplatform.v1.IEvent[]; + /** CountTokensResponse totalBillableCharacters. */ + public totalBillableCharacters: number; /** - * Creates a new LineageSubgraph instance using the specified properties. + * Creates a new CountTokensResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LineageSubgraph instance + * @returns CountTokensResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; + public static create(properties?: google.cloud.aiplatform.v1.ICountTokensResponse): google.cloud.aiplatform.v1.CountTokensResponse; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensResponse.verify|verify} messages. + * @param message CountTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensResponse.verify|verify} messages. + * @param message CountTokensResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICountTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. + * Decodes a CountTokensResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LineageSubgraph + * @returns CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LineageSubgraph; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CountTokensResponse; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LineageSubgraph + * @returns CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LineageSubgraph; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CountTokensResponse; /** - * Verifies a LineageSubgraph message. + * Verifies a CountTokensResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LineageSubgraph + * @returns CountTokensResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CountTokensResponse; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @param message LineageSubgraph + * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. + * @param message CountTokensResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CountTokensResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LineageSubgraph to JSON. + * Converts this CountTokensResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LineageSubgraph + * Gets the default type url for CountTokensResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -62419,895 +70094,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PredictionService */ - class PredictionService extends $protobuf.rpc.Service { - - /** - * Constructs a new PredictionService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new PredictionService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; - - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PredictResponse - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; - - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @returns Promise - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; - - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HttpBody - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; - - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @returns Promise - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; - - /** - * Calls ServerStreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingPredictResponse - */ - public serverStreamingPredict(request: google.cloud.aiplatform.v1.IStreamingPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredictCallback): void; - - /** - * Calls ServerStreamingPredict. - * @param request StreamingPredictRequest message or plain object - * @returns Promise - */ - public serverStreamingPredict(request: google.cloud.aiplatform.v1.IStreamingPredictRequest): Promise; - - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExplainResponse - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; - - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @returns Promise - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; - } - - namespace PredictionService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @param error Error, if any - * @param [response] PredictResponse - */ - type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @param error Error, if any - * @param [response] HttpBody - */ - type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|serverStreamingPredict}. - * @param error Error, if any - * @param [response] StreamingPredictResponse - */ - type ServerStreamingPredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.StreamingPredictResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @param error Error, if any - * @param [response] ExplainResponse - */ - type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; - } - - /** Properties of a PredictRequest. */ - interface IPredictRequest { - - /** PredictRequest endpoint */ - endpoint?: (string|null); - - /** PredictRequest instances */ - instances?: (google.protobuf.IValue[]|null); - - /** PredictRequest parameters */ - parameters?: (google.protobuf.IValue|null); - } - - /** Represents a PredictRequest. */ - class PredictRequest implements IPredictRequest { - - /** - * Constructs a new PredictRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); - - /** PredictRequest endpoint. */ - public endpoint: string; - - /** PredictRequest instances. */ - public instances: google.protobuf.IValue[]; - - /** PredictRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); - - /** - * Creates a new PredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; - - /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PredictRequest; - - /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PredictRequest; - - /** - * Verifies a PredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; - - /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. - * @param message PredictRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PredictResponse. */ - interface IPredictResponse { - - /** PredictResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); - - /** PredictResponse deployedModelId */ - deployedModelId?: (string|null); - - /** PredictResponse model */ - model?: (string|null); - - /** PredictResponse modelVersionId */ - modelVersionId?: (string|null); - - /** PredictResponse modelDisplayName */ - modelDisplayName?: (string|null); - - /** PredictResponse metadata */ - metadata?: (google.protobuf.IValue|null); - } - - /** Represents a PredictResponse. */ - class PredictResponse implements IPredictResponse { - - /** - * Constructs a new PredictResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - - /** PredictResponse predictions. */ - public predictions: google.protobuf.IValue[]; - - /** PredictResponse deployedModelId. */ - public deployedModelId: string; - - /** PredictResponse model. */ - public model: string; - - /** PredictResponse modelVersionId. */ - public modelVersionId: string; - - /** PredictResponse modelDisplayName. */ - public modelDisplayName: string; - - /** PredictResponse metadata. */ - public metadata?: (google.protobuf.IValue|null); - - /** - * Creates a new PredictResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; - - /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PredictResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PredictResponse; - - /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PredictResponse; - - /** - * Verifies a PredictResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; - - /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. - * @param message PredictResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RawPredictRequest. */ - interface IRawPredictRequest { - - /** RawPredictRequest endpoint */ - endpoint?: (string|null); - - /** RawPredictRequest httpBody */ - httpBody?: (google.api.IHttpBody|null); - } - - /** Represents a RawPredictRequest. */ - class RawPredictRequest implements IRawPredictRequest { - - /** - * Constructs a new RawPredictRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - - /** RawPredictRequest endpoint. */ - public endpoint: string; - - /** RawPredictRequest httpBody. */ - public httpBody?: (google.api.IHttpBody|null); - - /** - * Creates a new RawPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RawPredictRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; - - /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RawPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.RawPredictRequest; - - /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.RawPredictRequest; - - /** - * Verifies a RawPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RawPredictRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; - - /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. - * @param message RawPredictRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RawPredictRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RawPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamingPredictRequest. */ - interface IStreamingPredictRequest { - - /** StreamingPredictRequest endpoint */ - endpoint?: (string|null); - - /** StreamingPredictRequest inputs */ - inputs?: (google.cloud.aiplatform.v1.ITensor[]|null); - - /** StreamingPredictRequest parameters */ - parameters?: (google.cloud.aiplatform.v1.ITensor|null); - } - - /** Represents a StreamingPredictRequest. */ - class StreamingPredictRequest implements IStreamingPredictRequest { - - /** - * Constructs a new StreamingPredictRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IStreamingPredictRequest); - - /** StreamingPredictRequest endpoint. */ - public endpoint: string; - - /** StreamingPredictRequest inputs. */ - public inputs: google.cloud.aiplatform.v1.ITensor[]; - - /** StreamingPredictRequest parameters. */ - public parameters?: (google.cloud.aiplatform.v1.ITensor|null); - - /** - * Creates a new StreamingPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingPredictRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IStreamingPredictRequest): google.cloud.aiplatform.v1.StreamingPredictRequest; - - /** - * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. - * @param message StreamingPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. - * @param message StreamingPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamingPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingPredictRequest; - - /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamingPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingPredictRequest; - - /** - * Verifies a StreamingPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamingPredictRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingPredictRequest; - - /** - * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. - * @param message StreamingPredictRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.StreamingPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamingPredictRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamingPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamingPredictResponse. */ - interface IStreamingPredictResponse { - - /** StreamingPredictResponse outputs */ - outputs?: (google.cloud.aiplatform.v1.ITensor[]|null); - - /** StreamingPredictResponse parameters */ - parameters?: (google.cloud.aiplatform.v1.ITensor|null); - } - - /** Represents a StreamingPredictResponse. */ - class StreamingPredictResponse implements IStreamingPredictResponse { - - /** - * Constructs a new StreamingPredictResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IStreamingPredictResponse); - - /** StreamingPredictResponse outputs. */ - public outputs: google.cloud.aiplatform.v1.ITensor[]; - - /** StreamingPredictResponse parameters. */ - public parameters?: (google.cloud.aiplatform.v1.ITensor|null); - - /** - * Creates a new StreamingPredictResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingPredictResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IStreamingPredictResponse): google.cloud.aiplatform.v1.StreamingPredictResponse; - - /** - * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. - * @param message StreamingPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. - * @param message StreamingPredictResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStreamingPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamingPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StreamingPredictResponse; - - /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamingPredictResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StreamingPredictResponse; - - /** - * Verifies a StreamingPredictResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamingPredictResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StreamingPredictResponse; - - /** - * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. - * @param message StreamingPredictResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.StreamingPredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamingPredictResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamingPredictResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplainRequest. */ - interface IExplainRequest { - - /** ExplainRequest endpoint */ - endpoint?: (string|null); - - /** ExplainRequest instances */ - instances?: (google.protobuf.IValue[]|null); - - /** ExplainRequest parameters */ - parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride */ - explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId */ - deployedModelId?: (string|null); - } - - /** Represents an ExplainRequest. */ - class ExplainRequest implements IExplainRequest { - - /** - * Constructs a new ExplainRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); - - /** ExplainRequest endpoint. */ - public endpoint: string; - - /** ExplainRequest instances. */ - public instances: google.protobuf.IValue[]; - - /** ExplainRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride. */ - public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId. */ - public deployedModelId: string; - - /** - * Creates a new ExplainRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplainRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; - - /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExplainRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainRequest; - - /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainRequest; - - /** - * Verifies an ExplainRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplainRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; - - /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. - * @param message ExplainRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExplainRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExplainRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplainResponse. */ - interface IExplainResponse { - - /** ExplainResponse explanations */ - explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); - - /** ExplainResponse deployedModelId */ - deployedModelId?: (string|null); - - /** ExplainResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); - } - - /** Represents an ExplainResponse. */ - class ExplainResponse implements IExplainResponse { - - /** - * Constructs a new ExplainResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); - - /** ExplainResponse explanations. */ - public explanations: google.cloud.aiplatform.v1.IExplanation[]; - - /** ExplainResponse deployedModelId. */ - public deployedModelId: string; - - /** ExplainResponse predictions. */ - public predictions: google.protobuf.IValue[]; - - /** - * Creates a new ExplainResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplainResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; - - /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExplainResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplainResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainResponse; - - /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplainResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainResponse; - - /** - * Verifies an ExplainResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplainResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; - - /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. - * @param message ExplainResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExplainResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExplainResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** Properties of a Schedule. */ interface ISchedule { @@ -87151,6 +93937,9 @@ export namespace google { /** MachineSpec acceleratorCount */ acceleratorCount?: (number|null); + + /** MachineSpec tpuTopology */ + tpuTopology?: (string|null); } /** Represents a MachineSpec. */ @@ -87171,6 +93960,9 @@ export namespace google { /** MachineSpec acceleratorCount. */ public acceleratorCount: number; + /** MachineSpec tpuTopology. */ + public tpuTopology: string; + /** * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set @@ -91374,6 +98166,18 @@ export namespace google { /** ModelContainerSpec healthRoute */ healthRoute?: (string|null); + + /** ModelContainerSpec deploymentTimeout */ + deploymentTimeout?: (google.protobuf.IDuration|null); + + /** ModelContainerSpec sharedMemorySizeMb */ + sharedMemorySizeMb?: (number|Long|string|null); + + /** ModelContainerSpec startupProbe */ + startupProbe?: (google.cloud.aiplatform.v1beta1.IProbe|null); + + /** ModelContainerSpec healthProbe */ + healthProbe?: (google.cloud.aiplatform.v1beta1.IProbe|null); } /** Represents a ModelContainerSpec. */ @@ -91406,6 +98210,18 @@ export namespace google { /** ModelContainerSpec healthRoute. */ public healthRoute: string; + /** ModelContainerSpec deploymentTimeout. */ + public deploymentTimeout?: (google.protobuf.IDuration|null); + + /** ModelContainerSpec sharedMemorySizeMb. */ + public sharedMemorySizeMb: (number|Long|string); + + /** ModelContainerSpec startupProbe. */ + public startupProbe?: (google.cloud.aiplatform.v1beta1.IProbe|null); + + /** ModelContainerSpec healthProbe. */ + public healthProbe?: (google.cloud.aiplatform.v1beta1.IProbe|null); + /** * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set @@ -91697,6 +98513,218 @@ export namespace google { } } + /** Properties of a Probe. */ + interface IProbe { + + /** Probe exec */ + exec?: (google.cloud.aiplatform.v1beta1.Probe.IExecAction|null); + + /** Probe periodSeconds */ + periodSeconds?: (number|null); + + /** Probe timeoutSeconds */ + timeoutSeconds?: (number|null); + } + + /** Represents a Probe. */ + class Probe implements IProbe { + + /** + * Constructs a new Probe. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IProbe); + + /** Probe exec. */ + public exec?: (google.cloud.aiplatform.v1beta1.Probe.IExecAction|null); + + /** Probe periodSeconds. */ + public periodSeconds: number; + + /** Probe timeoutSeconds. */ + public timeoutSeconds: number; + + /** Probe probeType. */ + public probeType?: "exec"; + + /** + * Creates a new Probe instance using the specified properties. + * @param [properties] Properties to set + * @returns Probe instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IProbe): google.cloud.aiplatform.v1beta1.Probe; + + /** + * Encodes the specified Probe message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.verify|verify} messages. + * @param message Probe message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IProbe, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Probe message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.verify|verify} messages. + * @param message Probe message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IProbe, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Probe message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Probe; + + /** + * Decodes a Probe message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Probe; + + /** + * Verifies a Probe message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Probe message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Probe + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Probe; + + /** + * Creates a plain object from a Probe message. Also converts values to other types if specified. + * @param message Probe + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Probe, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Probe to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Probe + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Probe { + + /** Properties of an ExecAction. */ + interface IExecAction { + + /** ExecAction command */ + command?: (string[]|null); + } + + /** Represents an ExecAction. */ + class ExecAction implements IExecAction { + + /** + * Constructs a new ExecAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Probe.IExecAction); + + /** ExecAction command. */ + public command: string[]; + + /** + * Creates a new ExecAction instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecAction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Probe.IExecAction): google.cloud.aiplatform.v1beta1.Probe.ExecAction; + + /** + * Encodes the specified ExecAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.ExecAction.verify|verify} messages. + * @param message ExecAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Probe.IExecAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.ExecAction.verify|verify} messages. + * @param message ExecAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Probe.IExecAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Probe.ExecAction; + + /** + * Decodes an ExecAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Probe.ExecAction; + + /** + * Verifies an ExecAction message. + * @param message Plain 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 ExecAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Probe.ExecAction; + + /** + * Creates a plain object from an ExecAction message. Also converts values to other types if specified. + * @param message ExecAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Probe.ExecAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a DeployedModelRef. */ interface IDeployedModelRef { @@ -92247,6 +99275,9 @@ export namespace google { /** CustomJobSpec baseOutputDirectory */ baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** CustomJobSpec protectedArtifactLocationId */ + protectedArtifactLocationId?: (string|null); + /** CustomJobSpec tensorboard */ tensorboard?: (string|null); @@ -92293,6 +99324,9 @@ export namespace google { /** CustomJobSpec baseOutputDirectory. */ public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** CustomJobSpec protectedArtifactLocationId. */ + public protectedArtifactLocationId: string; + /** CustomJobSpec tensorboard. */ public tensorboard: string; @@ -103534,6 +110568,9 @@ export namespace google { /** Feature monitoringStatsAnomalies */ monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); + + /** Feature versionColumnName */ + versionColumnName?: (string|null); } /** Represents a Feature. */ @@ -103578,6 +110615,9 @@ export namespace google { /** Feature monitoringStatsAnomalies. */ public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + /** Feature versionColumnName. */ + public versionColumnName: string; + /** * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set @@ -108349,6 +115389,113 @@ export namespace google { type SearchNearestEntitiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse) => void; } + /** FeatureViewDataFormat enum. */ + enum FeatureViewDataFormat { + FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED = 0, + KEY_VALUE = 1, + PROTO_STRUCT = 2 + } + + /** Properties of a FeatureViewDataKey. */ + interface IFeatureViewDataKey { + + /** FeatureViewDataKey key */ + key?: (string|null); + } + + /** Represents a FeatureViewDataKey. */ + class FeatureViewDataKey implements IFeatureViewDataKey { + + /** + * Constructs a new FeatureViewDataKey. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureViewDataKey); + + /** FeatureViewDataKey key. */ + public key?: (string|null); + + /** FeatureViewDataKey keyOneof. */ + public keyOneof?: "key"; + + /** + * Creates a new FeatureViewDataKey instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureViewDataKey instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureViewDataKey): google.cloud.aiplatform.v1beta1.FeatureViewDataKey; + + /** + * Encodes the specified FeatureViewDataKey message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureViewDataKey.verify|verify} messages. + * @param message FeatureViewDataKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureViewDataKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureViewDataKey message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureViewDataKey.verify|verify} messages. + * @param message FeatureViewDataKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureViewDataKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureViewDataKey; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureViewDataKey; + + /** + * Verifies a FeatureViewDataKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureViewDataKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureViewDataKey + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureViewDataKey; + + /** + * Creates a plain object from a FeatureViewDataKey message. Also converts values to other types if specified. + * @param message FeatureViewDataKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureViewDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureViewDataKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureViewDataKey + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FetchFeatureValuesRequest. */ interface IFetchFeatureValuesRequest { @@ -108358,6 +115505,12 @@ export namespace google { /** FetchFeatureValuesRequest featureView */ featureView?: (string|null); + /** FetchFeatureValuesRequest dataKey */ + dataKey?: (google.cloud.aiplatform.v1beta1.IFeatureViewDataKey|null); + + /** FetchFeatureValuesRequest dataFormat */ + dataFormat?: (google.cloud.aiplatform.v1beta1.FeatureViewDataFormat|keyof typeof google.cloud.aiplatform.v1beta1.FeatureViewDataFormat|null); + /** FetchFeatureValuesRequest format */ format?: (google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format|keyof typeof google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format|null); } @@ -108377,6 +115530,12 @@ export namespace google { /** FetchFeatureValuesRequest featureView. */ public featureView: string; + /** FetchFeatureValuesRequest dataKey. */ + public dataKey?: (google.cloud.aiplatform.v1beta1.IFeatureViewDataKey|null); + + /** FetchFeatureValuesRequest dataFormat. */ + public dataFormat: (google.cloud.aiplatform.v1beta1.FeatureViewDataFormat|keyof typeof google.cloud.aiplatform.v1beta1.FeatureViewDataFormat); + /** FetchFeatureValuesRequest format. */ public format: (google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format|keyof typeof google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format); @@ -120157,6 +127316,112 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a StudyTimeConstraint. */ + interface IStudyTimeConstraint { + + /** StudyTimeConstraint maxDuration */ + maxDuration?: (google.protobuf.IDuration|null); + + /** StudyTimeConstraint endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a StudyTimeConstraint. */ + class StudyTimeConstraint implements IStudyTimeConstraint { + + /** + * Constructs a new StudyTimeConstraint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudyTimeConstraint); + + /** StudyTimeConstraint maxDuration. */ + public maxDuration?: (google.protobuf.IDuration|null); + + /** StudyTimeConstraint endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** StudyTimeConstraint constraint. */ + public constraint?: ("maxDuration"|"endTime"); + + /** + * Creates a new StudyTimeConstraint instance using the specified properties. + * @param [properties] Properties to set + * @returns StudyTimeConstraint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudyTimeConstraint): google.cloud.aiplatform.v1beta1.StudyTimeConstraint; + + /** + * Encodes the specified StudyTimeConstraint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify|verify} messages. + * @param message StudyTimeConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStudyTimeConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StudyTimeConstraint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify|verify} messages. + * @param message StudyTimeConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudyTimeConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudyTimeConstraint; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudyTimeConstraint; + + /** + * Verifies a StudyTimeConstraint message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StudyTimeConstraint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StudyTimeConstraint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudyTimeConstraint; + + /** + * Creates a plain object from a StudyTimeConstraint message. Also converts values to other types if specified. + * @param message StudyTimeConstraint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudyTimeConstraint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StudyTimeConstraint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StudyTimeConstraint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a StudySpec. */ interface IStudySpec { @@ -120189,6 +127454,9 @@ export namespace google { /** StudySpec transferLearningConfig */ transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + + /** StudySpec studyStoppingConfig */ + studyStoppingConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig|null); } /** Represents a StudySpec. */ @@ -120230,9 +127498,15 @@ export namespace google { /** StudySpec transferLearningConfig. */ public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** StudySpec studyStoppingConfig. */ + public studyStoppingConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig|null); + /** StudySpec automatedStoppingSpec. */ public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); + /** StudySpec _studyStoppingConfig. */ + public _studyStoppingConfig?: "studyStoppingConfig"; + /** * Creates a new StudySpec instance using the specified properties. * @param [properties] Properties to set @@ -122084,6 +129358,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a StudyStoppingConfig. */ + interface IStudyStoppingConfig { + + /** StudyStoppingConfig shouldStopAsap */ + shouldStopAsap?: (google.protobuf.IBoolValue|null); + + /** StudyStoppingConfig minimumRuntimeConstraint */ + minimumRuntimeConstraint?: (google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig maximumRuntimeConstraint */ + maximumRuntimeConstraint?: (google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig minNumTrials */ + minNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrials */ + maxNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrialsNoProgress */ + maxNumTrialsNoProgress?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxDurationNoProgress */ + maxDurationNoProgress?: (google.protobuf.IDuration|null); + } + + /** Represents a StudyStoppingConfig. */ + class StudyStoppingConfig implements IStudyStoppingConfig { + + /** + * Constructs a new StudyStoppingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig); + + /** StudyStoppingConfig shouldStopAsap. */ + public shouldStopAsap?: (google.protobuf.IBoolValue|null); + + /** StudyStoppingConfig minimumRuntimeConstraint. */ + public minimumRuntimeConstraint?: (google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig maximumRuntimeConstraint. */ + public maximumRuntimeConstraint?: (google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null); + + /** StudyStoppingConfig minNumTrials. */ + public minNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrials. */ + public maxNumTrials?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxNumTrialsNoProgress. */ + public maxNumTrialsNoProgress?: (google.protobuf.IInt32Value|null); + + /** StudyStoppingConfig maxDurationNoProgress. */ + public maxDurationNoProgress?: (google.protobuf.IDuration|null); + + /** + * Creates a new StudyStoppingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns StudyStoppingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig): google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig; + + /** + * Encodes the specified StudyStoppingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @param message StudyStoppingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StudyStoppingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @param message StudyStoppingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig; + + /** + * Verifies a StudyStoppingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StudyStoppingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StudyStoppingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig; + + /** + * Creates a plain object from a StudyStoppingConfig message. Also converts values to other types if specified. + * @param message StudyStoppingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StudyStoppingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StudyStoppingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Algorithm enum. */ enum Algorithm { ALGORITHM_UNSPECIFIED = 0, @@ -122512,6 +129919,9 @@ export namespace google { /** IndexDatapoint restricts */ restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); + /** IndexDatapoint numericRestricts */ + numericRestricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction[]|null); + /** IndexDatapoint crowdingTag */ crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); } @@ -122534,6 +129944,9 @@ export namespace google { /** IndexDatapoint restricts. */ public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; + /** IndexDatapoint numericRestricts. */ + public numericRestricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction[]; + /** IndexDatapoint crowdingTag. */ public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); @@ -122726,6 +130139,143 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NumericRestriction. */ + interface INumericRestriction { + + /** NumericRestriction valueInt */ + valueInt?: (number|Long|string|null); + + /** NumericRestriction valueFloat */ + valueFloat?: (number|null); + + /** NumericRestriction valueDouble */ + valueDouble?: (number|null); + + /** NumericRestriction namespace */ + namespace?: (string|null); + + /** NumericRestriction op */ + op?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator|keyof typeof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator|null); + } + + /** Represents a NumericRestriction. */ + class NumericRestriction implements INumericRestriction { + + /** + * Constructs a new NumericRestriction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction); + + /** NumericRestriction valueInt. */ + public valueInt?: (number|Long|string|null); + + /** NumericRestriction valueFloat. */ + public valueFloat?: (number|null); + + /** NumericRestriction valueDouble. */ + public valueDouble?: (number|null); + + /** NumericRestriction namespace. */ + public namespace: string; + + /** NumericRestriction op. */ + public op: (google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator|keyof typeof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator); + + /** NumericRestriction Value. */ + public Value?: ("valueInt"|"valueFloat"|"valueDouble"); + + /** + * Creates a new NumericRestriction instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericRestriction instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction; + + /** + * Encodes the specified NumericRestriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @param message NumericRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericRestriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @param message NumericRestriction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction; + + /** + * Verifies a NumericRestriction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NumericRestriction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericRestriction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction; + + /** + * Creates a plain object from a NumericRestriction message. Also converts values to other types if specified. + * @param message NumericRestriction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericRestriction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericRestriction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NumericRestriction { + + /** Operator enum. */ + enum Operator { + OPERATOR_UNSPECIFIED = 0, + LESS = 1, + LESS_EQUAL = 2, + EQUAL = 3, + GREATER_EQUAL = 4, + GREATER = 5 + } + } + /** Properties of a CrowdingTag. */ interface ICrowdingTag { @@ -133864,6 +141414,354 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Represents a LlmUtilityService */ + class LlmUtilityService extends $protobuf.rpc.Service { + + /** + * Constructs a new LlmUtilityService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new LlmUtilityService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LlmUtilityService; + + /** + * Calls ComputeTokens. + * @param request ComputeTokensRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ComputeTokensResponse + */ + public computeTokens(request: google.cloud.aiplatform.v1beta1.IComputeTokensRequest, callback: google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokensCallback): void; + + /** + * Calls ComputeTokens. + * @param request ComputeTokensRequest message or plain object + * @returns Promise + */ + public computeTokens(request: google.cloud.aiplatform.v1beta1.IComputeTokensRequest): Promise; + } + + namespace LlmUtilityService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|computeTokens}. + * @param error Error, if any + * @param [response] ComputeTokensResponse + */ + type ComputeTokensCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ComputeTokensResponse) => void; + } + + /** Properties of a ComputeTokensRequest. */ + interface IComputeTokensRequest { + + /** ComputeTokensRequest endpoint */ + endpoint?: (string|null); + + /** ComputeTokensRequest instances */ + instances?: (google.protobuf.IValue[]|null); + } + + /** Represents a ComputeTokensRequest. */ + class ComputeTokensRequest implements IComputeTokensRequest { + + /** + * Constructs a new ComputeTokensRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IComputeTokensRequest); + + /** ComputeTokensRequest endpoint. */ + public endpoint: string; + + /** ComputeTokensRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** + * Creates a new ComputeTokensRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ComputeTokensRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IComputeTokensRequest): google.cloud.aiplatform.v1beta1.ComputeTokensRequest; + + /** + * Encodes the specified ComputeTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensRequest.verify|verify} messages. + * @param message ComputeTokensRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IComputeTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComputeTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensRequest.verify|verify} messages. + * @param message ComputeTokensRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IComputeTokensRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComputeTokensRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComputeTokensRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ComputeTokensRequest; + + /** + * Decodes a ComputeTokensRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComputeTokensRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ComputeTokensRequest; + + /** + * Verifies a ComputeTokensRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComputeTokensRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComputeTokensRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ComputeTokensRequest; + + /** + * Creates a plain object from a ComputeTokensRequest message. Also converts values to other types if specified. + * @param message ComputeTokensRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ComputeTokensRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComputeTokensRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComputeTokensRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TokensInfo. */ + interface ITokensInfo { + + /** TokensInfo tokens */ + tokens?: (Uint8Array[]|null); + + /** TokensInfo tokenIds */ + tokenIds?: ((number|Long|string)[]|null); + } + + /** Represents a TokensInfo. */ + class TokensInfo implements ITokensInfo { + + /** + * Constructs a new TokensInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ITokensInfo); + + /** TokensInfo tokens. */ + public tokens: Uint8Array[]; + + /** TokensInfo tokenIds. */ + public tokenIds: (number|Long|string)[]; + + /** + * Creates a new TokensInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TokensInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ITokensInfo): google.cloud.aiplatform.v1beta1.TokensInfo; + + /** + * Encodes the specified TokensInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TokensInfo.verify|verify} messages. + * @param message TokensInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ITokensInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TokensInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TokensInfo.verify|verify} messages. + * @param message TokensInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITokensInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TokensInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TokensInfo; + + /** + * Decodes a TokensInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TokensInfo; + + /** + * Verifies a TokensInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TokensInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TokensInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TokensInfo; + + /** + * Creates a plain object from a TokensInfo message. Also converts values to other types if specified. + * @param message TokensInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.TokensInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TokensInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TokensInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ComputeTokensResponse. */ + interface IComputeTokensResponse { + + /** ComputeTokensResponse tokensInfo */ + tokensInfo?: (google.cloud.aiplatform.v1beta1.ITokensInfo[]|null); + } + + /** Represents a ComputeTokensResponse. */ + class ComputeTokensResponse implements IComputeTokensResponse { + + /** + * Constructs a new ComputeTokensResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IComputeTokensResponse); + + /** ComputeTokensResponse tokensInfo. */ + public tokensInfo: google.cloud.aiplatform.v1beta1.ITokensInfo[]; + + /** + * Creates a new ComputeTokensResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ComputeTokensResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IComputeTokensResponse): google.cloud.aiplatform.v1beta1.ComputeTokensResponse; + + /** + * Encodes the specified ComputeTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensResponse.verify|verify} messages. + * @param message ComputeTokensResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IComputeTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComputeTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensResponse.verify|verify} messages. + * @param message ComputeTokensResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IComputeTokensResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComputeTokensResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComputeTokensResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ComputeTokensResponse; + + /** + * Decodes a ComputeTokensResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComputeTokensResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ComputeTokensResponse; + + /** + * Verifies a ComputeTokensResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComputeTokensResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComputeTokensResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ComputeTokensResponse; + + /** + * Creates a plain object from a ComputeTokensResponse message. Also converts values to other types if specified. + * @param message ComputeTokensResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ComputeTokensResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComputeTokensResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComputeTokensResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a MatchService */ class MatchService extends $protobuf.rpc.Service { @@ -152736,6 +160634,20 @@ export namespace google { */ public deletePipelineJob(request: google.cloud.aiplatform.v1beta1.IDeletePipelineJobRequest): Promise; + /** + * Calls BatchDeletePipelineJobs. + * @param request BatchDeletePipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, callback: google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback): void; + + /** + * Calls BatchDeletePipelineJobs. + * @param request BatchDeletePipelineJobsRequest message or plain object + * @returns Promise + */ + public batchDeletePipelineJobs(request: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): Promise; + /** * Calls CancelPipelineJob. * @param request CancelPipelineJobRequest message or plain object @@ -152816,6 +160728,13 @@ export namespace google { */ type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchDeletePipelineJobsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. * @param error Error, if any @@ -153975,6 +161894,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BatchDeletePipelineJobsRequest. */ + interface IBatchDeletePipelineJobsRequest { + + /** BatchDeletePipelineJobsRequest parent */ + parent?: (string|null); + + /** BatchDeletePipelineJobsRequest names */ + names?: (string[]|null); + } + + /** Represents a BatchDeletePipelineJobsRequest. */ + class BatchDeletePipelineJobsRequest implements IBatchDeletePipelineJobsRequest { + + /** + * Constructs a new BatchDeletePipelineJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest); + + /** BatchDeletePipelineJobsRequest parent. */ + public parent: string; + + /** BatchDeletePipelineJobsRequest names. */ + public names: string[]; + + /** + * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchDeletePipelineJobsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + + /** + * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @param message BatchDeletePipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @param message BatchDeletePipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchDeletePipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + + /** + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchDeletePipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + + /** + * Verifies a BatchDeletePipelineJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchDeletePipelineJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest; + + /** + * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. + * @param message BatchDeletePipelineJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchDeletePipelineJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchDeletePipelineJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BatchDeletePipelineJobsResponse. */ + interface IBatchDeletePipelineJobsResponse { + + /** BatchDeletePipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1beta1.IPipelineJob[]|null); + } + + /** Represents a BatchDeletePipelineJobsResponse. */ + class BatchDeletePipelineJobsResponse implements IBatchDeletePipelineJobsResponse { + + /** + * Constructs a new BatchDeletePipelineJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse); + + /** BatchDeletePipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1beta1.IPipelineJob[]; + + /** + * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchDeletePipelineJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + + /** + * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @param message BatchDeletePipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @param message BatchDeletePipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchDeletePipelineJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + + /** + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchDeletePipelineJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + + /** + * Verifies a BatchDeletePipelineJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchDeletePipelineJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse; + + /** + * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. + * @param message BatchDeletePipelineJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchDeletePipelineJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchDeletePipelineJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CancelPipelineJobRequest. */ interface ICancelPipelineJobRequest { @@ -185078,206 +193197,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Any. */ - interface IAny { + /** Properties of a Duration. */ + interface IDuration { - /** Any type_url */ - type_url?: (string|null); + /** Duration seconds */ + seconds?: (number|Long|string|null); - /** Any value */ - value?: (Uint8Array|string|null); + /** Duration nanos */ + nanos?: (number|null); } - /** Represents an Any. */ - class Any implements IAny { + /** Represents a Duration. */ + class Duration implements IDuration { /** - * Constructs a new Any. + * Constructs a new Duration. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IAny); + constructor(properties?: google.protobuf.IDuration); - /** Any type_url. */ - public type_url: string; + /** Duration seconds. */ + public seconds: (number|Long|string); - /** Any value. */ - public value: (Uint8Array|string); + /** Duration nanos. */ + public nanos: number; /** - * Creates a new Any instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns Any instance + * @returns Duration instance */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Any + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Any + * @returns Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; /** - * Verifies an Any message. + * Verifies a Duration message. * @param message Plain 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 Any message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Any + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Any to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Any + * Gets the default type url for Duration * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Duration. */ - interface IDuration { + /** Properties of an Any. */ + interface IAny { - /** Duration seconds */ - seconds?: (number|Long|string|null); + /** Any type_url */ + type_url?: (string|null); - /** Duration nanos */ - nanos?: (number|null); + /** Any value */ + value?: (Uint8Array|string|null); } - /** Represents a Duration. */ - class Duration implements IDuration { + /** Represents an Any. */ + class Any implements IAny { /** - * Constructs a new Duration. + * Constructs a new Any. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDuration); + constructor(properties?: google.protobuf.IAny); - /** Duration seconds. */ - public seconds: (number|Long|string); + /** Any type_url. */ + public type_url: string; - /** Duration nanos. */ - public nanos: number; + /** Any value. */ + public value: (Uint8Array|string); /** - * Creates a new Duration instance using the specified properties. + * Creates a new Any instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns Any instance */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Duration + * @returns Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Duration + * @returns Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; /** - * Verifies a Duration message. + * Verifies an Any message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Duration + * @returns Any */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this Any to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Duration + * Gets the default type url for Any * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index d1c76db4b23..64484430144 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -13954,6 +13954,7 @@ * @property {string|null} [machineType] MachineSpec machineType * @property {google.cloud.aiplatform.v1.AcceleratorType|null} [acceleratorType] MachineSpec acceleratorType * @property {number|null} [acceleratorCount] MachineSpec acceleratorCount + * @property {string|null} [tpuTopology] MachineSpec tpuTopology */ /** @@ -13995,6 +13996,14 @@ */ MachineSpec.prototype.acceleratorCount = 0; + /** + * MachineSpec tpuTopology. + * @member {string} tpuTopology + * @memberof google.cloud.aiplatform.v1.MachineSpec + * @instance + */ + MachineSpec.prototype.tpuTopology = ""; + /** * Creates a new MachineSpec instance using the specified properties. * @function create @@ -14025,6 +14034,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.acceleratorType); if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.acceleratorCount); + if (message.tpuTopology != null && Object.hasOwnProperty.call(message, "tpuTopology")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.tpuTopology); return writer; }; @@ -14071,6 +14082,10 @@ message.acceleratorCount = reader.int32(); break; } + case 4: { + message.tpuTopology = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -14130,6 +14145,9 @@ if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) if (!$util.isInteger(message.acceleratorCount)) return "acceleratorCount: integer expected"; + if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) + if (!$util.isString(message.tpuTopology)) + return "tpuTopology: string expected"; return null; }; @@ -14205,6 +14223,8 @@ } if (object.acceleratorCount != null) message.acceleratorCount = object.acceleratorCount | 0; + if (object.tpuTopology != null) + message.tpuTopology = String(object.tpuTopology); return message; }; @@ -14225,6 +14245,7 @@ object.machineType = ""; object.acceleratorType = options.enums === String ? "ACCELERATOR_TYPE_UNSPECIFIED" : 0; object.acceleratorCount = 0; + object.tpuTopology = ""; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -14232,6 +14253,8 @@ object.acceleratorType = options.enums === String ? $root.google.cloud.aiplatform.v1.AcceleratorType[message.acceleratorType] === undefined ? message.acceleratorType : $root.google.cloud.aiplatform.v1.AcceleratorType[message.acceleratorType] : message.acceleratorType; if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) object.acceleratorCount = message.acceleratorCount; + if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) + object.tpuTopology = message.tpuTopology; return object; }; @@ -18719,6 +18742,10 @@ * @property {Array.|null} [ports] ModelContainerSpec ports * @property {string|null} [predictRoute] ModelContainerSpec predictRoute * @property {string|null} [healthRoute] ModelContainerSpec healthRoute + * @property {google.protobuf.IDuration|null} [deploymentTimeout] ModelContainerSpec deploymentTimeout + * @property {number|Long|null} [sharedMemorySizeMb] ModelContainerSpec sharedMemorySizeMb + * @property {google.cloud.aiplatform.v1.IProbe|null} [startupProbe] ModelContainerSpec startupProbe + * @property {google.cloud.aiplatform.v1.IProbe|null} [healthProbe] ModelContainerSpec healthProbe */ /** @@ -18796,6 +18823,38 @@ */ ModelContainerSpec.prototype.healthRoute = ""; + /** + * ModelContainerSpec deploymentTimeout. + * @member {google.protobuf.IDuration|null|undefined} deploymentTimeout + * @memberof google.cloud.aiplatform.v1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.deploymentTimeout = null; + + /** + * ModelContainerSpec sharedMemorySizeMb. + * @member {number|Long} sharedMemorySizeMb + * @memberof google.cloud.aiplatform.v1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.sharedMemorySizeMb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ModelContainerSpec startupProbe. + * @member {google.cloud.aiplatform.v1.IProbe|null|undefined} startupProbe + * @memberof google.cloud.aiplatform.v1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.startupProbe = null; + + /** + * ModelContainerSpec healthProbe. + * @member {google.cloud.aiplatform.v1.IProbe|null|undefined} healthProbe + * @memberof google.cloud.aiplatform.v1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.healthProbe = null; + /** * Creates a new ModelContainerSpec instance using the specified properties. * @function create @@ -18838,6 +18897,14 @@ writer.uint32(/* id 6, wireType 2 =*/50).string(message.predictRoute); if (message.healthRoute != null && Object.hasOwnProperty.call(message, "healthRoute")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthRoute); + if (message.deploymentTimeout != null && Object.hasOwnProperty.call(message, "deploymentTimeout")) + $root.google.protobuf.Duration.encode(message.deploymentTimeout, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.sharedMemorySizeMb != null && Object.hasOwnProperty.call(message, "sharedMemorySizeMb")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.sharedMemorySizeMb); + if (message.startupProbe != null && Object.hasOwnProperty.call(message, "startupProbe")) + $root.google.cloud.aiplatform.v1.Probe.encode(message.startupProbe, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.healthProbe != null && Object.hasOwnProperty.call(message, "healthProbe")) + $root.google.cloud.aiplatform.v1.Probe.encode(message.healthProbe, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -18908,6 +18975,22 @@ message.healthRoute = reader.string(); break; } + case 10: { + message.deploymentTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + message.sharedMemorySizeMb = reader.int64(); + break; + } + case 12: { + message.startupProbe = $root.google.cloud.aiplatform.v1.Probe.decode(reader, reader.uint32()); + break; + } + case 13: { + message.healthProbe = $root.google.cloud.aiplatform.v1.Probe.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -18984,6 +19067,24 @@ if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) if (!$util.isString(message.healthRoute)) return "healthRoute: string expected"; + if (message.deploymentTimeout != null && message.hasOwnProperty("deploymentTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.deploymentTimeout); + if (error) + return "deploymentTimeout." + error; + } + if (message.sharedMemorySizeMb != null && message.hasOwnProperty("sharedMemorySizeMb")) + if (!$util.isInteger(message.sharedMemorySizeMb) && !(message.sharedMemorySizeMb && $util.isInteger(message.sharedMemorySizeMb.low) && $util.isInteger(message.sharedMemorySizeMb.high))) + return "sharedMemorySizeMb: integer|Long expected"; + if (message.startupProbe != null && message.hasOwnProperty("startupProbe")) { + var error = $root.google.cloud.aiplatform.v1.Probe.verify(message.startupProbe); + if (error) + return "startupProbe." + error; + } + if (message.healthProbe != null && message.hasOwnProperty("healthProbe")) { + var error = $root.google.cloud.aiplatform.v1.Probe.verify(message.healthProbe); + if (error) + return "healthProbe." + error; + } return null; }; @@ -19039,6 +19140,30 @@ message.predictRoute = String(object.predictRoute); if (object.healthRoute != null) message.healthRoute = String(object.healthRoute); + if (object.deploymentTimeout != null) { + if (typeof object.deploymentTimeout !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelContainerSpec.deploymentTimeout: object expected"); + message.deploymentTimeout = $root.google.protobuf.Duration.fromObject(object.deploymentTimeout); + } + if (object.sharedMemorySizeMb != null) + if ($util.Long) + (message.sharedMemorySizeMb = $util.Long.fromValue(object.sharedMemorySizeMb)).unsigned = false; + else if (typeof object.sharedMemorySizeMb === "string") + message.sharedMemorySizeMb = parseInt(object.sharedMemorySizeMb, 10); + else if (typeof object.sharedMemorySizeMb === "number") + message.sharedMemorySizeMb = object.sharedMemorySizeMb; + else if (typeof object.sharedMemorySizeMb === "object") + message.sharedMemorySizeMb = new $util.LongBits(object.sharedMemorySizeMb.low >>> 0, object.sharedMemorySizeMb.high >>> 0).toNumber(); + if (object.startupProbe != null) { + if (typeof object.startupProbe !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelContainerSpec.startupProbe: object expected"); + message.startupProbe = $root.google.cloud.aiplatform.v1.Probe.fromObject(object.startupProbe); + } + if (object.healthProbe != null) { + if (typeof object.healthProbe !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelContainerSpec.healthProbe: object expected"); + message.healthProbe = $root.google.cloud.aiplatform.v1.Probe.fromObject(object.healthProbe); + } return message; }; @@ -19065,6 +19190,14 @@ object.imageUri = ""; object.predictRoute = ""; object.healthRoute = ""; + object.deploymentTimeout = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sharedMemorySizeMb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sharedMemorySizeMb = options.longs === String ? "0" : 0; + object.startupProbe = null; + object.healthProbe = null; } if (message.imageUri != null && message.hasOwnProperty("imageUri")) object.imageUri = message.imageUri; @@ -19092,6 +19225,17 @@ object.predictRoute = message.predictRoute; if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) object.healthRoute = message.healthRoute; + if (message.deploymentTimeout != null && message.hasOwnProperty("deploymentTimeout")) + object.deploymentTimeout = $root.google.protobuf.Duration.toObject(message.deploymentTimeout, options); + if (message.sharedMemorySizeMb != null && message.hasOwnProperty("sharedMemorySizeMb")) + if (typeof message.sharedMemorySizeMb === "number") + object.sharedMemorySizeMb = options.longs === String ? String(message.sharedMemorySizeMb) : message.sharedMemorySizeMb; + else + object.sharedMemorySizeMb = options.longs === String ? $util.Long.prototype.toString.call(message.sharedMemorySizeMb) : options.longs === Number ? new $util.LongBits(message.sharedMemorySizeMb.low >>> 0, message.sharedMemorySizeMb.high >>> 0).toNumber() : message.sharedMemorySizeMb; + if (message.startupProbe != null && message.hasOwnProperty("startupProbe")) + object.startupProbe = $root.google.cloud.aiplatform.v1.Probe.toObject(message.startupProbe, options); + if (message.healthProbe != null && message.hasOwnProperty("healthProbe")) + object.healthProbe = $root.google.cloud.aiplatform.v1.Probe.toObject(message.healthProbe, options); return object; }; @@ -19615,6 +19759,500 @@ return ModelSourceInfo; })(); + v1.Probe = (function() { + + /** + * Properties of a Probe. + * @memberof google.cloud.aiplatform.v1 + * @interface IProbe + * @property {google.cloud.aiplatform.v1.Probe.IExecAction|null} [exec] Probe exec + * @property {number|null} [periodSeconds] Probe periodSeconds + * @property {number|null} [timeoutSeconds] Probe timeoutSeconds + */ + + /** + * Constructs a new Probe. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Probe. + * @implements IProbe + * @constructor + * @param {google.cloud.aiplatform.v1.IProbe=} [properties] Properties to set + */ + function Probe(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]]; + } + + /** + * Probe exec. + * @member {google.cloud.aiplatform.v1.Probe.IExecAction|null|undefined} exec + * @memberof google.cloud.aiplatform.v1.Probe + * @instance + */ + Probe.prototype.exec = null; + + /** + * Probe periodSeconds. + * @member {number} periodSeconds + * @memberof google.cloud.aiplatform.v1.Probe + * @instance + */ + Probe.prototype.periodSeconds = 0; + + /** + * Probe timeoutSeconds. + * @member {number} timeoutSeconds + * @memberof google.cloud.aiplatform.v1.Probe + * @instance + */ + Probe.prototype.timeoutSeconds = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Probe probeType. + * @member {"exec"|undefined} probeType + * @memberof google.cloud.aiplatform.v1.Probe + * @instance + */ + Object.defineProperty(Probe.prototype, "probeType", { + get: $util.oneOfGetter($oneOfFields = ["exec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Probe instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {google.cloud.aiplatform.v1.IProbe=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Probe} Probe instance + */ + Probe.create = function create(properties) { + return new Probe(properties); + }; + + /** + * Encodes the specified Probe message. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {google.cloud.aiplatform.v1.IProbe} message Probe message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Probe.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exec != null && Object.hasOwnProperty.call(message, "exec")) + $root.google.cloud.aiplatform.v1.Probe.ExecAction.encode(message.exec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.periodSeconds != null && Object.hasOwnProperty.call(message, "periodSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.periodSeconds); + if (message.timeoutSeconds != null && Object.hasOwnProperty.call(message, "timeoutSeconds")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.timeoutSeconds); + return writer; + }; + + /** + * Encodes the specified Probe message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {google.cloud.aiplatform.v1.IProbe} message Probe message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Probe.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Probe message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Probe} Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Probe.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Probe(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exec = $root.google.cloud.aiplatform.v1.Probe.ExecAction.decode(reader, reader.uint32()); + break; + } + case 2: { + message.periodSeconds = reader.int32(); + break; + } + case 3: { + message.timeoutSeconds = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Probe message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Probe} Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Probe.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Probe message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Probe.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.exec != null && message.hasOwnProperty("exec")) { + properties.probeType = 1; + { + var error = $root.google.cloud.aiplatform.v1.Probe.ExecAction.verify(message.exec); + if (error) + return "exec." + error; + } + } + if (message.periodSeconds != null && message.hasOwnProperty("periodSeconds")) + if (!$util.isInteger(message.periodSeconds)) + return "periodSeconds: integer expected"; + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + if (!$util.isInteger(message.timeoutSeconds)) + return "timeoutSeconds: integer expected"; + return null; + }; + + /** + * Creates a Probe message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Probe} Probe + */ + Probe.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Probe) + return object; + var message = new $root.google.cloud.aiplatform.v1.Probe(); + if (object.exec != null) { + if (typeof object.exec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Probe.exec: object expected"); + message.exec = $root.google.cloud.aiplatform.v1.Probe.ExecAction.fromObject(object.exec); + } + if (object.periodSeconds != null) + message.periodSeconds = object.periodSeconds | 0; + if (object.timeoutSeconds != null) + message.timeoutSeconds = object.timeoutSeconds | 0; + return message; + }; + + /** + * Creates a plain object from a Probe message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {google.cloud.aiplatform.v1.Probe} message Probe + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Probe.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.periodSeconds = 0; + object.timeoutSeconds = 0; + } + if (message.exec != null && message.hasOwnProperty("exec")) { + object.exec = $root.google.cloud.aiplatform.v1.Probe.ExecAction.toObject(message.exec, options); + if (options.oneofs) + object.probeType = "exec"; + } + if (message.periodSeconds != null && message.hasOwnProperty("periodSeconds")) + object.periodSeconds = message.periodSeconds; + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + object.timeoutSeconds = message.timeoutSeconds; + return object; + }; + + /** + * Converts this Probe to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Probe + * @instance + * @returns {Object.} JSON object + */ + Probe.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Probe + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Probe + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Probe.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Probe"; + }; + + Probe.ExecAction = (function() { + + /** + * Properties of an ExecAction. + * @memberof google.cloud.aiplatform.v1.Probe + * @interface IExecAction + * @property {Array.|null} [command] ExecAction command + */ + + /** + * Constructs a new ExecAction. + * @memberof google.cloud.aiplatform.v1.Probe + * @classdesc Represents an ExecAction. + * @implements IExecAction + * @constructor + * @param {google.cloud.aiplatform.v1.Probe.IExecAction=} [properties] Properties to set + */ + function ExecAction(properties) { + this.command = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecAction command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @instance + */ + ExecAction.prototype.command = $util.emptyArray; + + /** + * Creates a new ExecAction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1.Probe.IExecAction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Probe.ExecAction} ExecAction instance + */ + ExecAction.create = function create(properties) { + return new ExecAction(properties); + }; + + /** + * Encodes the specified ExecAction message. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.ExecAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1.Probe.IExecAction} message ExecAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.command[i]); + return writer; + }; + + /** + * Encodes the specified ExecAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Probe.ExecAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1.Probe.IExecAction} message ExecAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Probe.ExecAction} ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecAction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Probe.ExecAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Probe.ExecAction} ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecAction message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + return null; + }; + + /** + * Creates an ExecAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Probe.ExecAction} ExecAction + */ + ExecAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Probe.ExecAction) + return object; + var message = new $root.google.cloud.aiplatform.v1.Probe.ExecAction(); + if (object.command) { + if (!Array.isArray(object.command)) + throw TypeError(".google.cloud.aiplatform.v1.Probe.ExecAction.command: array expected"); + message.command = []; + for (var i = 0; i < object.command.length; ++i) + message.command[i] = String(object.command[i]); + } + return message; + }; + + /** + * Creates a plain object from an ExecAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1.Probe.ExecAction} message ExecAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.command = []; + if (message.command && message.command.length) { + object.command = []; + for (var j = 0; j < message.command.length; ++j) + object.command[j] = message.command[j]; + } + return object; + }; + + /** + * Converts this ExecAction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @instance + * @returns {Object.} JSON object + */ + ExecAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExecAction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Probe.ExecAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExecAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Probe.ExecAction"; + }; + + return ExecAction; + })(); + + return Probe; + })(); + v1.DeployedModelRef = (function() { /** @@ -21215,6 +21853,7 @@ * @property {string|null} [network] CustomJobSpec network * @property {Array.|null} [reservedIpRanges] CustomJobSpec reservedIpRanges * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory + * @property {string|null} [protectedArtifactLocationId] CustomJobSpec protectedArtifactLocationId * @property {string|null} [tensorboard] CustomJobSpec tensorboard * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess * @property {boolean|null} [enableDashboardAccess] CustomJobSpec enableDashboardAccess @@ -21287,6 +21926,14 @@ */ CustomJobSpec.prototype.baseOutputDirectory = null; + /** + * CustomJobSpec protectedArtifactLocationId. + * @member {string} protectedArtifactLocationId + * @memberof google.cloud.aiplatform.v1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.protectedArtifactLocationId = ""; + /** * CustomJobSpec tensorboard. * @member {string} tensorboard @@ -21375,6 +22022,8 @@ writer.uint32(/* id 17, wireType 2 =*/138).string(message.experiment); if (message.experimentRun != null && Object.hasOwnProperty.call(message, "experimentRun")) writer.uint32(/* id 18, wireType 2 =*/146).string(message.experimentRun); + if (message.protectedArtifactLocationId != null && Object.hasOwnProperty.call(message, "protectedArtifactLocationId")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.protectedArtifactLocationId); return writer; }; @@ -21437,6 +22086,10 @@ message.baseOutputDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); break; } + case 19: { + message.protectedArtifactLocationId = reader.string(); + break; + } case 7: { message.tensorboard = reader.string(); break; @@ -21524,6 +22177,9 @@ if (error) return "baseOutputDirectory." + error; } + if (message.protectedArtifactLocationId != null && message.hasOwnProperty("protectedArtifactLocationId")) + if (!$util.isString(message.protectedArtifactLocationId)) + return "protectedArtifactLocationId: string expected"; if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) if (!$util.isString(message.tensorboard)) return "tensorboard: string expected"; @@ -21585,6 +22241,8 @@ throw TypeError(".google.cloud.aiplatform.v1.CustomJobSpec.baseOutputDirectory: object expected"); message.baseOutputDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.baseOutputDirectory); } + if (object.protectedArtifactLocationId != null) + message.protectedArtifactLocationId = String(object.protectedArtifactLocationId); if (object.tensorboard != null) message.tensorboard = String(object.tensorboard); if (object.enableWebAccess != null) @@ -21625,6 +22283,7 @@ object.enableDashboardAccess = false; object.experiment = ""; object.experimentRun = ""; + object.protectedArtifactLocationId = ""; } if (message.workerPoolSpecs && message.workerPoolSpecs.length) { object.workerPoolSpecs = []; @@ -21654,6 +22313,8 @@ object.experiment = message.experiment; if (message.experimentRun != null && message.hasOwnProperty("experimentRun")) object.experimentRun = message.experimentRun; + if (message.protectedArtifactLocationId != null && message.hasOwnProperty("protectedArtifactLocationId")) + object.protectedArtifactLocationId = message.protectedArtifactLocationId; return object; }; @@ -46310,6 +46971,7 @@ * @property {string|null} [etag] Feature etag * @property {boolean|null} [disableMonitoring] Feature disableMonitoring * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + * @property {string|null} [versionColumnName] Feature versionColumnName */ /** @@ -46401,6 +47063,14 @@ */ Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + /** + * Feature versionColumnName. + * @member {string} versionColumnName + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.versionColumnName = ""; + /** * Creates a new Feature instance using the specified properties. * @function create @@ -46445,6 +47115,8 @@ $root.google.cloud.aiplatform.v1.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.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); return writer; }; @@ -46536,6 +47208,10 @@ message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); break; } + case 106: { + message.versionColumnName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -46626,6 +47302,9 @@ return "monitoringStatsAnomalies." + error; } } + if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) + if (!$util.isString(message.versionColumnName)) + return "versionColumnName: string expected"; return null; }; @@ -46724,6 +47403,8 @@ message.monitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.fromObject(object.monitoringStatsAnomalies[i]); } } + if (object.versionColumnName != null) + message.versionColumnName = String(object.versionColumnName); return message; }; @@ -46752,6 +47433,7 @@ object.updateTime = null; object.etag = ""; object.disableMonitoring = false; + object.versionColumnName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -46778,6 +47460,8 @@ } if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) object.disableMonitoring = message.disableMonitoring; + if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) + object.versionColumnName = message.versionColumnName; return object; }; @@ -47464,243 +48148,31 @@ return FeatureStatsAnomaly; })(); - v1.IdMatcher = (function() { - - /** - * Properties of an IdMatcher. - * @memberof google.cloud.aiplatform.v1 - * @interface IIdMatcher - * @property {Array.|null} [ids] IdMatcher ids - */ - - /** - * Constructs a new IdMatcher. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IdMatcher. - * @implements IIdMatcher - * @constructor - * @param {google.cloud.aiplatform.v1.IIdMatcher=} [properties] Properties to set - */ - function IdMatcher(properties) { - this.ids = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IdMatcher ids. - * @member {Array.} ids - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @instance - */ - IdMatcher.prototype.ids = $util.emptyArray; + v1.FeatureGroup = (function() { /** - * Creates a new IdMatcher instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {google.cloud.aiplatform.v1.IIdMatcher=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher instance - */ - IdMatcher.create = function create(properties) { - return new IdMatcher(properties); - }; - - /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {google.cloud.aiplatform.v1.IIdMatcher} message IdMatcher message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IdMatcher.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); - return writer; - }; - - /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {google.cloud.aiplatform.v1.IIdMatcher} message IdMatcher message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an IdMatcher message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IdMatcher.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IdMatcher(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IdMatcher.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IdMatcher message. - * @function verify - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IdMatcher.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; - } - return null; - }; - - /** - * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher - */ - IdMatcher.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IdMatcher) - return object; - var message = new $root.google.cloud.aiplatform.v1.IdMatcher(); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".google.cloud.aiplatform.v1.IdMatcher.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) - message.ids[i] = String(object.ids[i]); - } - return message; - }; - - /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {google.cloud.aiplatform.v1.IdMatcher} message IdMatcher - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IdMatcher.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.ids = []; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = message.ids[j]; - } - return object; - }; - - /** - * Converts this IdMatcher to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @instance - * @returns {Object.} JSON object - */ - IdMatcher.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for IdMatcher - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IdMatcher - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IdMatcher.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IdMatcher"; - }; - - return IdMatcher; - })(); - - v1.FeatureSelector = (function() { - - /** - * Properties of a FeatureSelector. + * Properties of a FeatureGroup. * @memberof google.cloud.aiplatform.v1 - * @interface IFeatureSelector - * @property {google.cloud.aiplatform.v1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher + * @interface IFeatureGroup + * @property {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery|null} [bigQuery] FeatureGroup bigQuery + * @property {string|null} [name] FeatureGroup name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureGroup createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] FeatureGroup updateTime + * @property {string|null} [etag] FeatureGroup etag + * @property {Object.|null} [labels] FeatureGroup labels + * @property {string|null} [description] FeatureGroup description */ /** - * Constructs a new FeatureSelector. + * Constructs a new FeatureGroup. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeatureSelector. - * @implements IFeatureSelector + * @classdesc Represents a FeatureGroup. + * @implements IFeatureGroup * @constructor - * @param {google.cloud.aiplatform.v1.IFeatureSelector=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureGroup=} [properties] Properties to set */ - function FeatureSelector(properties) { + function FeatureGroup(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47708,388 +48180,169 @@ } /** - * FeatureSelector idMatcher. - * @member {google.cloud.aiplatform.v1.IIdMatcher|null|undefined} idMatcher - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @instance - */ - FeatureSelector.prototype.idMatcher = null; - - /** - * Creates a new FeatureSelector instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {google.cloud.aiplatform.v1.IFeatureSelector=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector instance - */ - FeatureSelector.create = function create(properties) { - return new FeatureSelector(properties); - }; - - /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {google.cloud.aiplatform.v1.IFeatureSelector} message FeatureSelector message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSelector.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.idMatcher != null && Object.hasOwnProperty.call(message, "idMatcher")) - $root.google.cloud.aiplatform.v1.IdMatcher.encode(message.idMatcher, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {google.cloud.aiplatform.v1.IFeatureSelector} message FeatureSelector message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSelector message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSelector.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureSelector(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSelector.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSelector message. - * @function verify - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSelector.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) { - var error = $root.google.cloud.aiplatform.v1.IdMatcher.verify(message.idMatcher); - if (error) - return "idMatcher." + error; - } - return null; - }; - - /** - * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector - */ - FeatureSelector.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FeatureSelector) - return object; - var message = new $root.google.cloud.aiplatform.v1.FeatureSelector(); - if (object.idMatcher != null) { - if (typeof object.idMatcher !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureSelector.idMatcher: object expected"); - message.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.fromObject(object.idMatcher); - } - return message; - }; - - /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {google.cloud.aiplatform.v1.FeatureSelector} message FeatureSelector - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSelector.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.idMatcher = null; - if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) - object.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.toObject(message.idMatcher, options); - return object; - }; - - /** - * Converts this FeatureSelector to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.FeatureSelector + * FeatureGroup bigQuery. + * @member {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery|null|undefined} bigQuery + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance - * @returns {Object.} JSON object - */ - FeatureSelector.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSelector - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FeatureSelector - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url */ - FeatureSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureSelector"; - }; - - return FeatureSelector; - })(); - - v1.Featurestore = (function() { - - /** - * Properties of a Featurestore. - * @memberof google.cloud.aiplatform.v1 - * @interface IFeaturestore - * @property {string|null} [name] Featurestore name - * @property {google.protobuf.ITimestamp|null} [createTime] Featurestore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Featurestore updateTime - * @property {string|null} [etag] Featurestore etag - * @property {Object.|null} [labels] Featurestore labels - * @property {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null} [onlineServingConfig] Featurestore onlineServingConfig - * @property {google.cloud.aiplatform.v1.Featurestore.State|null} [state] Featurestore state - * @property {number|null} [onlineStorageTtlDays] Featurestore onlineStorageTtlDays - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec - */ - - /** - * Constructs a new Featurestore. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Featurestore. - * @implements IFeaturestore - * @constructor - * @param {google.cloud.aiplatform.v1.IFeaturestore=} [properties] Properties to set - */ - function Featurestore(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]]; - } + FeatureGroup.prototype.bigQuery = null; /** - * Featurestore name. + * FeatureGroup name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.name = ""; + FeatureGroup.prototype.name = ""; /** - * Featurestore createTime. + * FeatureGroup createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.createTime = null; + FeatureGroup.prototype.createTime = null; /** - * Featurestore updateTime. + * FeatureGroup updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.updateTime = null; + FeatureGroup.prototype.updateTime = null; /** - * Featurestore etag. + * FeatureGroup etag. * @member {string} etag - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.etag = ""; + FeatureGroup.prototype.etag = ""; /** - * Featurestore labels. + * FeatureGroup labels. * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.Featurestore - * @instance - */ - Featurestore.prototype.labels = $util.emptyObject; - - /** - * Featurestore onlineServingConfig. - * @member {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.onlineServingConfig = null; + FeatureGroup.prototype.labels = $util.emptyObject; /** - * Featurestore state. - * @member {google.cloud.aiplatform.v1.Featurestore.State} state - * @memberof google.cloud.aiplatform.v1.Featurestore + * FeatureGroup description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.state = 0; + FeatureGroup.prototype.description = ""; - /** - * Featurestore onlineStorageTtlDays. - * @member {number} onlineStorageTtlDays - * @memberof google.cloud.aiplatform.v1.Featurestore - * @instance - */ - Featurestore.prototype.onlineStorageTtlDays = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Featurestore encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.Featurestore + * FeatureGroup source. + * @member {"bigQuery"|undefined} source + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @instance */ - Featurestore.prototype.encryptionSpec = null; + Object.defineProperty(FeatureGroup.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["bigQuery"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new FeatureGroup instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @static - * @param {google.cloud.aiplatform.v1.IFeaturestore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore instance + * @param {google.cloud.aiplatform.v1.IFeatureGroup=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureGroup} FeatureGroup instance */ - Featurestore.create = function create(properties) { - return new Featurestore(properties); + FeatureGroup.create = function create(properties) { + return new FeatureGroup(properties); }; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * Encodes the specified FeatureGroup message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @static - * @param {google.cloud.aiplatform.v1.IFeaturestore} message Featurestore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureGroup} message FeatureGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Featurestore.encode = function encode(message, writer) { + FeatureGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $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 4, wireType 2 =*/34).fork()).ldelim(); + $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 5, wireType 2 =*/42).string(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 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.onlineServingConfig != null && Object.hasOwnProperty.call(message, "onlineServingConfig")) - $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.encode(message.onlineServingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.onlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "onlineStorageTtlDays")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.onlineStorageTtlDays); + 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.bigQuery != null && Object.hasOwnProperty.call(message, "bigQuery")) + $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.encode(message.bigQuery, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * Encodes the specified FeatureGroup message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @static - * @param {google.cloud.aiplatform.v1.IFeaturestore} message Featurestore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureGroup} message FeatureGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Featurestore.encodeDelimited = function encodeDelimited(message, writer) { + FeatureGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a FeatureGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1.FeatureGroup} FeatureGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Featurestore.decode = function decode(reader, length) { + FeatureGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureGroup(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 7: { + message.bigQuery = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.decode(reader, reader.uint32()); + break; + } case 1: { message.name = reader.string(); break; } - case 3: { + case 2: { message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 4: { + case 3: { message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 5: { + case 4: { message.etag = reader.string(); break; } - case 6: { + case 5: { if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -48112,20 +48365,669 @@ message.labels[key] = value; break; } - case 7: { - message.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.decode(reader, reader.uint32()); + case 6: { + message.description = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureGroup} FeatureGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureGroup message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bigQuery != null && message.hasOwnProperty("bigQuery")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.verify(message.bigQuery); + if (error) + return "bigQuery." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.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"; + return null; + }; + + /** + * Creates a FeatureGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureGroup} FeatureGroup + */ + FeatureGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureGroup) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureGroup(); + if (object.bigQuery != null) { + if (typeof object.bigQuery !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.bigQuery: object expected"); + message.bigQuery = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.fromObject(object.bigQuery); + } + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.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.v1.FeatureGroup.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); + return message; + }; + + /** + * Creates a plain object from a FeatureGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup} message FeatureGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureGroup.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 = ""; + } + 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.bigQuery != null && message.hasOwnProperty("bigQuery")) { + object.bigQuery = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.toObject(message.bigQuery, options); + if (options.oneofs) + object.source = "bigQuery"; + } + return object; + }; + + /** + * Converts this FeatureGroup to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @instance + * @returns {Object.} JSON object + */ + FeatureGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureGroup + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureGroup"; + }; + + FeatureGroup.BigQuery = (function() { + + /** + * Properties of a BigQuery. + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @interface IBigQuery + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigQuerySource] BigQuery bigQuerySource + * @property {Array.|null} [entityIdColumns] BigQuery entityIdColumns + */ + + /** + * Constructs a new BigQuery. + * @memberof google.cloud.aiplatform.v1.FeatureGroup + * @classdesc Represents a BigQuery. + * @implements IBigQuery + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery=} [properties] Properties to set + */ + function BigQuery(properties) { + this.entityIdColumns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BigQuery bigQuerySource. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigQuerySource + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @instance + */ + BigQuery.prototype.bigQuerySource = null; + + /** + * BigQuery entityIdColumns. + * @member {Array.} entityIdColumns + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @instance + */ + BigQuery.prototype.entityIdColumns = $util.emptyArray; + + /** + * Creates a new BigQuery instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery} BigQuery instance + */ + BigQuery.create = function create(properties) { + return new BigQuery(properties); + }; + + /** + * Encodes the specified BigQuery message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery} message BigQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuery.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigQuerySource != null && Object.hasOwnProperty.call(message, "bigQuerySource")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigQuerySource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityIdColumns != null && message.entityIdColumns.length) + for (var i = 0; i < message.entityIdColumns.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIdColumns[i]); + return writer; + }; + + /** + * Encodes the specified BigQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.IBigQuery} message BigQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuery.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQuery message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery} BigQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuery.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bigQuerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.entityIdColumns && message.entityIdColumns.length)) + message.entityIdColumns = []; + message.entityIdColumns.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } + } + return message; + }; + + /** + * Decodes a BigQuery message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery} BigQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuery.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQuery message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQuery.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigQuerySource); + if (error) + return "bigQuerySource." + error; + } + if (message.entityIdColumns != null && message.hasOwnProperty("entityIdColumns")) { + if (!Array.isArray(message.entityIdColumns)) + return "entityIdColumns: array expected"; + for (var i = 0; i < message.entityIdColumns.length; ++i) + if (!$util.isString(message.entityIdColumns[i])) + return "entityIdColumns: string[] expected"; + } + return null; + }; + + /** + * Creates a BigQuery message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery} BigQuery + */ + BigQuery.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery(); + if (object.bigQuerySource != null) { + if (typeof object.bigQuerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.BigQuery.bigQuerySource: object expected"); + message.bigQuerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigQuerySource); + } + if (object.entityIdColumns) { + if (!Array.isArray(object.entityIdColumns)) + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.BigQuery.entityIdColumns: array expected"); + message.entityIdColumns = []; + for (var i = 0; i < object.entityIdColumns.length; ++i) + message.entityIdColumns[i] = String(object.entityIdColumns[i]); + } + return message; + }; + + /** + * Creates a plain object from a BigQuery message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery} message BigQuery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQuery.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entityIdColumns = []; + if (options.defaults) + object.bigQuerySource = null; + if (message.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) + object.bigQuerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigQuerySource, options); + if (message.entityIdColumns && message.entityIdColumns.length) { + object.entityIdColumns = []; + for (var j = 0; j < message.entityIdColumns.length; ++j) + object.entityIdColumns[j] = message.entityIdColumns[j]; + } + return object; + }; + + /** + * Converts this BigQuery to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @instance + * @returns {Object.} JSON object + */ + BigQuery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BigQuery + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BigQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureGroup.BigQuery"; + }; + + return BigQuery; + })(); + + return FeatureGroup; + })(); + + v1.FeatureOnlineStore = (function() { + + /** + * Properties of a FeatureOnlineStore. + * @memberof google.cloud.aiplatform.v1 + * @interface IFeatureOnlineStore + * @property {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable|null} [bigtable] FeatureOnlineStore bigtable + * @property {string|null} [name] FeatureOnlineStore name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureOnlineStore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] FeatureOnlineStore updateTime + * @property {string|null} [etag] FeatureOnlineStore etag + * @property {Object.|null} [labels] FeatureOnlineStore labels + * @property {google.cloud.aiplatform.v1.FeatureOnlineStore.State|null} [state] FeatureOnlineStore state + */ + + /** + * Constructs a new FeatureOnlineStore. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FeatureOnlineStore. + * @implements IFeatureOnlineStore + * @constructor + * @param {google.cloud.aiplatform.v1.IFeatureOnlineStore=} [properties] Properties to set + */ + function FeatureOnlineStore(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]]; + } + + /** + * FeatureOnlineStore bigtable. + * @member {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable|null|undefined} bigtable + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.bigtable = null; + + /** + * FeatureOnlineStore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.name = ""; + + /** + * FeatureOnlineStore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.createTime = null; + + /** + * FeatureOnlineStore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.updateTime = null; + + /** + * FeatureOnlineStore etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.etag = ""; + + /** + * FeatureOnlineStore labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.labels = $util.emptyObject; + + /** + * FeatureOnlineStore state. + * @member {google.cloud.aiplatform.v1.FeatureOnlineStore.State} state + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.state = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FeatureOnlineStore storageType. + * @member {"bigtable"|undefined} storageType + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + Object.defineProperty(FeatureOnlineStore.prototype, "storageType", { + get: $util.oneOfGetter($oneOfFields = ["bigtable"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FeatureOnlineStore instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @static + * @param {google.cloud.aiplatform.v1.IFeatureOnlineStore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore} FeatureOnlineStore instance + */ + FeatureOnlineStore.create = function create(properties) { + return new FeatureOnlineStore(properties); + }; + + /** + * Encodes the specified FeatureOnlineStore message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @static + * @param {google.cloud.aiplatform.v1.IFeatureOnlineStore} message FeatureOnlineStore message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureOnlineStore.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.bigtable != null && Object.hasOwnProperty.call(message, "bigtable")) + $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.encode(message.bigtable, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureOnlineStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @static + * @param {google.cloud.aiplatform.v1.IFeatureOnlineStore} message FeatureOnlineStore message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureOnlineStore.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureOnlineStore message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore} FeatureOnlineStore + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureOnlineStore.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 8: { - message.state = reader.int32(); + message.bigtable = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.decode(reader, reader.uint32()); break; } - case 13: { - message.onlineStorageTtlDays = reader.int32(); + case 1: { + message.name = reader.string(); break; } - case 10: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 7: { + message.state = reader.int32(); break; } default: @@ -48137,32 +49039,41 @@ }; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a FeatureOnlineStore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore} FeatureOnlineStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Featurestore.decodeDelimited = function decodeDelimited(reader) { + FeatureOnlineStore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Featurestore message. + * Verifies a FeatureOnlineStore message. * @function verify - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Featurestore.verify = function verify(message) { + FeatureOnlineStore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.bigtable != null && message.hasOwnProperty("bigtable")) { + properties.storageType = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.verify(message.bigtable); + if (error) + return "bigtable." + error; + } + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -48187,11 +49098,6 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } - if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) { - var error = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify(message.onlineServingConfig); - if (error) - return "onlineServingConfig." + error; - } if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -48201,55 +49107,47 @@ case 2: break; } - if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) - if (!$util.isInteger(message.onlineStorageTtlDays)) - return "onlineStorageTtlDays: integer expected"; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } return null; }; /** - * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureOnlineStore message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore} FeatureOnlineStore */ - Featurestore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore) + FeatureOnlineStore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureOnlineStore) return object; - var message = new $root.google.cloud.aiplatform.v1.Featurestore(); + var message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore(); + if (object.bigtable != null) { + if (typeof object.bigtable !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.bigtable: object expected"); + message.bigtable = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.fromObject(object.bigtable); + } if (object.name != null) message.name = String(object.name); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Featurestore.createTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Featurestore.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.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.v1.Featurestore.labels: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.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.onlineServingConfig != null) { - if (typeof object.onlineServingConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Featurestore.onlineServingConfig: object expected"); - message.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.fromObject(object.onlineServingConfig); - } switch (object.state) { default: if (typeof object.state === "number") { @@ -48270,26 +49168,19 @@ message.state = 2; break; } - if (object.onlineStorageTtlDays != null) - message.onlineStorageTtlDays = object.onlineStorageTtlDays | 0; - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Featurestore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } return message; }; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * Creates a plain object from a FeatureOnlineStore message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @static - * @param {google.cloud.aiplatform.v1.Featurestore} message Featurestore + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore} message FeatureOnlineStore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Featurestore.toObject = function toObject(message, options) { + FeatureOnlineStore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -48300,10 +49191,7 @@ object.createTime = null; object.updateTime = null; object.etag = ""; - object.onlineServingConfig = null; object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.encryptionSpec = null; - object.onlineStorageTtlDays = 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -48319,62 +49207,60 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) - object.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.toObject(message.onlineServingConfig, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Featurestore.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Featurestore.State[message.state] : message.state; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) - object.onlineStorageTtlDays = message.onlineStorageTtlDays; + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.FeatureOnlineStore.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.FeatureOnlineStore.State[message.state] : message.state; + if (message.bigtable != null && message.hasOwnProperty("bigtable")) { + object.bigtable = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.toObject(message.bigtable, options); + if (options.oneofs) + object.storageType = "bigtable"; + } return object; }; /** - * Converts this Featurestore to JSON. + * Converts this FeatureOnlineStore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @instance * @returns {Object.} JSON object */ - Featurestore.prototype.toJSON = function toJSON() { + FeatureOnlineStore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Featurestore + * Gets the default type url for FeatureOnlineStore * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Featurestore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Featurestore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureOnlineStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureOnlineStore"; }; - Featurestore.OnlineServingConfig = (function() { + FeatureOnlineStore.Bigtable = (function() { /** - * Properties of an OnlineServingConfig. - * @memberof google.cloud.aiplatform.v1.Featurestore - * @interface IOnlineServingConfig - * @property {number|null} [fixedNodeCount] OnlineServingConfig fixedNodeCount - * @property {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null} [scaling] OnlineServingConfig scaling + * Properties of a Bigtable. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @interface IBigtable + * @property {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling|null} [autoScaling] Bigtable autoScaling */ /** - * Constructs a new OnlineServingConfig. - * @memberof google.cloud.aiplatform.v1.Featurestore - * @classdesc Represents an OnlineServingConfig. - * @implements IOnlineServingConfig + * Constructs a new Bigtable. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @classdesc Represents a Bigtable. + * @implements IBigtable * @constructor - * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable=} [properties] Properties to set */ - function OnlineServingConfig(properties) { + function Bigtable(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48382,89 +49268,75 @@ } /** - * OnlineServingConfig fixedNodeCount. - * @member {number} fixedNodeCount - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig - * @instance - */ - OnlineServingConfig.prototype.fixedNodeCount = 0; - - /** - * OnlineServingConfig scaling. - * @member {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null|undefined} scaling - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * Bigtable autoScaling. + * @member {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling|null|undefined} autoScaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @instance */ - OnlineServingConfig.prototype.scaling = null; + Bigtable.prototype.autoScaling = null; /** - * Creates a new OnlineServingConfig instance using the specified properties. + * Creates a new Bigtable instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static - * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig instance + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} Bigtable instance */ - OnlineServingConfig.create = function create(properties) { - return new OnlineServingConfig(properties); + Bigtable.create = function create(properties) { + return new Bigtable(properties); }; /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * Encodes the specified Bigtable message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static - * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable} message Bigtable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OnlineServingConfig.encode = function encode(message, writer) { + Bigtable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fixedNodeCount != null && Object.hasOwnProperty.call(message, "fixedNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fixedNodeCount); - if (message.scaling != null && Object.hasOwnProperty.call(message, "scaling")) - $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.encode(message.scaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.autoScaling != null && Object.hasOwnProperty.call(message, "autoScaling")) + $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.encode(message.autoScaling, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * Encodes the specified Bigtable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static - * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.IBigtable} message Bigtable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OnlineServingConfig.encodeDelimited = function encodeDelimited(message, writer) { + Bigtable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. + * Decodes a Bigtable message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} Bigtable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OnlineServingConfig.decode = function decode(reader, length) { + Bigtable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.fixedNodeCount = reader.int32(); - break; - } - case 4: { - message.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.decode(reader, reader.uint32()); + case 1: { + message.autoScaling = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.decode(reader, reader.uint32()); break; } default: @@ -48476,135 +49348,126 @@ }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * Decodes a Bigtable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} Bigtable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OnlineServingConfig.decodeDelimited = function decodeDelimited(reader) { + Bigtable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OnlineServingConfig message. + * Verifies a Bigtable message. * @function verify - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OnlineServingConfig.verify = function verify(message) { + Bigtable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) - if (!$util.isInteger(message.fixedNodeCount)) - return "fixedNodeCount: integer expected"; - if (message.scaling != null && message.hasOwnProperty("scaling")) { - var error = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify(message.scaling); + if (message.autoScaling != null && message.hasOwnProperty("autoScaling")) { + var error = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.verify(message.autoScaling); if (error) - return "scaling." + error; + return "autoScaling." + error; } return null; }; /** - * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Bigtable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} Bigtable */ - OnlineServingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig) + Bigtable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable) return object; - var message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(); - if (object.fixedNodeCount != null) - message.fixedNodeCount = object.fixedNodeCount | 0; - if (object.scaling != null) { - if (typeof object.scaling !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.scaling: object expected"); - message.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.fromObject(object.scaling); + var message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable(); + if (object.autoScaling != null) { + if (typeof object.autoScaling !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.autoScaling: object expected"); + message.autoScaling = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.fromObject(object.autoScaling); } return message; }; /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * Creates a plain object from a Bigtable message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} message OnlineServingConfig + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} message Bigtable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OnlineServingConfig.toObject = function toObject(message, options) { + Bigtable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fixedNodeCount = 0; - object.scaling = null; - } - if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) - object.fixedNodeCount = message.fixedNodeCount; - if (message.scaling != null && message.hasOwnProperty("scaling")) - object.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.toObject(message.scaling, options); + if (options.defaults) + object.autoScaling = null; + if (message.autoScaling != null && message.hasOwnProperty("autoScaling")) + object.autoScaling = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.toObject(message.autoScaling, options); return object; }; /** - * Converts this OnlineServingConfig to JSON. + * Converts this Bigtable to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @instance * @returns {Object.} JSON object */ - OnlineServingConfig.prototype.toJSON = function toJSON() { + Bigtable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OnlineServingConfig + * Gets the default type url for Bigtable * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OnlineServingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Bigtable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable"; }; - OnlineServingConfig.Scaling = (function() { + Bigtable.AutoScaling = (function() { /** - * Properties of a Scaling. - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig - * @interface IScaling - * @property {number|null} [minNodeCount] Scaling minNodeCount - * @property {number|null} [maxNodeCount] Scaling maxNodeCount - * @property {number|null} [cpuUtilizationTarget] Scaling cpuUtilizationTarget + * Properties of an AutoScaling. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable + * @interface IAutoScaling + * @property {number|null} [minNodeCount] AutoScaling minNodeCount + * @property {number|null} [maxNodeCount] AutoScaling maxNodeCount + * @property {number|null} [cpuUtilizationTarget] AutoScaling cpuUtilizationTarget */ /** - * Constructs a new Scaling. - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig - * @classdesc Represents a Scaling. - * @implements IScaling + * Constructs a new AutoScaling. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable + * @classdesc Represents an AutoScaling. + * @implements IAutoScaling * @constructor - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling=} [properties] Properties to set */ - function Scaling(properties) { + function AutoScaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48612,51 +49475,51 @@ } /** - * Scaling minNodeCount. + * AutoScaling minNodeCount. * @member {number} minNodeCount - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @instance */ - Scaling.prototype.minNodeCount = 0; + AutoScaling.prototype.minNodeCount = 0; /** - * Scaling maxNodeCount. + * AutoScaling maxNodeCount. * @member {number} maxNodeCount - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @instance */ - Scaling.prototype.maxNodeCount = 0; + AutoScaling.prototype.maxNodeCount = 0; /** - * Scaling cpuUtilizationTarget. + * AutoScaling cpuUtilizationTarget. * @member {number} cpuUtilizationTarget - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @instance */ - Scaling.prototype.cpuUtilizationTarget = 0; + AutoScaling.prototype.cpuUtilizationTarget = 0; /** - * Creates a new Scaling instance using the specified properties. + * Creates a new AutoScaling instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling instance + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling} AutoScaling instance */ - Scaling.create = function create(properties) { - return new Scaling(properties); + AutoScaling.create = function create(properties) { + return new AutoScaling(properties); }; /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * Encodes the specified AutoScaling message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling} message AutoScaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scaling.encode = function encode(message, writer) { + AutoScaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) @@ -48669,33 +49532,33 @@ }; /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * Encodes the specified AutoScaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.IAutoScaling} message AutoScaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scaling.encodeDelimited = function encodeDelimited(message, writer) { + AutoScaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Scaling message from the specified reader or buffer. + * Decodes an AutoScaling message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling} AutoScaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scaling.decode = function decode(reader, length) { + AutoScaling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48720,30 +49583,30 @@ }; /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. + * Decodes an AutoScaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling} AutoScaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scaling.decodeDelimited = function decodeDelimited(reader) { + AutoScaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Scaling message. + * Verifies an AutoScaling message. * @function verify - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Scaling.verify = function verify(message) { + AutoScaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) @@ -48759,17 +49622,17 @@ }; /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * Creates an AutoScaling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @returns {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling} AutoScaling */ - Scaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + AutoScaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling) return object; - var message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(); + var message = new $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling(); if (object.minNodeCount != null) message.minNodeCount = object.minNodeCount | 0; if (object.maxNodeCount != null) @@ -48780,15 +49643,15 @@ }; /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * Creates a plain object from an AutoScaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static - * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} message Scaling + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling} message AutoScaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Scaling.toObject = function toObject(message, options) { + AutoScaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -48807,46 +49670,46 @@ }; /** - * Converts this Scaling to JSON. + * Converts this AutoScaling to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @instance * @returns {Object.} JSON object */ - Scaling.prototype.toJSON = function toJSON() { + AutoScaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Scaling + * Gets the default type url for AutoScaling * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Scaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AutoScaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScaling"; }; - return Scaling; + return AutoScaling; })(); - return OnlineServingConfig; + return Bigtable; })(); /** * State enum. - * @name google.cloud.aiplatform.v1.Featurestore.State + * @name google.cloud.aiplatform.v1.FeatureOnlineStore.State * @enum {number} * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value * @property {number} STABLE=1 STABLE value * @property {number} UPDATING=2 UPDATING value */ - Featurestore.State = (function() { + FeatureOnlineStore.State = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; values[valuesById[1] = "STABLE"] = 1; @@ -48854,163 +49717,493 @@ return values; })(); - return Featurestore; + return FeatureOnlineStore; })(); - v1.FeaturestoreOnlineServingService = (function() { + v1.FeatureOnlineStoreAdminService = (function() { /** - * Constructs a new FeaturestoreOnlineServingService service. + * Constructs a new FeatureOnlineStoreAdminService service. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeaturestoreOnlineServingService + * @classdesc Represents a FeatureOnlineStoreAdminService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { + function FeatureOnlineStoreAdminService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (FeaturestoreOnlineServingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreOnlineServingService; + (FeatureOnlineStoreAdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeatureOnlineStoreAdminService; /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * Creates new FeatureOnlineStoreAdminService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {FeaturestoreOnlineServingService} RPC service. Useful where requests and/or responses are streamed. + * @returns {FeatureOnlineStoreAdminService} RPC service. Useful where requests and/or responses are streamed. */ - FeaturestoreOnlineServingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + FeatureOnlineStoreAdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|readFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService - * @typedef ReadFeatureValuesCallback + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|createFeatureOnlineStore}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef CreateFeatureOnlineStoreCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ReadFeatureValues. - * @function readFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls CreateFeatureOnlineStore. + * @function createFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest} request CreateFeatureOnlineStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStoreCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(FeaturestoreOnlineServingService.prototype.readFeatureValues = function readFeatureValues(request, callback) { - return this.rpcCall(readFeatureValues, $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse, request, callback); - }, "name", { value: "ReadFeatureValues" }); + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.createFeatureOnlineStore = function createFeatureOnlineStore(request, callback) { + return this.rpcCall(createFeatureOnlineStore, $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeatureOnlineStore" }); /** - * Calls ReadFeatureValues. - * @function readFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls CreateFeatureOnlineStore. + * @function createFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest} request CreateFeatureOnlineStoreRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService - * @typedef StreamingReadFeatureValuesCallback + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureOnlineStore}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef GetFeatureOnlineStoreCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore} [response] FeatureOnlineStore */ /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls GetFeatureOnlineStore. + * @function getFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest} request GetFeatureOnlineStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStoreCallback} callback Node-style callback called with the error, if any, and FeatureOnlineStore * @returns {undefined} * @variation 1 */ - Object.defineProperty(FeaturestoreOnlineServingService.prototype.streamingReadFeatureValues = function streamingReadFeatureValues(request, callback) { - return this.rpcCall(streamingReadFeatureValues, $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse, request, callback); - }, "name", { value: "StreamingReadFeatureValues" }); + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.getFeatureOnlineStore = function getFeatureOnlineStore(request, callback) { + return this.rpcCall(getFeatureOnlineStore, $root.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest, $root.google.cloud.aiplatform.v1.FeatureOnlineStore, request, callback); + }, "name", { value: "GetFeatureOnlineStore" }); /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls GetFeatureOnlineStore. + * @function getFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest} request GetFeatureOnlineStoreRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|writeFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService - * @typedef WriteFeatureValuesCallback + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureOnlineStores}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef ListFeatureOnlineStoresCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} [response] WriteFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} [response] ListFeatureOnlineStoresResponse */ /** - * Calls WriteFeatureValues. - * @function writeFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls ListFeatureOnlineStores. + * @function listFeatureOnlineStores + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} request WriteFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback} callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest} request ListFeatureOnlineStoresRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStoresCallback} callback Node-style callback called with the error, if any, and ListFeatureOnlineStoresResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(FeaturestoreOnlineServingService.prototype.writeFeatureValues = function writeFeatureValues(request, callback) { - return this.rpcCall(writeFeatureValues, $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse, request, callback); - }, "name", { value: "WriteFeatureValues" }); + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.listFeatureOnlineStores = function listFeatureOnlineStores(request, callback) { + return this.rpcCall(listFeatureOnlineStores, $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest, $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse, request, callback); + }, "name", { value: "ListFeatureOnlineStores" }); /** - * Calls WriteFeatureValues. - * @function writeFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * Calls ListFeatureOnlineStores. + * @function listFeatureOnlineStores + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService * @instance - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} request WriteFeatureValuesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest} request ListFeatureOnlineStoresRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return FeaturestoreOnlineServingService; - })(); - - v1.WriteFeatureValuesRequest = (function() { - /** - * Properties of a WriteFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IWriteFeatureValuesRequest - * @property {string|null} [entityType] WriteFeatureValuesRequest entityType - * @property {Array.|null} [payloads] WriteFeatureValuesRequest payloads + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|updateFeatureOnlineStore}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef UpdateFeatureOnlineStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new WriteFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a WriteFeatureValuesRequest. - * @implements IWriteFeatureValuesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest=} [properties] Properties to set + * Calls UpdateFeatureOnlineStore. + * @function updateFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest} request UpdateFeatureOnlineStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function WriteFeatureValuesRequest(properties) { - this.payloads = []; + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.updateFeatureOnlineStore = function updateFeatureOnlineStore(request, callback) { + return this.rpcCall(updateFeatureOnlineStore, $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeatureOnlineStore" }); + + /** + * Calls UpdateFeatureOnlineStore. + * @function updateFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest} request UpdateFeatureOnlineStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|deleteFeatureOnlineStore}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef DeleteFeatureOnlineStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureOnlineStore. + * @function deleteFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest} request DeleteFeatureOnlineStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.deleteFeatureOnlineStore = function deleteFeatureOnlineStore(request, callback) { + return this.rpcCall(deleteFeatureOnlineStore, $root.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureOnlineStore" }); + + /** + * Calls DeleteFeatureOnlineStore. + * @function deleteFeatureOnlineStore + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest} request DeleteFeatureOnlineStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|createFeatureView}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef CreateFeatureViewCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateFeatureView. + * @function createFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest} request CreateFeatureViewRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureViewCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.createFeatureView = function createFeatureView(request, callback) { + return this.rpcCall(createFeatureView, $root.google.cloud.aiplatform.v1.CreateFeatureViewRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeatureView" }); + + /** + * Calls CreateFeatureView. + * @function createFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest} request CreateFeatureViewRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureView}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef GetFeatureViewCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.FeatureView} [response] FeatureView + */ + + /** + * Calls GetFeatureView. + * @function getFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest} request GetFeatureViewRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewCallback} callback Node-style callback called with the error, if any, and FeatureView + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.getFeatureView = function getFeatureView(request, callback) { + return this.rpcCall(getFeatureView, $root.google.cloud.aiplatform.v1.GetFeatureViewRequest, $root.google.cloud.aiplatform.v1.FeatureView, request, callback); + }, "name", { value: "GetFeatureView" }); + + /** + * Calls GetFeatureView. + * @function getFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest} request GetFeatureViewRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureViews}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef ListFeatureViewsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeatureViewsResponse} [response] ListFeatureViewsResponse + */ + + /** + * Calls ListFeatureViews. + * @function listFeatureViews + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest} request ListFeatureViewsRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewsCallback} callback Node-style callback called with the error, if any, and ListFeatureViewsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.listFeatureViews = function listFeatureViews(request, callback) { + return this.rpcCall(listFeatureViews, $root.google.cloud.aiplatform.v1.ListFeatureViewsRequest, $root.google.cloud.aiplatform.v1.ListFeatureViewsResponse, request, callback); + }, "name", { value: "ListFeatureViews" }); + + /** + * Calls ListFeatureViews. + * @function listFeatureViews + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest} request ListFeatureViewsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|updateFeatureView}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef UpdateFeatureViewCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateFeatureView. + * @function updateFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest} request UpdateFeatureViewRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureViewCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.updateFeatureView = function updateFeatureView(request, callback) { + return this.rpcCall(updateFeatureView, $root.google.cloud.aiplatform.v1.UpdateFeatureViewRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeatureView" }); + + /** + * Calls UpdateFeatureView. + * @function updateFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest} request UpdateFeatureViewRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|deleteFeatureView}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef DeleteFeatureViewCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureView. + * @function deleteFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest} request DeleteFeatureViewRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureViewCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.deleteFeatureView = function deleteFeatureView(request, callback) { + return this.rpcCall(deleteFeatureView, $root.google.cloud.aiplatform.v1.DeleteFeatureViewRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureView" }); + + /** + * Calls DeleteFeatureView. + * @function deleteFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest} request DeleteFeatureViewRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|syncFeatureView}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef SyncFeatureViewCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.SyncFeatureViewResponse} [response] SyncFeatureViewResponse + */ + + /** + * Calls SyncFeatureView. + * @function syncFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest} request SyncFeatureViewRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureViewCallback} callback Node-style callback called with the error, if any, and SyncFeatureViewResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.syncFeatureView = function syncFeatureView(request, callback) { + return this.rpcCall(syncFeatureView, $root.google.cloud.aiplatform.v1.SyncFeatureViewRequest, $root.google.cloud.aiplatform.v1.SyncFeatureViewResponse, request, callback); + }, "name", { value: "SyncFeatureView" }); + + /** + * Calls SyncFeatureView. + * @function syncFeatureView + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest} request SyncFeatureViewRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|getFeatureViewSync}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef GetFeatureViewSyncCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.FeatureViewSync} [response] FeatureViewSync + */ + + /** + * Calls GetFeatureViewSync. + * @function getFeatureViewSync + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest} request GetFeatureViewSyncRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSyncCallback} callback Node-style callback called with the error, if any, and FeatureViewSync + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.getFeatureViewSync = function getFeatureViewSync(request, callback) { + return this.rpcCall(getFeatureViewSync, $root.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest, $root.google.cloud.aiplatform.v1.FeatureViewSync, request, callback); + }, "name", { value: "GetFeatureViewSync" }); + + /** + * Calls GetFeatureViewSync. + * @function getFeatureViewSync + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest} request GetFeatureViewSyncRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService|listFeatureViewSyncs}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @typedef ListFeatureViewSyncsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} [response] ListFeatureViewSyncsResponse + */ + + /** + * Calls ListFeatureViewSyncs. + * @function listFeatureViewSyncs + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest} request ListFeatureViewSyncsRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncsCallback} callback Node-style callback called with the error, if any, and ListFeatureViewSyncsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreAdminService.prototype.listFeatureViewSyncs = function listFeatureViewSyncs(request, callback) { + return this.rpcCall(listFeatureViewSyncs, $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest, $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse, request, callback); + }, "name", { value: "ListFeatureViewSyncs" }); + + /** + * Calls ListFeatureViewSyncs. + * @function listFeatureViewSyncs + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest} request ListFeatureViewSyncsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeatureOnlineStoreAdminService; + })(); + + v1.CreateFeatureOnlineStoreRequest = (function() { + + /** + * Properties of a CreateFeatureOnlineStoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeatureOnlineStoreRequest + * @property {string|null} [parent] CreateFeatureOnlineStoreRequest parent + * @property {google.cloud.aiplatform.v1.IFeatureOnlineStore|null} [featureOnlineStore] CreateFeatureOnlineStoreRequest featureOnlineStore + * @property {string|null} [featureOnlineStoreId] CreateFeatureOnlineStoreRequest featureOnlineStoreId + */ + + /** + * Constructs a new CreateFeatureOnlineStoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeatureOnlineStoreRequest. + * @implements ICreateFeatureOnlineStoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest=} [properties] Properties to set + */ + function CreateFeatureOnlineStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49018,92 +50211,103 @@ } /** - * WriteFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * CreateFeatureOnlineStoreRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @instance */ - WriteFeatureValuesRequest.prototype.entityType = ""; + CreateFeatureOnlineStoreRequest.prototype.parent = ""; /** - * WriteFeatureValuesRequest payloads. - * @member {Array.} payloads - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * CreateFeatureOnlineStoreRequest featureOnlineStore. + * @member {google.cloud.aiplatform.v1.IFeatureOnlineStore|null|undefined} featureOnlineStore + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @instance */ - WriteFeatureValuesRequest.prototype.payloads = $util.emptyArray; + CreateFeatureOnlineStoreRequest.prototype.featureOnlineStore = null; /** - * Creates a new WriteFeatureValuesRequest instance using the specified properties. + * CreateFeatureOnlineStoreRequest featureOnlineStoreId. + * @member {string} featureOnlineStoreId + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest + * @instance + */ + CreateFeatureOnlineStoreRequest.prototype.featureOnlineStoreId = ""; + + /** + * Creates a new CreateFeatureOnlineStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest} CreateFeatureOnlineStoreRequest instance */ - WriteFeatureValuesRequest.create = function create(properties) { - return new WriteFeatureValuesRequest(properties); + CreateFeatureOnlineStoreRequest.create = function create(properties) { + return new CreateFeatureOnlineStoreRequest(properties); }; /** - * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. + * Encodes the specified CreateFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} message WriteFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest} message CreateFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesRequest.encode = function encode(message, writer) { + CreateFeatureOnlineStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.payloads != null && message.payloads.length) - for (var i = 0; i < message.payloads.length; ++i) - $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.encode(message.payloads[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.featureOnlineStore != null && Object.hasOwnProperty.call(message, "featureOnlineStore")) + $root.google.cloud.aiplatform.v1.FeatureOnlineStore.encode(message.featureOnlineStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureOnlineStoreId != null && Object.hasOwnProperty.call(message, "featureOnlineStoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureOnlineStoreId); return writer; }; /** - * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. + * Encodes the specified CreateFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} message WriteFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest} message CreateFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureOnlineStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. + * Decodes a CreateFeatureOnlineStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest} CreateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesRequest.decode = function decode(reader, length) { + CreateFeatureOnlineStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.entityType = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.payloads && message.payloads.length)) - message.payloads = []; - message.payloads.push($root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.decode(reader, reader.uint32())); + message.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureOnlineStoreId = reader.string(); break; } default: @@ -49115,150 +50319,144 @@ }; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest} CreateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureOnlineStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteFeatureValuesRequest message. + * Verifies a CreateFeatureOnlineStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteFeatureValuesRequest.verify = function verify(message) { + CreateFeatureOnlineStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.payloads != null && message.hasOwnProperty("payloads")) { - if (!Array.isArray(message.payloads)) - return "payloads: array expected"; - for (var i = 0; i < message.payloads.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify(message.payloads[i]); - if (error) - return "payloads." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.featureOnlineStore != null && message.hasOwnProperty("featureOnlineStore")) { + var error = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.verify(message.featureOnlineStore); + if (error) + return "featureOnlineStore." + error; } + if (message.featureOnlineStoreId != null && message.hasOwnProperty("featureOnlineStoreId")) + if (!$util.isString(message.featureOnlineStoreId)) + return "featureOnlineStoreId: string expected"; return null; }; /** - * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest} CreateFeatureOnlineStoreRequest */ - WriteFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + CreateFeatureOnlineStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.payloads) { - if (!Array.isArray(object.payloads)) - throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesRequest.payloads: array expected"); - message.payloads = []; - for (var i = 0; i < object.payloads.length; ++i) { - if (typeof object.payloads[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesRequest.payloads: object expected"); - message.payloads[i] = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.fromObject(object.payloads[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featureOnlineStore != null) { + if (typeof object.featureOnlineStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest.featureOnlineStore: object expected"); + message.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.fromObject(object.featureOnlineStore); } + if (object.featureOnlineStoreId != null) + message.featureOnlineStoreId = String(object.featureOnlineStoreId); return message; }; /** - * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureOnlineStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} message WriteFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest} message CreateFeatureOnlineStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteFeatureValuesRequest.toObject = function toObject(message, options) { + CreateFeatureOnlineStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.payloads = []; - if (options.defaults) - object.entityType = ""; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.payloads && message.payloads.length) { - object.payloads = []; - for (var j = 0; j < message.payloads.length; ++j) - object.payloads[j] = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.toObject(message.payloads[j], options); + if (options.defaults) { + object.parent = ""; + object.featureOnlineStore = null; + object.featureOnlineStoreId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featureOnlineStore != null && message.hasOwnProperty("featureOnlineStore")) + object.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.toObject(message.featureOnlineStore, options); + if (message.featureOnlineStoreId != null && message.hasOwnProperty("featureOnlineStoreId")) + object.featureOnlineStoreId = message.featureOnlineStoreId; return object; }; /** - * Converts this WriteFeatureValuesRequest to JSON. + * Converts this CreateFeatureOnlineStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @instance * @returns {Object.} JSON object */ - WriteFeatureValuesRequest.prototype.toJSON = function toJSON() { + CreateFeatureOnlineStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WriteFeatureValuesRequest + * Gets the default type url for CreateFeatureOnlineStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WriteFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeatureOnlineStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest"; }; - return WriteFeatureValuesRequest; + return CreateFeatureOnlineStoreRequest; })(); - v1.WriteFeatureValuesPayload = (function() { + v1.GetFeatureOnlineStoreRequest = (function() { /** - * Properties of a WriteFeatureValuesPayload. + * Properties of a GetFeatureOnlineStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IWriteFeatureValuesPayload - * @property {string|null} [entityId] WriteFeatureValuesPayload entityId - * @property {Object.|null} [featureValues] WriteFeatureValuesPayload featureValues + * @interface IGetFeatureOnlineStoreRequest + * @property {string|null} [name] GetFeatureOnlineStoreRequest name */ /** - * Constructs a new WriteFeatureValuesPayload. + * Constructs a new GetFeatureOnlineStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a WriteFeatureValuesPayload. - * @implements IWriteFeatureValuesPayload + * @classdesc Represents a GetFeatureOnlineStoreRequest. + * @implements IGetFeatureOnlineStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest=} [properties] Properties to set */ - function WriteFeatureValuesPayload(properties) { - this.featureValues = {}; + function GetFeatureOnlineStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49266,111 +50464,75 @@ } /** - * WriteFeatureValuesPayload entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload - * @instance - */ - WriteFeatureValuesPayload.prototype.entityId = ""; - - /** - * WriteFeatureValuesPayload featureValues. - * @member {Object.} featureValues - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * GetFeatureOnlineStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @instance */ - WriteFeatureValuesPayload.prototype.featureValues = $util.emptyObject; + GetFeatureOnlineStoreRequest.prototype.name = ""; /** - * Creates a new WriteFeatureValuesPayload instance using the specified properties. + * Creates a new GetFeatureOnlineStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload instance + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest} GetFeatureOnlineStoreRequest instance */ - WriteFeatureValuesPayload.create = function create(properties) { - return new WriteFeatureValuesPayload(properties); + GetFeatureOnlineStoreRequest.create = function create(properties) { + return new GetFeatureOnlineStoreRequest(properties); }; /** - * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. + * Encodes the specified GetFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload} message WriteFeatureValuesPayload message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest} message GetFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesPayload.encode = function encode(message, writer) { + GetFeatureOnlineStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.featureValues != null && Object.hasOwnProperty.call(message, "featureValues")) - for (var keys = Object.keys(message.featureValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.featureValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. + * Encodes the specified GetFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload} message WriteFeatureValuesPayload message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest} message GetFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesPayload.encodeDelimited = function encodeDelimited(message, writer) { + GetFeatureOnlineStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. + * Decodes a GetFeatureOnlineStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload + * @returns {google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest} GetFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesPayload.decode = function decode(reader, length) { + GetFeatureOnlineStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.entityId = reader.string(); - break; - } - case 2: { - if (message.featureValues === $util.emptyObject) - message.featureValues = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.featureValues[key] = value; + message.name = reader.string(); break; } default: @@ -49382,149 +50544,126 @@ }; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload + * @returns {google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest} GetFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesPayload.decodeDelimited = function decodeDelimited(reader) { + GetFeatureOnlineStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteFeatureValuesPayload message. + * Verifies a GetFeatureOnlineStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteFeatureValuesPayload.verify = function verify(message) { + GetFeatureOnlineStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: string expected"; - if (message.featureValues != null && message.hasOwnProperty("featureValues")) { - if (!$util.isObject(message.featureValues)) - return "featureValues: object expected"; - var key = Object.keys(message.featureValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.featureValues[key[i]]); - if (error) - return "featureValues." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload + * @returns {google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest} GetFeatureOnlineStoreRequest */ - WriteFeatureValuesPayload.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + GetFeatureOnlineStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(); - if (object.entityId != null) - message.entityId = String(object.entityId); - if (object.featureValues) { - if (typeof object.featureValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesPayload.featureValues: object expected"); - message.featureValues = {}; - for (var keys = Object.keys(object.featureValues), i = 0; i < keys.length; ++i) { - if (typeof object.featureValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesPayload.featureValues: object expected"); - message.featureValues[keys[i]] = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.featureValues[keys[i]]); - } - } + var message = new $root.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. + * Creates a plain object from a GetFeatureOnlineStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} message WriteFeatureValuesPayload + * @param {google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest} message GetFeatureOnlineStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteFeatureValuesPayload.toObject = function toObject(message, options) { + GetFeatureOnlineStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.featureValues = {}; if (options.defaults) - object.entityId = ""; - if (message.entityId != null && message.hasOwnProperty("entityId")) - object.entityId = message.entityId; - var keys2; - if (message.featureValues && (keys2 = Object.keys(message.featureValues)).length) { - object.featureValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.featureValues[keys2[j]] = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.featureValues[keys2[j]], options); - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this WriteFeatureValuesPayload to JSON. + * Converts this GetFeatureOnlineStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @instance * @returns {Object.} JSON object */ - WriteFeatureValuesPayload.prototype.toJSON = function toJSON() { + GetFeatureOnlineStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WriteFeatureValuesPayload + * Gets the default type url for GetFeatureOnlineStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @memberof google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WriteFeatureValuesPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFeatureOnlineStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesPayload"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest"; }; - return WriteFeatureValuesPayload; + return GetFeatureOnlineStoreRequest; })(); - v1.WriteFeatureValuesResponse = (function() { + v1.ListFeatureOnlineStoresRequest = (function() { /** - * Properties of a WriteFeatureValuesResponse. + * Properties of a ListFeatureOnlineStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IWriteFeatureValuesResponse + * @interface IListFeatureOnlineStoresRequest + * @property {string|null} [parent] ListFeatureOnlineStoresRequest parent + * @property {string|null} [filter] ListFeatureOnlineStoresRequest filter + * @property {number|null} [pageSize] ListFeatureOnlineStoresRequest pageSize + * @property {string|null} [pageToken] ListFeatureOnlineStoresRequest pageToken + * @property {string|null} [orderBy] ListFeatureOnlineStoresRequest orderBy */ /** - * Constructs a new WriteFeatureValuesResponse. + * Constructs a new ListFeatureOnlineStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a WriteFeatureValuesResponse. - * @implements IWriteFeatureValuesResponse + * @classdesc Represents a ListFeatureOnlineStoresRequest. + * @implements IListFeatureOnlineStoresRequest * @constructor - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest=} [properties] Properties to set */ - function WriteFeatureValuesResponse(properties) { + function ListFeatureOnlineStoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49532,63 +50671,133 @@ } /** - * Creates a new WriteFeatureValuesResponse instance using the specified properties. + * ListFeatureOnlineStoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest + * @instance + */ + ListFeatureOnlineStoresRequest.prototype.parent = ""; + + /** + * ListFeatureOnlineStoresRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest + * @instance + */ + ListFeatureOnlineStoresRequest.prototype.filter = ""; + + /** + * ListFeatureOnlineStoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest + * @instance + */ + ListFeatureOnlineStoresRequest.prototype.pageSize = 0; + + /** + * ListFeatureOnlineStoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest + * @instance + */ + ListFeatureOnlineStoresRequest.prototype.pageToken = ""; + + /** + * ListFeatureOnlineStoresRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest + * @instance + */ + ListFeatureOnlineStoresRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFeatureOnlineStoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest} ListFeatureOnlineStoresRequest instance */ - WriteFeatureValuesResponse.create = function create(properties) { - return new WriteFeatureValuesResponse(properties); + ListFeatureOnlineStoresRequest.create = function create(properties) { + return new ListFeatureOnlineStoresRequest(properties); }; /** - * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ListFeatureOnlineStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse} message WriteFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest} message ListFeatureOnlineStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesResponse.encode = function encode(message, writer) { + ListFeatureOnlineStoresRequest.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 WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ListFeatureOnlineStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse} message WriteFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest} message ListFeatureOnlineStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureOnlineStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeatureOnlineStoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest} ListFeatureOnlineStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesResponse.decode = function decode(reader, length) { + ListFeatureOnlineStoresRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest(); 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; @@ -49598,111 +50807,157 @@ }; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureOnlineStoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest} ListFeatureOnlineStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + ListFeatureOnlineStoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteFeatureValuesResponse message. + * Verifies a ListFeatureOnlineStoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteFeatureValuesResponse.verify = function verify(message) { + ListFeatureOnlineStoresRequest.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 WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureOnlineStoresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest} ListFeatureOnlineStoresRequest */ - WriteFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + ListFeatureOnlineStoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest) return object; - return new $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest(); + 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 WriteFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureOnlineStoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static - * @param {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} message WriteFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest} message ListFeatureOnlineStoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteFeatureValuesResponse.toObject = function toObject() { - return {}; + ListFeatureOnlineStoresRequest.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 WriteFeatureValuesResponse to JSON. + * Converts this ListFeatureOnlineStoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @instance * @returns {Object.} JSON object */ - WriteFeatureValuesResponse.prototype.toJSON = function toJSON() { + ListFeatureOnlineStoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WriteFeatureValuesResponse + * Gets the default type url for ListFeatureOnlineStoresRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WriteFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureOnlineStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest"; }; - return WriteFeatureValuesResponse; + return ListFeatureOnlineStoresRequest; })(); - v1.ReadFeatureValuesRequest = (function() { + v1.ListFeatureOnlineStoresResponse = (function() { /** - * Properties of a ReadFeatureValuesRequest. + * Properties of a ListFeatureOnlineStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IReadFeatureValuesRequest - * @property {string|null} [entityType] ReadFeatureValuesRequest entityType - * @property {string|null} [entityId] ReadFeatureValuesRequest entityId - * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] ReadFeatureValuesRequest featureSelector + * @interface IListFeatureOnlineStoresResponse + * @property {Array.|null} [featureOnlineStores] ListFeatureOnlineStoresResponse featureOnlineStores + * @property {string|null} [nextPageToken] ListFeatureOnlineStoresResponse nextPageToken */ /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new ListFeatureOnlineStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ReadFeatureValuesRequest. - * @implements IReadFeatureValuesRequest + * @classdesc Represents a ListFeatureOnlineStoresResponse. + * @implements IListFeatureOnlineStoresResponse * @constructor - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse=} [properties] Properties to set */ - function ReadFeatureValuesRequest(properties) { + function ListFeatureOnlineStoresResponse(properties) { + this.featureOnlineStores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49710,103 +50965,92 @@ } /** - * ReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest - * @instance - */ - ReadFeatureValuesRequest.prototype.entityType = ""; - - /** - * ReadFeatureValuesRequest entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * ListFeatureOnlineStoresResponse featureOnlineStores. + * @member {Array.} featureOnlineStores + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @instance */ - ReadFeatureValuesRequest.prototype.entityId = ""; + ListFeatureOnlineStoresResponse.prototype.featureOnlineStores = $util.emptyArray; /** - * ReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * ListFeatureOnlineStoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @instance */ - ReadFeatureValuesRequest.prototype.featureSelector = null; + ListFeatureOnlineStoresResponse.prototype.nextPageToken = ""; /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeatureOnlineStoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} ListFeatureOnlineStoresResponse instance */ - ReadFeatureValuesRequest.create = function create(properties) { - return new ReadFeatureValuesRequest(properties); + ListFeatureOnlineStoresResponse.create = function create(properties) { + return new ListFeatureOnlineStoresResponse(properties); }; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeatureOnlineStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse} message ListFeatureOnlineStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesRequest.encode = function encode(message, writer) { + ListFeatureOnlineStoresResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.featureOnlineStores != null && message.featureOnlineStores.length) + for (var i = 0; i < message.featureOnlineStores.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureOnlineStore.encode(message.featureOnlineStores[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 ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeatureOnlineStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse} message ListFeatureOnlineStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureOnlineStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeatureOnlineStoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} ListFeatureOnlineStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesRequest.decode = function decode(reader, length) { + ListFeatureOnlineStoresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.entityType = reader.string(); + if (!(message.featureOnlineStores && message.featureOnlineStores.length)) + message.featureOnlineStores = []; + message.featureOnlineStores.push($root.google.cloud.aiplatform.v1.FeatureOnlineStore.decode(reader, reader.uint32())); break; } case 2: { - message.entityId = reader.string(); - break; - } - case 3: { - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -49818,145 +51062,149 @@ }; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureOnlineStoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} ListFeatureOnlineStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + ListFeatureOnlineStoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies a ListFeatureOnlineStoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFeatureValuesRequest.verify = function verify(message) { + ListFeatureOnlineStoresResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: string expected"; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; + if (message.featureOnlineStores != null && message.hasOwnProperty("featureOnlineStores")) { + if (!Array.isArray(message.featureOnlineStores)) + return "featureOnlineStores: array expected"; + for (var i = 0; i < message.featureOnlineStores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.verify(message.featureOnlineStores[i]); + if (error) + return "featureOnlineStores." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureOnlineStoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} ListFeatureOnlineStoresResponse */ - ReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest) + ListFeatureOnlineStoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityId != null) - message.entityId = String(object.entityId); - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse(); + if (object.featureOnlineStores) { + if (!Array.isArray(object.featureOnlineStores)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.featureOnlineStores: array expected"); + message.featureOnlineStores = []; + for (var i = 0; i < object.featureOnlineStores.length; ++i) { + if (typeof object.featureOnlineStores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse.featureOnlineStores: object expected"); + message.featureOnlineStores[i] = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.fromObject(object.featureOnlineStores[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureOnlineStoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse} message ListFeatureOnlineStoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFeatureValuesRequest.toObject = function toObject(message, options) { + ListFeatureOnlineStoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.entityType = ""; - object.entityId = ""; - object.featureSelector = null; + if (options.arrays || options.defaults) + object.featureOnlineStores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.featureOnlineStores && message.featureOnlineStores.length) { + object.featureOnlineStores = []; + for (var j = 0; j < message.featureOnlineStores.length; ++j) + object.featureOnlineStores[j] = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.toObject(message.featureOnlineStores[j], options); } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.entityId != null && message.hasOwnProperty("entityId")) - object.entityId = message.entityId; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this ListFeatureOnlineStoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @instance * @returns {Object.} JSON object */ - ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + ListFeatureOnlineStoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadFeatureValuesRequest + * Gets the default type url for ListFeatureOnlineStoresResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureOnlineStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse"; }; - return ReadFeatureValuesRequest; + return ListFeatureOnlineStoresResponse; })(); - v1.ReadFeatureValuesResponse = (function() { + v1.UpdateFeatureOnlineStoreRequest = (function() { /** - * Properties of a ReadFeatureValuesResponse. + * Properties of an UpdateFeatureOnlineStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IReadFeatureValuesResponse - * @property {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null} [header] ReadFeatureValuesResponse header - * @property {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null} [entityView] ReadFeatureValuesResponse entityView + * @interface IUpdateFeatureOnlineStoreRequest + * @property {google.cloud.aiplatform.v1.IFeatureOnlineStore|null} [featureOnlineStore] UpdateFeatureOnlineStoreRequest featureOnlineStore + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureOnlineStoreRequest updateMask */ /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new UpdateFeatureOnlineStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ReadFeatureValuesResponse. - * @implements IReadFeatureValuesResponse + * @classdesc Represents an UpdateFeatureOnlineStoreRequest. + * @implements IUpdateFeatureOnlineStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest=} [properties] Properties to set */ - function ReadFeatureValuesResponse(properties) { + function UpdateFeatureOnlineStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49964,89 +51212,89 @@ } /** - * ReadFeatureValuesResponse header. - * @member {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null|undefined} header - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * UpdateFeatureOnlineStoreRequest featureOnlineStore. + * @member {google.cloud.aiplatform.v1.IFeatureOnlineStore|null|undefined} featureOnlineStore + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @instance */ - ReadFeatureValuesResponse.prototype.header = null; + UpdateFeatureOnlineStoreRequest.prototype.featureOnlineStore = null; /** - * ReadFeatureValuesResponse entityView. - * @member {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null|undefined} entityView - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * UpdateFeatureOnlineStoreRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @instance */ - ReadFeatureValuesResponse.prototype.entityView = null; + UpdateFeatureOnlineStoreRequest.prototype.updateMask = null; /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new UpdateFeatureOnlineStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest} UpdateFeatureOnlineStoreRequest instance */ - ReadFeatureValuesResponse.create = function create(properties) { - return new ReadFeatureValuesResponse(properties); + UpdateFeatureOnlineStoreRequest.create = function create(properties) { + return new UpdateFeatureOnlineStoreRequest(properties); }; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. + * Encodes the specified UpdateFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest} message UpdateFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesResponse.encode = function encode(message, writer) { + UpdateFeatureOnlineStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.entityView != null && Object.hasOwnProperty.call(message, "entityView")) - $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.encode(message.entityView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureOnlineStore != null && Object.hasOwnProperty.call(message, "featureOnlineStore")) + $root.google.cloud.aiplatform.v1.FeatureOnlineStore.encode(message.featureOnlineStore, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. + * Encodes the specified UpdateFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest} message UpdateFeatureOnlineStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureOnlineStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an UpdateFeatureOnlineStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest} UpdateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesResponse.decode = function decode(reader, length) { + UpdateFeatureOnlineStoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.decode(reader, reader.uint32()); + message.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.decode(reader, reader.uint32()); break; } case 2: { - message.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -50058,1105 +51306,853 @@ }; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest} UpdateFeatureOnlineStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureOnlineStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies an UpdateFeatureOnlineStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFeatureValuesResponse.verify = function verify(message) { + UpdateFeatureOnlineStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify(message.header); + if (message.featureOnlineStore != null && message.hasOwnProperty("featureOnlineStore")) { + var error = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.verify(message.featureOnlineStore); if (error) - return "header." + error; + return "featureOnlineStore." + error; } - if (message.entityView != null && message.hasOwnProperty("entityView")) { - var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify(message.entityView); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "entityView." + error; + return "updateMask." + error; } return null; }; /** - * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest} UpdateFeatureOnlineStoreRequest */ - ReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse) + UpdateFeatureOnlineStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse(); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.header: object expected"); - message.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.fromObject(object.header); + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest(); + if (object.featureOnlineStore != null) { + if (typeof object.featureOnlineStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.featureOnlineStore: object expected"); + message.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.fromObject(object.featureOnlineStore); } - if (object.entityView != null) { - if (typeof object.entityView !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.entityView: object expected"); - message.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.fromObject(object.entityView); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureOnlineStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest} message UpdateFeatureOnlineStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFeatureValuesResponse.toObject = function toObject(message, options) { + UpdateFeatureOnlineStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.header = null; - object.entityView = null; + object.featureOnlineStore = null; + object.updateMask = null; } - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.toObject(message.header, options); - if (message.entityView != null && message.hasOwnProperty("entityView")) - object.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.toObject(message.entityView, options); + if (message.featureOnlineStore != null && message.hasOwnProperty("featureOnlineStore")) + object.featureOnlineStore = $root.google.cloud.aiplatform.v1.FeatureOnlineStore.toObject(message.featureOnlineStore, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this UpdateFeatureOnlineStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @instance * @returns {Object.} JSON object */ - ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { + UpdateFeatureOnlineStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ReadFeatureValuesResponse + * Gets the default type url for UpdateFeatureOnlineStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ReadFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureOnlineStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest"; }; - ReadFeatureValuesResponse.FeatureDescriptor = (function() { + return UpdateFeatureOnlineStoreRequest; + })(); - /** - * Properties of a FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @interface IFeatureDescriptor - * @property {string|null} [id] FeatureDescriptor id - */ + v1.DeleteFeatureOnlineStoreRequest = (function() { - /** - * Constructs a new FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @classdesc Represents a FeatureDescriptor. - * @implements IFeatureDescriptor - * @constructor - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set - */ - function FeatureDescriptor(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DeleteFeatureOnlineStoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureOnlineStoreRequest + * @property {string|null} [name] DeleteFeatureOnlineStoreRequest name + * @property {boolean|null} [force] DeleteFeatureOnlineStoreRequest force + */ - /** - * FeatureDescriptor id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @instance - */ - FeatureDescriptor.prototype.id = ""; + /** + * Constructs a new DeleteFeatureOnlineStoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureOnlineStoreRequest. + * @implements IDeleteFeatureOnlineStoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest=} [properties] Properties to set + */ + function DeleteFeatureOnlineStoreRequest(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 FeatureDescriptor instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor instance - */ - FeatureDescriptor.create = function create(properties) { - return new FeatureDescriptor(properties); - }; + /** + * DeleteFeatureOnlineStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @instance + */ + DeleteFeatureOnlineStoreRequest.prototype.name = ""; - /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureDescriptor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - return writer; - }; + /** + * DeleteFeatureOnlineStoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @instance + */ + DeleteFeatureOnlineStoreRequest.prototype.force = false; - /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureDescriptor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new DeleteFeatureOnlineStoreRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest} DeleteFeatureOnlineStoreRequest instance + */ + DeleteFeatureOnlineStoreRequest.create = function create(properties) { + return new DeleteFeatureOnlineStoreRequest(properties); + }; - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureDescriptor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.id = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified DeleteFeatureOnlineStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest} message DeleteFeatureOnlineStoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureOnlineStoreRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureOnlineStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest} message DeleteFeatureOnlineStoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureOnlineStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureOnlineStoreRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest} DeleteFeatureOnlineStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureOnlineStoreRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureDescriptor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a FeatureDescriptor message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureDescriptor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - return null; - }; + /** + * Decodes a DeleteFeatureOnlineStoreRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest} DeleteFeatureOnlineStoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureOnlineStoreRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor - */ - FeatureDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor) - return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor(); - if (object.id != null) - message.id = String(object.id); - return message; - }; + /** + * Verifies a DeleteFeatureOnlineStoreRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureOnlineStoreRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; - /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} message FeatureDescriptor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureDescriptor.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + /** + * Creates a DeleteFeatureOnlineStoreRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest} DeleteFeatureOnlineStoreRequest + */ + DeleteFeatureOnlineStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; - /** - * Converts this FeatureDescriptor to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @instance - * @returns {Object.} JSON object - */ - FeatureDescriptor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteFeatureOnlineStoreRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest} message DeleteFeatureOnlineStoreRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureOnlineStoreRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; - /** - * Gets the default type url for FeatureDescriptor - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor"; - }; + /** + * Converts this DeleteFeatureOnlineStoreRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureOnlineStoreRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeatureDescriptor; - })(); + /** + * Gets the default type url for DeleteFeatureOnlineStoreRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureOnlineStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest"; + }; - ReadFeatureValuesResponse.Header = (function() { + return DeleteFeatureOnlineStoreRequest; + })(); - /** - * Properties of a Header. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @interface IHeader - * @property {string|null} [entityType] Header entityType - * @property {Array.|null} [featureDescriptors] Header featureDescriptors - */ + v1.CreateFeatureViewRequest = (function() { - /** - * Constructs a new Header. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @classdesc Represents a Header. - * @implements IHeader - * @constructor - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set - */ - function Header(properties) { - this.featureDescriptors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a CreateFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeatureViewRequest + * @property {string|null} [parent] CreateFeatureViewRequest parent + * @property {google.cloud.aiplatform.v1.IFeatureView|null} [featureView] CreateFeatureViewRequest featureView + * @property {string|null} [featureViewId] CreateFeatureViewRequest featureViewId + * @property {boolean|null} [runSyncImmediately] CreateFeatureViewRequest runSyncImmediately + */ - /** - * Header entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @instance - */ - Header.prototype.entityType = ""; + /** + * Constructs a new CreateFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeatureViewRequest. + * @implements ICreateFeatureViewRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest=} [properties] Properties to set + */ + function CreateFeatureViewRequest(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]]; + } - /** - * Header featureDescriptors. - * @member {Array.} featureDescriptors - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @instance - */ - Header.prototype.featureDescriptors = $util.emptyArray; + /** + * CreateFeatureViewRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @instance + */ + CreateFeatureViewRequest.prototype.parent = ""; - /** - * Creates a new Header instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header instance - */ - Header.create = function create(properties) { - return new Header(properties); - }; + /** + * CreateFeatureViewRequest featureView. + * @member {google.cloud.aiplatform.v1.IFeatureView|null|undefined} featureView + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @instance + */ + CreateFeatureViewRequest.prototype.featureView = null; - /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Header.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.featureDescriptors != null && message.featureDescriptors.length) - for (var i = 0; i < message.featureDescriptors.length; ++i) - $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.encode(message.featureDescriptors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * CreateFeatureViewRequest featureViewId. + * @member {string} featureViewId + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @instance + */ + CreateFeatureViewRequest.prototype.featureViewId = ""; - /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Header.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateFeatureViewRequest runSyncImmediately. + * @member {boolean} runSyncImmediately + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @instance + */ + CreateFeatureViewRequest.prototype.runSyncImmediately = false; - /** - * Decodes a Header message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Header.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.entityType = reader.string(); - break; - } - case 2: { - if (!(message.featureDescriptors && message.featureDescriptors.length)) - message.featureDescriptors = []; - message.featureDescriptors.push($root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateFeatureViewRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewRequest} CreateFeatureViewRequest instance + */ + CreateFeatureViewRequest.create = function create(properties) { + return new CreateFeatureViewRequest(properties); + }; - /** - * Decodes a Header message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Header.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest} message CreateFeatureViewRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureViewRequest.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.featureView != null && Object.hasOwnProperty.call(message, "featureView")) + $root.google.cloud.aiplatform.v1.FeatureView.encode(message.featureView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureViewId != null && Object.hasOwnProperty.call(message, "featureViewId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureViewId); + if (message.runSyncImmediately != null && Object.hasOwnProperty.call(message, "runSyncImmediately")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.runSyncImmediately); + return writer; + }; - /** - * Verifies a Header message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Header.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.featureDescriptors != null && message.hasOwnProperty("featureDescriptors")) { - if (!Array.isArray(message.featureDescriptors)) - return "featureDescriptors: array expected"; - for (var i = 0; i < message.featureDescriptors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify(message.featureDescriptors[i]); - if (error) - return "featureDescriptors." + error; - } - } - return null; - }; + /** + * Encodes the specified CreateFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewRequest} message CreateFeatureViewRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureViewRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header - */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header) - return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.featureDescriptors) { - if (!Array.isArray(object.featureDescriptors)) - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.featureDescriptors: array expected"); - message.featureDescriptors = []; - for (var i = 0; i < object.featureDescriptors.length; ++i) { - if (typeof object.featureDescriptors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.featureDescriptors: object expected"); - message.featureDescriptors[i] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.fromObject(object.featureDescriptors[i]); + /** + * Decodes a CreateFeatureViewRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewRequest} CreateFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureViewRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureViewRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.featureView = $root.google.cloud.aiplatform.v1.FeatureView.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureViewId = reader.string(); + break; + } + case 4: { + message.runSyncImmediately = reader.bool(); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} message Header - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Header.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.featureDescriptors = []; - if (options.defaults) - object.entityType = ""; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.featureDescriptors && message.featureDescriptors.length) { - object.featureDescriptors = []; - for (var j = 0; j < message.featureDescriptors.length; ++j) - object.featureDescriptors[j] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.toObject(message.featureDescriptors[j], options); - } + /** + * Decodes a CreateFeatureViewRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewRequest} CreateFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureViewRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureViewRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureViewRequest.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.featureView != null && message.hasOwnProperty("featureView")) { + var error = $root.google.cloud.aiplatform.v1.FeatureView.verify(message.featureView); + if (error) + return "featureView." + error; + } + if (message.featureViewId != null && message.hasOwnProperty("featureViewId")) + if (!$util.isString(message.featureViewId)) + return "featureViewId: string expected"; + if (message.runSyncImmediately != null && message.hasOwnProperty("runSyncImmediately")) + if (typeof message.runSyncImmediately !== "boolean") + return "runSyncImmediately: boolean expected"; + return null; + }; + + /** + * Creates a CreateFeatureViewRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewRequest} CreateFeatureViewRequest + */ + CreateFeatureViewRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureViewRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureViewRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featureView != null) { + if (typeof object.featureView !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureViewRequest.featureView: object expected"); + message.featureView = $root.google.cloud.aiplatform.v1.FeatureView.fromObject(object.featureView); + } + if (object.featureViewId != null) + message.featureViewId = String(object.featureViewId); + if (object.runSyncImmediately != null) + message.runSyncImmediately = Boolean(object.runSyncImmediately); + return message; + }; - /** - * Converts this Header to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @instance - * @returns {Object.} JSON object - */ - Header.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CreateFeatureViewRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateFeatureViewRequest} message CreateFeatureViewRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureViewRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.featureView = null; + object.featureViewId = ""; + object.runSyncImmediately = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featureView != null && message.hasOwnProperty("featureView")) + object.featureView = $root.google.cloud.aiplatform.v1.FeatureView.toObject(message.featureView, options); + if (message.featureViewId != null && message.hasOwnProperty("featureViewId")) + object.featureViewId = message.featureViewId; + if (message.runSyncImmediately != null && message.hasOwnProperty("runSyncImmediately")) + object.runSyncImmediately = message.runSyncImmediately; + return object; + }; - /** - * Gets the default type url for Header - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Header.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header"; - }; + /** + * Converts this CreateFeatureViewRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureViewRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Header; - })(); + /** + * Gets the default type url for CreateFeatureViewRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureViewRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureViewRequest"; + }; - ReadFeatureValuesResponse.EntityView = (function() { + return CreateFeatureViewRequest; + })(); - /** - * Properties of an EntityView. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @interface IEntityView - * @property {string|null} [entityId] EntityView entityId - * @property {Array.|null} [data] EntityView data - */ + v1.GetFeatureViewRequest = (function() { - /** - * Constructs a new EntityView. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse - * @classdesc Represents an EntityView. - * @implements IEntityView - * @constructor - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set - */ - function EntityView(properties) { - this.data = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a GetFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetFeatureViewRequest + * @property {string|null} [name] GetFeatureViewRequest name + */ - /** - * EntityView entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @instance - */ - EntityView.prototype.entityId = ""; + /** + * Constructs a new GetFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetFeatureViewRequest. + * @implements IGetFeatureViewRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest=} [properties] Properties to set + */ + function GetFeatureViewRequest(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]]; + } - /** - * EntityView data. - * @member {Array.} data - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @instance - */ - EntityView.prototype.data = $util.emptyArray; + /** + * GetFeatureViewRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @instance + */ + GetFeatureViewRequest.prototype.name = ""; - /** - * Creates a new EntityView instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView instance - */ - EntityView.create = function create(properties) { - return new EntityView(properties); - }; + /** + * Creates a new GetFeatureViewRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeatureViewRequest} GetFeatureViewRequest instance + */ + GetFeatureViewRequest.create = function create(properties) { + return new GetFeatureViewRequest(properties); + }; - /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityView.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.data != null && message.data.length) - for (var i = 0; i < message.data.length; ++i) - $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified GetFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest} message GetFeatureViewRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureViewRequest.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 EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityView.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureViewRequest} message GetFeatureViewRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureViewRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an EntityView message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityView.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.entityId = reader.string(); - break; - } - case 2: { - if (!(message.data && message.data.length)) - message.data = []; - message.data.push($root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetFeatureViewRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetFeatureViewRequest} GetFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureViewRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureViewRequest(); + 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 an EntityView message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityView.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an EntityView message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EntityView.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: string expected"; - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; - for (var i = 0; i < message.data.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify(message.data[i]); - if (error) - return "data." + error; - } - } - return null; - }; + /** + * Decodes a GetFeatureViewRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetFeatureViewRequest} GetFeatureViewRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureViewRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an EntityView message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView - */ - EntityView.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView) - return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView(); - if (object.entityId != null) - message.entityId = String(object.entityId); - if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.data: array expected"); - message.data = []; - for (var i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.data: object expected"); - message.data[i] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.fromObject(object.data[i]); - } - } - return message; - }; + /** + * Verifies a GetFeatureViewRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFeatureViewRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} message EntityView - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EntityView.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) - object.entityId = ""; - if (message.entityId != null && message.hasOwnProperty("entityId")) - object.entityId = message.entityId; - if (message.data && message.data.length) { - object.data = []; - for (var j = 0; j < message.data.length; ++j) - object.data[j] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.toObject(message.data[j], options); - } + /** + * Creates a GetFeatureViewRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetFeatureViewRequest} GetFeatureViewRequest + */ + GetFeatureViewRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureViewRequest) return object; - }; - - /** - * Converts this EntityView to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @instance - * @returns {Object.} JSON object - */ - EntityView.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EntityView - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EntityView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView"; - }; - - EntityView.Data = (function() { - - /** - * Properties of a Data. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @interface IData - * @property {google.cloud.aiplatform.v1.IFeatureValue|null} [value] Data value - * @property {google.cloud.aiplatform.v1.IFeatureValueList|null} [values] Data values - */ - - /** - * Constructs a new Data. - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView - * @classdesc Represents a Data. - * @implements IData - * @constructor - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set - */ - function Data(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]]; - } - - /** - * Data value. - * @member {google.cloud.aiplatform.v1.IFeatureValue|null|undefined} value - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Data.prototype.value = null; - - /** - * Data values. - * @member {google.cloud.aiplatform.v1.IFeatureValueList|null|undefined} values - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Data.prototype.values = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Data data. - * @member {"value"|"values"|undefined} data - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Object.defineProperty(Data.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["value", "values"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Data instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data instance - */ - Data.create = function create(properties) { - return new Data(properties); - }; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Data.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - $root.google.cloud.aiplatform.v1.FeatureValueList.encode(message.values, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Data.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Data message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Data.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = $root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32()); - break; - } - case 2: { - message.values = $root.google.cloud.aiplatform.v1.FeatureValueList.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Data.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Data message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Data.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.data = 1; - { - var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.value); - if (error) - return "value." + error; - } - } - if (message.values != null && message.hasOwnProperty("values")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.google.cloud.aiplatform.v1.FeatureValueList.verify(message.values); - if (error) - return "values." + error; - } - } - return null; - }; - - /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data - */ - Data.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data) - return object; - var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data(); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.value: object expected"); - message.value = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.value); - } - if (object.values != null) { - if (typeof object.values !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.values: object expected"); - message.values = $root.google.cloud.aiplatform.v1.FeatureValueList.fromObject(object.values); - } - return message; - }; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} message Data - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Data.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.value, options); - if (options.oneofs) - object.data = "value"; - } - if (message.values != null && message.hasOwnProperty("values")) { - object.values = $root.google.cloud.aiplatform.v1.FeatureValueList.toObject(message.values, options); - if (options.oneofs) - object.data = "values"; - } - return object; - }; - - /** - * Converts this Data to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @instance - * @returns {Object.} JSON object - */ - Data.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.cloud.aiplatform.v1.GetFeatureViewRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Gets the default type url for Data - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Data.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data"; - }; + /** + * Creates a plain object from a GetFeatureViewRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {google.cloud.aiplatform.v1.GetFeatureViewRequest} message GetFeatureViewRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeatureViewRequest.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; + }; - return Data; - })(); + /** + * Converts this GetFeatureViewRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @instance + * @returns {Object.} JSON object + */ + GetFeatureViewRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return EntityView; - })(); + /** + * Gets the default type url for GetFeatureViewRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetFeatureViewRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFeatureViewRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureViewRequest"; + }; - return ReadFeatureValuesResponse; + return GetFeatureViewRequest; })(); - v1.StreamingReadFeatureValuesRequest = (function() { + v1.ListFeatureViewsRequest = (function() { /** - * Properties of a StreamingReadFeatureValuesRequest. + * Properties of a ListFeatureViewsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IStreamingReadFeatureValuesRequest - * @property {string|null} [entityType] StreamingReadFeatureValuesRequest entityType - * @property {Array.|null} [entityIds] StreamingReadFeatureValuesRequest entityIds - * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] StreamingReadFeatureValuesRequest featureSelector + * @interface IListFeatureViewsRequest + * @property {string|null} [parent] ListFeatureViewsRequest parent + * @property {string|null} [filter] ListFeatureViewsRequest filter + * @property {number|null} [pageSize] ListFeatureViewsRequest pageSize + * @property {string|null} [pageToken] ListFeatureViewsRequest pageToken + * @property {string|null} [orderBy] ListFeatureViewsRequest orderBy */ /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new ListFeatureViewsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StreamingReadFeatureValuesRequest. - * @implements IStreamingReadFeatureValuesRequest + * @classdesc Represents a ListFeatureViewsRequest. + * @implements IListFeatureViewsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest=} [properties] Properties to set */ - function StreamingReadFeatureValuesRequest(properties) { - this.entityIds = []; + function ListFeatureViewsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51164,106 +52160,131 @@ } /** - * StreamingReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * ListFeatureViewsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @instance */ - StreamingReadFeatureValuesRequest.prototype.entityType = ""; + ListFeatureViewsRequest.prototype.parent = ""; /** - * StreamingReadFeatureValuesRequest entityIds. - * @member {Array.} entityIds - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * ListFeatureViewsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @instance */ - StreamingReadFeatureValuesRequest.prototype.entityIds = $util.emptyArray; + ListFeatureViewsRequest.prototype.filter = ""; /** - * StreamingReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * ListFeatureViewsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @instance */ - StreamingReadFeatureValuesRequest.prototype.featureSelector = null; + ListFeatureViewsRequest.prototype.pageSize = 0; /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * ListFeatureViewsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest + * @instance + */ + ListFeatureViewsRequest.prototype.pageToken = ""; + + /** + * ListFeatureViewsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest + * @instance + */ + ListFeatureViewsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFeatureViewsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsRequest} ListFeatureViewsRequest instance */ - StreamingReadFeatureValuesRequest.create = function create(properties) { - return new StreamingReadFeatureValuesRequest(properties); + ListFeatureViewsRequest.create = function create(properties) { + return new ListFeatureViewsRequest(properties); }; /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeatureViewsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest} message ListFeatureViewsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingReadFeatureValuesRequest.encode = function encode(message, writer) { + ListFeatureViewsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.entityIds != null && message.entityIds.length) - for (var i = 0; i < message.entityIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIds[i]); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeatureViewsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static - * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewsRequest} message ListFeatureViewsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureViewsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeatureViewsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsRequest} ListFeatureViewsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingReadFeatureValuesRequest.decode = function decode(reader, length) { + ListFeatureViewsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureViewsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.entityType = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.entityIds && message.entityIds.length)) - message.entityIds = []; - message.entityIds.push(reader.string()); + message.filter = reader.string(); break; } case 3: { - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -51275,166 +52296,157 @@ }; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsRequest} ListFeatureViewsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + ListFeatureViewsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingReadFeatureValuesRequest message. + * Verifies a ListFeatureViewsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingReadFeatureValuesRequest.verify = function verify(message) { + ListFeatureViewsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityIds != null && message.hasOwnProperty("entityIds")) { - if (!Array.isArray(message.entityIds)) - return "entityIds: array expected"; - for (var i = 0; i < message.entityIds.length; ++i) - if (!$util.isString(message.entityIds[i])) - return "entityIds: string[] expected"; - } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; - } + if (message.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 StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsRequest} ListFeatureViewsRequest */ - StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest) + ListFeatureViewsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureViewsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityIds) { - if (!Array.isArray(object.entityIds)) - throw TypeError(".google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.entityIds: array expected"); - message.entityIds = []; - for (var i = 0; i < object.entityIds.length; ++i) - message.entityIds[i] = String(object.entityIds[i]); - } - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); - } + var message = new $root.google.cloud.aiplatform.v1.ListFeatureViewsRequest(); + 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 StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureViewsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static - * @param {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.ListFeatureViewsRequest} message ListFeatureViewsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingReadFeatureValuesRequest.toObject = function toObject(message, options) { + ListFeatureViewsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entityIds = []; if (options.defaults) { - object.entityType = ""; - object.featureSelector = null; - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.entityIds && message.entityIds.length) { - object.entityIds = []; - for (var j = 0; j < message.entityIds.length; ++j) - object.entityIds[j] = message.entityIds[j]; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this StreamingReadFeatureValuesRequest to JSON. + * Converts this ListFeatureViewsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @instance * @returns {Object.} JSON object */ - StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + ListFeatureViewsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingReadFeatureValuesRequest + * Gets the default type url for ListFeatureViewsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureViewsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureViewsRequest"; }; - return StreamingReadFeatureValuesRequest; + return ListFeatureViewsRequest; })(); - v1.FeatureValue = (function() { + v1.ListFeatureViewsResponse = (function() { /** - * Properties of a FeatureValue. + * Properties of a ListFeatureViewsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IFeatureValue - * @property {boolean|null} [boolValue] FeatureValue boolValue - * @property {number|null} [doubleValue] FeatureValue doubleValue - * @property {number|Long|null} [int64Value] FeatureValue int64Value - * @property {string|null} [stringValue] FeatureValue stringValue - * @property {google.cloud.aiplatform.v1.IBoolArray|null} [boolArrayValue] FeatureValue boolArrayValue - * @property {google.cloud.aiplatform.v1.IDoubleArray|null} [doubleArrayValue] FeatureValue doubleArrayValue - * @property {google.cloud.aiplatform.v1.IInt64Array|null} [int64ArrayValue] FeatureValue int64ArrayValue - * @property {google.cloud.aiplatform.v1.IStringArray|null} [stringArrayValue] FeatureValue stringArrayValue - * @property {Uint8Array|null} [bytesValue] FeatureValue bytesValue - * @property {google.cloud.aiplatform.v1.FeatureValue.IMetadata|null} [metadata] FeatureValue metadata + * @interface IListFeatureViewsResponse + * @property {Array.|null} [featureViews] ListFeatureViewsResponse featureViews + * @property {string|null} [nextPageToken] ListFeatureViewsResponse nextPageToken */ /** - * Constructs a new FeatureValue. + * Constructs a new ListFeatureViewsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeatureValue. - * @implements IFeatureValue + * @classdesc Represents a ListFeatureViewsResponse. + * @implements IListFeatureViewsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IFeatureValue=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureViewsResponse=} [properties] Properties to set */ - function FeatureValue(properties) { + function ListFeatureViewsResponse(properties) { + this.featureViews = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51442,215 +52454,92 @@ } /** - * FeatureValue boolValue. - * @member {boolean|null|undefined} boolValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.boolValue = null; - - /** - * FeatureValue doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.doubleValue = null; - - /** - * FeatureValue int64Value. - * @member {number|Long|null|undefined} int64Value - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.int64Value = null; - - /** - * FeatureValue stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.stringValue = null; - - /** - * FeatureValue boolArrayValue. - * @member {google.cloud.aiplatform.v1.IBoolArray|null|undefined} boolArrayValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.boolArrayValue = null; - - /** - * FeatureValue doubleArrayValue. - * @member {google.cloud.aiplatform.v1.IDoubleArray|null|undefined} doubleArrayValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.doubleArrayValue = null; - - /** - * FeatureValue int64ArrayValue. - * @member {google.cloud.aiplatform.v1.IInt64Array|null|undefined} int64ArrayValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.int64ArrayValue = null; - - /** - * FeatureValue stringArrayValue. - * @member {google.cloud.aiplatform.v1.IStringArray|null|undefined} stringArrayValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.stringArrayValue = null; - - /** - * FeatureValue bytesValue. - * @member {Uint8Array|null|undefined} bytesValue - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @instance - */ - FeatureValue.prototype.bytesValue = null; - - /** - * FeatureValue metadata. - * @member {google.cloud.aiplatform.v1.FeatureValue.IMetadata|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.FeatureValue + * ListFeatureViewsResponse featureViews. + * @member {Array.} featureViews + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @instance */ - FeatureValue.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListFeatureViewsResponse.prototype.featureViews = $util.emptyArray; /** - * FeatureValue value. - * @member {"boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"|undefined} value - * @memberof google.cloud.aiplatform.v1.FeatureValue + * ListFeatureViewsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @instance */ - Object.defineProperty(FeatureValue.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["boolValue", "doubleValue", "int64Value", "stringValue", "boolArrayValue", "doubleArrayValue", "int64ArrayValue", "stringArrayValue", "bytesValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListFeatureViewsResponse.prototype.nextPageToken = ""; /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new ListFeatureViewsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsResponse} ListFeatureViewsResponse instance */ - FeatureValue.create = function create(properties) { - return new FeatureValue(properties); + ListFeatureViewsResponse.create = function create(properties) { + return new ListFeatureViewsResponse(properties); }; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. + * Encodes the specified ListFeatureViewsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValue} message FeatureValue message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewsResponse} message ListFeatureViewsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValue.encode = function encode(message, writer) { + ListFeatureViewsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.boolValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.int64Value); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stringValue); - if (message.boolArrayValue != null && Object.hasOwnProperty.call(message, "boolArrayValue")) - $root.google.cloud.aiplatform.v1.BoolArray.encode(message.boolArrayValue, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.doubleArrayValue != null && Object.hasOwnProperty.call(message, "doubleArrayValue")) - $root.google.cloud.aiplatform.v1.DoubleArray.encode(message.doubleArrayValue, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.int64ArrayValue != null && Object.hasOwnProperty.call(message, "int64ArrayValue")) - $root.google.cloud.aiplatform.v1.Int64Array.encode(message.int64ArrayValue, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.stringArrayValue != null && Object.hasOwnProperty.call(message, "stringArrayValue")) - $root.google.cloud.aiplatform.v1.StringArray.encode(message.stringArrayValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.bytesValue); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.encode(message.metadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.featureViews != null && message.featureViews.length) + for (var i = 0; i < message.featureViews.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureView.encode(message.featureViews[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 FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. + * Encodes the specified ListFeatureViewsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValue} message FeatureValue message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewsResponse} message ListFeatureViewsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureViewsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes a ListFeatureViewsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsResponse} ListFeatureViewsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValue.decode = function decode(reader, length) { + ListFeatureViewsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureViewsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.boolValue = reader.bool(); + if (!(message.featureViews && message.featureViews.length)) + message.featureViews = []; + message.featureViews.push($root.google.cloud.aiplatform.v1.FeatureView.decode(reader, reader.uint32())); break; } case 2: { - message.doubleValue = reader.double(); - break; - } - case 5: { - message.int64Value = reader.int64(); - break; - } - case 6: { - message.stringValue = reader.string(); - break; - } - case 7: { - message.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.decode(reader, reader.uint32()); - break; - } - case 8: { - message.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.decode(reader, reader.uint32()); - break; - } - case 11: { - message.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.decode(reader, reader.uint32()); - break; - } - case 12: { - message.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.decode(reader, reader.uint32()); - break; - } - case 13: { - message.bytesValue = reader.bytes(); - break; - } - case 14: { - message.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -51662,498 +52551,149 @@ }; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsResponse} ListFeatureViewsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValue.decodeDelimited = function decodeDelimited(reader) { + ListFeatureViewsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValue message. + * Verifies a ListFeatureViewsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValue.verify = function verify(message) { + ListFeatureViewsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - properties.value = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - } - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) - return "int64Value: integer|Long expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1.BoolArray.verify(message.boolArrayValue); - if (error) - return "boolArrayValue." + error; - } - } - if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1.DoubleArray.verify(message.doubleArrayValue); - if (error) - return "doubleArrayValue." + error; - } - } - if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1.Int64Array.verify(message.int64ArrayValue); + if (message.featureViews != null && message.hasOwnProperty("featureViews")) { + if (!Array.isArray(message.featureViews)) + return "featureViews: array expected"; + for (var i = 0; i < message.featureViews.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureView.verify(message.featureViews[i]); if (error) - return "int64ArrayValue." + error; + return "featureViews." + error; } } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1.StringArray.verify(message.stringArrayValue); - if (error) - return "stringArrayValue." + error; - } - } - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) - return "bytesValue: buffer expected"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.verify(message.metadata); - if (error) - return "metadata." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1.ListFeatureViewsResponse} ListFeatureViewsResponse */ - FeatureValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValue) + ListFeatureViewsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureViewsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.FeatureValue(); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.int64Value != null) - if ($util.Long) - (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; - else if (typeof object.int64Value === "string") - message.int64Value = parseInt(object.int64Value, 10); - else if (typeof object.int64Value === "number") - message.int64Value = object.int64Value; - else if (typeof object.int64Value === "object") - message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.boolArrayValue != null) { - if (typeof object.boolArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.boolArrayValue: object expected"); - message.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.fromObject(object.boolArrayValue); - } - if (object.doubleArrayValue != null) { - if (typeof object.doubleArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.doubleArrayValue: object expected"); - message.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.fromObject(object.doubleArrayValue); - } - if (object.int64ArrayValue != null) { - if (typeof object.int64ArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.int64ArrayValue: object expected"); - message.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.fromObject(object.int64ArrayValue); - } - if (object.stringArrayValue != null) { - if (typeof object.stringArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.stringArrayValue: object expected"); - message.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.fromObject(object.stringArrayValue); - } - if (object.bytesValue != null) - if (typeof object.bytesValue === "string") - $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); - else if (object.bytesValue.length >= 0) - message.bytesValue = object.bytesValue; - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.metadata: object expected"); - message.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.fromObject(object.metadata); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureViewsResponse(); + if (object.featureViews) { + if (!Array.isArray(object.featureViews)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureViewsResponse.featureViews: array expected"); + message.featureViews = []; + for (var i = 0; i < object.featureViews.length; ++i) { + if (typeof object.featureViews[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureViewsResponse.featureViews: object expected"); + message.featureViews[i] = $root.google.cloud.aiplatform.v1.FeatureView.fromObject(object.featureViews[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureViewsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static - * @param {google.cloud.aiplatform.v1.FeatureValue} message FeatureValue + * @param {google.cloud.aiplatform.v1.ListFeatureViewsResponse} message ListFeatureViewsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValue.toObject = function toObject(message, options) { + ListFeatureViewsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.featureViews = []; if (options.defaults) - object.metadata = null; - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - object.boolValue = message.boolValue; - if (options.oneofs) - object.value = "boolValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; - } - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - if (typeof message.int64Value === "number") - object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; - else - object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; - if (options.oneofs) - object.value = "int64Value"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; - } - if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { - object.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.toObject(message.boolArrayValue, options); - if (options.oneofs) - object.value = "boolArrayValue"; - } - if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { - object.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.toObject(message.doubleArrayValue, options); - if (options.oneofs) - object.value = "doubleArrayValue"; - } - if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { - object.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.toObject(message.int64ArrayValue, options); - if (options.oneofs) - object.value = "int64ArrayValue"; - } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - object.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.toObject(message.stringArrayValue, options); - if (options.oneofs) - object.value = "stringArrayValue"; - } - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; - if (options.oneofs) - object.value = "bytesValue"; + object.nextPageToken = ""; + if (message.featureViews && message.featureViews.length) { + object.featureViews = []; + for (var j = 0; j < message.featureViews.length; ++j) + object.featureViews[j] = $root.google.cloud.aiplatform.v1.FeatureView.toObject(message.featureViews[j], options); } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.toObject(message.metadata, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FeatureValue to JSON. + * Converts this ListFeatureViewsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @instance * @returns {Object.} JSON object */ - FeatureValue.prototype.toJSON = function toJSON() { + ListFeatureViewsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FeatureValue + * Gets the default type url for ListFeatureViewsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FeatureValue + * @memberof google.cloud.aiplatform.v1.ListFeatureViewsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FeatureValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureViewsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValue"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureViewsResponse"; }; - FeatureValue.Metadata = (function() { - - /** - * Properties of a Metadata. - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @interface IMetadata - * @property {google.protobuf.ITimestamp|null} [generateTime] Metadata generateTime - */ - - /** - * Constructs a new Metadata. - * @memberof google.cloud.aiplatform.v1.FeatureValue - * @classdesc Represents a Metadata. - * @implements IMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata=} [properties] Properties to set - */ - function Metadata(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]]; - } - - /** - * Metadata generateTime. - * @member {google.protobuf.ITimestamp|null|undefined} generateTime - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @instance - */ - Metadata.prototype.generateTime = null; - - /** - * Creates a new Metadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata instance - */ - Metadata.create = function create(properties) { - return new Metadata(properties); - }; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.generateTime != null && Object.hasOwnProperty.call(message, "generateTime")) - $root.google.protobuf.Timestamp.encode(message.generateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValue.Metadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.generateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.generateTime != null && message.hasOwnProperty("generateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.generateTime); - if (error) - return "generateTime." + error; - } - return null; - }; - - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata - */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValue.Metadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.FeatureValue.Metadata(); - if (object.generateTime != null) { - if (typeof object.generateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.Metadata.generateTime: object expected"); - message.generateTime = $root.google.protobuf.Timestamp.fromObject(object.generateTime); - } - return message; - }; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1.FeatureValue.Metadata} message Metadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.generateTime = null; - if (message.generateTime != null && message.hasOwnProperty("generateTime")) - object.generateTime = $root.google.protobuf.Timestamp.toObject(message.generateTime, options); - return object; - }; - - /** - * Converts this Metadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @instance - * @returns {Object.} JSON object - */ - Metadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValue.Metadata"; - }; - - return Metadata; - })(); - - return FeatureValue; + return ListFeatureViewsResponse; })(); - v1.FeatureValueList = (function() { + v1.UpdateFeatureViewRequest = (function() { /** - * Properties of a FeatureValueList. + * Properties of an UpdateFeatureViewRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IFeatureValueList - * @property {Array.|null} [values] FeatureValueList values + * @interface IUpdateFeatureViewRequest + * @property {google.cloud.aiplatform.v1.IFeatureView|null} [featureView] UpdateFeatureViewRequest featureView + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureViewRequest updateMask */ /** - * Constructs a new FeatureValueList. + * Constructs a new UpdateFeatureViewRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeatureValueList. - * @implements IFeatureValueList + * @classdesc Represents an UpdateFeatureViewRequest. + * @implements IUpdateFeatureViewRequest * @constructor - * @param {google.cloud.aiplatform.v1.IFeatureValueList=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest=} [properties] Properties to set */ - function FeatureValueList(properties) { - this.values = []; + function UpdateFeatureViewRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52161,78 +52701,89 @@ } /** - * FeatureValueList values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * UpdateFeatureViewRequest featureView. + * @member {google.cloud.aiplatform.v1.IFeatureView|null|undefined} featureView + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @instance */ - FeatureValueList.prototype.values = $util.emptyArray; + UpdateFeatureViewRequest.prototype.featureView = null; /** - * Creates a new FeatureValueList instance using the specified properties. + * UpdateFeatureViewRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest + * @instance + */ + UpdateFeatureViewRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateFeatureViewRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewRequest} UpdateFeatureViewRequest instance */ - FeatureValueList.create = function create(properties) { - return new FeatureValueList(properties); + UpdateFeatureViewRequest.create = function create(properties) { + return new UpdateFeatureViewRequest(properties); }; /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. + * Encodes the specified UpdateFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueList} message FeatureValueList message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest} message UpdateFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueList.encode = function encode(message, writer) { + UpdateFeatureViewRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureView != null && Object.hasOwnProperty.call(message, "featureView")) + $root.google.cloud.aiplatform.v1.FeatureView.encode(message.featureView, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. + * Encodes the specified UpdateFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueList} message FeatureValueList message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewRequest} message UpdateFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureViewRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueList message from the specified reader or buffer. + * Decodes an UpdateFeatureViewRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewRequest} UpdateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueList.decode = function decode(reader, length) { + UpdateFeatureViewRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValueList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureViewRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32())); + message.featureView = $root.google.cloud.aiplatform.v1.FeatureView.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -52244,140 +52795,141 @@ }; /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureViewRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewRequest} UpdateFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueList.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureViewRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValueList message. + * Verifies an UpdateFeatureViewRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValueList.verify = function verify(message) { + UpdateFeatureViewRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.values[i]); - if (error) - return "values." + error; - } + if (message.featureView != null && message.hasOwnProperty("featureView")) { + var error = $root.google.cloud.aiplatform.v1.FeatureView.verify(message.featureView); + if (error) + return "featureView." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewRequest} UpdateFeatureViewRequest */ - FeatureValueList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValueList) + UpdateFeatureViewRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureViewRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.FeatureValueList(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.FeatureValueList.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValueList.values: object expected"); - message.values[i] = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.values[i]); - } + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureViewRequest(); + if (object.featureView != null) { + if (typeof object.featureView !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureViewRequest.featureView: object expected"); + message.featureView = $root.google.cloud.aiplatform.v1.FeatureView.fromObject(object.featureView); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureViewRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureViewRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.FeatureValueList} message FeatureValueList + * @param {google.cloud.aiplatform.v1.UpdateFeatureViewRequest} message UpdateFeatureViewRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueList.toObject = function toObject(message, options) { + UpdateFeatureViewRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.values[j], options); + if (options.defaults) { + object.featureView = null; + object.updateMask = null; } + if (message.featureView != null && message.hasOwnProperty("featureView")) + object.featureView = $root.google.cloud.aiplatform.v1.FeatureView.toObject(message.featureView, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FeatureValueList to JSON. + * Converts this UpdateFeatureViewRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @instance * @returns {Object.} JSON object */ - FeatureValueList.prototype.toJSON = function toJSON() { + UpdateFeatureViewRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FeatureValueList + * Gets the default type url for UpdateFeatureViewRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FeatureValueList + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FeatureValueList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureViewRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValueList"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureViewRequest"; }; - return FeatureValueList; + return UpdateFeatureViewRequest; })(); - v1.BoolArray = (function() { + v1.DeleteFeatureViewRequest = (function() { /** - * Properties of a BoolArray. + * Properties of a DeleteFeatureViewRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBoolArray - * @property {Array.|null} [values] BoolArray values + * @interface IDeleteFeatureViewRequest + * @property {string|null} [name] DeleteFeatureViewRequest name */ /** - * Constructs a new BoolArray. + * Constructs a new DeleteFeatureViewRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BoolArray. - * @implements IBoolArray + * @classdesc Represents a DeleteFeatureViewRequest. + * @implements IDeleteFeatureViewRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBoolArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest=} [properties] Properties to set */ - function BoolArray(properties) { - this.values = []; + function DeleteFeatureViewRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52385,86 +52937,75 @@ } /** - * BoolArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.BoolArray + * DeleteFeatureViewRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @instance */ - BoolArray.prototype.values = $util.emptyArray; + DeleteFeatureViewRequest.prototype.name = ""; /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new DeleteFeatureViewRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IBoolArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureViewRequest} DeleteFeatureViewRequest instance */ - BoolArray.create = function create(properties) { - return new BoolArray(properties); + DeleteFeatureViewRequest.create = function create(properties) { + return new DeleteFeatureViewRequest(properties); }; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. + * Encodes the specified DeleteFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureViewRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IBoolArray} message BoolArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest} message DeleteFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoolArray.encode = function encode(message, writer) { + DeleteFeatureViewRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.bool(message.values[i]); - writer.ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. + * Encodes the specified DeleteFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureViewRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.IBoolArray} message BoolArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeatureViewRequest} message DeleteFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoolArray.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeatureViewRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a DeleteFeatureViewRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1.DeleteFeatureViewRequest} DeleteFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoolArray.decode = function decode(reader, length) { + DeleteFeatureViewRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BoolArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureViewRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.bool()); - } else - message.values.push(reader.bool()); + message.name = reader.string(); break; } default: @@ -52476,135 +53017,122 @@ }; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureViewRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1.DeleteFeatureViewRequest} DeleteFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoolArray.decodeDelimited = function decodeDelimited(reader) { + DeleteFeatureViewRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BoolArray message. + * Verifies a DeleteFeatureViewRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BoolArray.verify = function verify(message) { + DeleteFeatureViewRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "boolean") - return "values: boolean[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1.DeleteFeatureViewRequest} DeleteFeatureViewRequest */ - BoolArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BoolArray) + DeleteFeatureViewRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureViewRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BoolArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.BoolArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Boolean(object.values[i]); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureViewRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFeatureViewRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.BoolArray} message BoolArray + * @param {google.cloud.aiplatform.v1.DeleteFeatureViewRequest} message DeleteFeatureViewRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoolArray.toObject = function toObject(message, options) { + DeleteFeatureViewRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BoolArray to JSON. + * Converts this DeleteFeatureViewRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @instance * @returns {Object.} JSON object */ - BoolArray.prototype.toJSON = function toJSON() { + DeleteFeatureViewRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BoolArray + * Gets the default type url for DeleteFeatureViewRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BoolArray + * @memberof google.cloud.aiplatform.v1.DeleteFeatureViewRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BoolArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFeatureViewRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BoolArray"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureViewRequest"; }; - return BoolArray; + return DeleteFeatureViewRequest; })(); - v1.DoubleArray = (function() { + v1.CreateFeatureOnlineStoreOperationMetadata = (function() { /** - * Properties of a DoubleArray. + * Properties of a CreateFeatureOnlineStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IDoubleArray - * @property {Array.|null} [values] DoubleArray values + * @interface ICreateFeatureOnlineStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOnlineStoreOperationMetadata genericMetadata */ /** - * Constructs a new DoubleArray. + * Constructs a new CreateFeatureOnlineStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DoubleArray. - * @implements IDoubleArray + * @classdesc Represents a CreateFeatureOnlineStoreOperationMetadata. + * @implements ICreateFeatureOnlineStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IDoubleArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata=} [properties] Properties to set */ - function DoubleArray(properties) { - this.values = []; + function CreateFeatureOnlineStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52612,86 +53140,75 @@ } /** - * DoubleArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.DoubleArray + * CreateFeatureOnlineStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @instance */ - DoubleArray.prototype.values = $util.emptyArray; + CreateFeatureOnlineStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new CreateFeatureOnlineStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDoubleArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata} CreateFeatureOnlineStoreOperationMetadata instance */ - DoubleArray.create = function create(properties) { - return new DoubleArray(properties); + CreateFeatureOnlineStoreOperationMetadata.create = function create(properties) { + return new CreateFeatureOnlineStoreOperationMetadata(properties); }; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. + * Encodes the specified CreateFeatureOnlineStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDoubleArray} message DoubleArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata} message CreateFeatureOnlineStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DoubleArray.encode = function encode(message, writer) { + CreateFeatureOnlineStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. + * Encodes the specified CreateFeatureOnlineStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDoubleArray} message DoubleArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata} message CreateFeatureOnlineStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureOnlineStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a CreateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata} CreateFeatureOnlineStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DoubleArray.decode = function decode(reader, length) { + CreateFeatureOnlineStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DoubleArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -52703,135 +53220,127 @@ }; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata} CreateFeatureOnlineStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DoubleArray.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureOnlineStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DoubleArray message. + * Verifies a CreateFeatureOnlineStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DoubleArray.verify = function verify(message) { + CreateFeatureOnlineStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } return null; }; /** - * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOnlineStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata} CreateFeatureOnlineStoreOperationMetadata */ - DoubleArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DoubleArray) + CreateFeatureOnlineStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DoubleArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.DoubleArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureOnlineStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DoubleArray} message DoubleArray + * @param {google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata} message CreateFeatureOnlineStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DoubleArray.toObject = function toObject(message, options) { + CreateFeatureOnlineStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this DoubleArray to JSON. + * Converts this CreateFeatureOnlineStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - DoubleArray.prototype.toJSON = function toJSON() { + CreateFeatureOnlineStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DoubleArray + * Gets the default type url for CreateFeatureOnlineStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DoubleArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DoubleArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeatureOnlineStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DoubleArray"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata"; }; - return DoubleArray; + return CreateFeatureOnlineStoreOperationMetadata; })(); - v1.Int64Array = (function() { + v1.UpdateFeatureOnlineStoreOperationMetadata = (function() { /** - * Properties of an Int64Array. + * Properties of an UpdateFeatureOnlineStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IInt64Array - * @property {Array.|null} [values] Int64Array values + * @interface IUpdateFeatureOnlineStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeatureOnlineStoreOperationMetadata genericMetadata */ /** - * Constructs a new Int64Array. + * Constructs a new UpdateFeatureOnlineStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an Int64Array. - * @implements IInt64Array + * @classdesc Represents an UpdateFeatureOnlineStoreOperationMetadata. + * @implements IUpdateFeatureOnlineStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IInt64Array=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata=} [properties] Properties to set */ - function Int64Array(properties) { - this.values = []; + function UpdateFeatureOnlineStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52839,86 +53348,75 @@ } /** - * Int64Array values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.Int64Array + * UpdateFeatureOnlineStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @instance */ - Int64Array.prototype.values = $util.emptyArray; + UpdateFeatureOnlineStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new UpdateFeatureOnlineStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IInt64Array=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata} UpdateFeatureOnlineStoreOperationMetadata instance */ - Int64Array.create = function create(properties) { - return new Int64Array(properties); + UpdateFeatureOnlineStoreOperationMetadata.create = function create(properties) { + return new UpdateFeatureOnlineStoreOperationMetadata(properties); }; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. + * Encodes the specified UpdateFeatureOnlineStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IInt64Array} message Int64Array message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata} message UpdateFeatureOnlineStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64Array.encode = function encode(message, writer) { + UpdateFeatureOnlineStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.int64(message.values[i]); - writer.ldelim(); - } + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. + * Encodes the specified UpdateFeatureOnlineStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IInt64Array} message Int64Array message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata} message UpdateFeatureOnlineStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64Array.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureOnlineStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes an UpdateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata} UpdateFeatureOnlineStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64Array.decode = function decode(reader, length) { + UpdateFeatureOnlineStoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Int64Array(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.int64()); - } else - message.values.push(reader.int64()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -52930,145 +53428,127 @@ }; /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureOnlineStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata} UpdateFeatureOnlineStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64Array.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureOnlineStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Int64Array message. + * Verifies an UpdateFeatureOnlineStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Int64Array.verify = function verify(message) { + UpdateFeatureOnlineStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } return null; }; /** - * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureOnlineStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata} UpdateFeatureOnlineStoreOperationMetadata */ - Int64Array.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Int64Array) + UpdateFeatureOnlineStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.Int64Array(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.Int64Array.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureOnlineStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.Int64Array} message Int64Array + * @param {google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata} message UpdateFeatureOnlineStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Int64Array.toObject = function toObject(message, options) { + UpdateFeatureOnlineStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this Int64Array to JSON. + * Converts this UpdateFeatureOnlineStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - Int64Array.prototype.toJSON = function toJSON() { + UpdateFeatureOnlineStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Int64Array + * Gets the default type url for UpdateFeatureOnlineStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Int64Array + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Int64Array.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureOnlineStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Int64Array"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata"; }; - return Int64Array; + return UpdateFeatureOnlineStoreOperationMetadata; })(); - v1.StringArray = (function() { + v1.CreateFeatureViewOperationMetadata = (function() { /** - * Properties of a StringArray. + * Properties of a CreateFeatureViewOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IStringArray - * @property {Array.|null} [values] StringArray values + * @interface ICreateFeatureViewOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureViewOperationMetadata genericMetadata */ /** - * Constructs a new StringArray. + * Constructs a new CreateFeatureViewOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StringArray. - * @implements IStringArray + * @classdesc Represents a CreateFeatureViewOperationMetadata. + * @implements ICreateFeatureViewOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IStringArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata=} [properties] Properties to set */ - function StringArray(properties) { - this.values = []; + function CreateFeatureViewOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53076,78 +53556,75 @@ } /** - * StringArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StringArray + * CreateFeatureViewOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @instance */ - StringArray.prototype.values = $util.emptyArray; + CreateFeatureViewOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new StringArray instance using the specified properties. + * Creates a new CreateFeatureViewOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IStringArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StringArray} StringArray instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata} CreateFeatureViewOperationMetadata instance */ - StringArray.create = function create(properties) { - return new StringArray(properties); + CreateFeatureViewOperationMetadata.create = function create(properties) { + return new CreateFeatureViewOperationMetadata(properties); }; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. + * Encodes the specified CreateFeatureViewOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IStringArray} message StringArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata} message CreateFeatureViewOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StringArray.encode = function encode(message, writer) { + CreateFeatureViewOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. + * Encodes the specified CreateFeatureViewOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IStringArray} message StringArray message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata} message CreateFeatureViewOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StringArray.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureViewOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a CreateFeatureViewOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata} CreateFeatureViewOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StringArray.decode = function decode(reader, length) { + CreateFeatureViewOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StringArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -53159,159 +53636,127 @@ }; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureViewOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata} CreateFeatureViewOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StringArray.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureViewOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StringArray message. + * Verifies a CreateFeatureViewOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StringArray.verify = function verify(message) { + CreateFeatureViewOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } return null; }; /** - * Creates a StringArray message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureViewOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata} CreateFeatureViewOperationMetadata */ - StringArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StringArray) + CreateFeatureViewOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.StringArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StringArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureViewOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.StringArray} message StringArray + * @param {google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata} message CreateFeatureViewOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StringArray.toObject = function toObject(message, options) { + CreateFeatureViewOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this StringArray to JSON. + * Converts this CreateFeatureViewOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @instance * @returns {Object.} JSON object */ - StringArray.prototype.toJSON = function toJSON() { + CreateFeatureViewOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StringArray + * Gets the default type url for CreateFeatureViewOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StringArray + * @memberof google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StringArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeatureViewOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StringArray"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata"; }; - return StringArray; + return CreateFeatureViewOperationMetadata; })(); - v1.Tensor = (function() { + v1.UpdateFeatureViewOperationMetadata = (function() { /** - * Properties of a Tensor. + * Properties of an UpdateFeatureViewOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface ITensor - * @property {google.cloud.aiplatform.v1.Tensor.DataType|null} [dtype] Tensor dtype - * @property {Array.|null} [shape] Tensor shape - * @property {Array.|null} [boolVal] Tensor boolVal - * @property {Array.|null} [stringVal] Tensor stringVal - * @property {Array.|null} [bytesVal] Tensor bytesVal - * @property {Array.|null} [floatVal] Tensor floatVal - * @property {Array.|null} [doubleVal] Tensor doubleVal - * @property {Array.|null} [intVal] Tensor intVal - * @property {Array.|null} [int64Val] Tensor int64Val - * @property {Array.|null} [uintVal] Tensor uintVal - * @property {Array.|null} [uint64Val] Tensor uint64Val - * @property {Array.|null} [listVal] Tensor listVal - * @property {Object.|null} [structVal] Tensor structVal - * @property {Uint8Array|null} [tensorVal] Tensor tensorVal + * @interface IUpdateFeatureViewOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeatureViewOperationMetadata genericMetadata */ /** - * Constructs a new Tensor. + * Constructs a new UpdateFeatureViewOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Tensor. - * @implements ITensor + * @classdesc Represents an UpdateFeatureViewOperationMetadata. + * @implements IUpdateFeatureViewOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.ITensor=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata=} [properties] Properties to set */ - function Tensor(properties) { - this.shape = []; - this.boolVal = []; - this.stringVal = []; - this.bytesVal = []; - this.floatVal = []; - this.doubleVal = []; - this.intVal = []; - this.int64Val = []; - this.uintVal = []; - this.uint64Val = []; - this.listVal = []; - this.structVal = {}; + function UpdateFeatureViewOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53319,376 +53764,283 @@ } /** - * Tensor dtype. - * @member {google.cloud.aiplatform.v1.Tensor.DataType} dtype - * @memberof google.cloud.aiplatform.v1.Tensor + * UpdateFeatureViewOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata * @instance */ - Tensor.prototype.dtype = 0; + UpdateFeatureViewOperationMetadata.prototype.genericMetadata = null; /** - * Tensor shape. - * @member {Array.} shape - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Creates a new UpdateFeatureViewOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata} UpdateFeatureViewOperationMetadata instance */ - Tensor.prototype.shape = $util.emptyArray; + UpdateFeatureViewOperationMetadata.create = function create(properties) { + return new UpdateFeatureViewOperationMetadata(properties); + }; /** - * Tensor boolVal. - * @member {Array.} boolVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Encodes the specified UpdateFeatureViewOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata} message UpdateFeatureViewOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Tensor.prototype.boolVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Tensor stringVal. - * @member {Array.} stringVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Encodes the specified UpdateFeatureViewOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata} message UpdateFeatureViewOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Tensor.prototype.stringVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Tensor bytesVal. - * @member {Array.} bytesVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Decodes an UpdateFeatureViewOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata} UpdateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tensor.prototype.bytesVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Tensor floatVal. - * @member {Array.} floatVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Decodes an UpdateFeatureViewOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata} UpdateFeatureViewOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tensor.prototype.floatVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Tensor doubleVal. - * @member {Array.} doubleVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Verifies an UpdateFeatureViewOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tensor.prototype.doubleVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; /** - * Tensor intVal. - * @member {Array.} intVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Creates an UpdateFeatureViewOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata} UpdateFeatureViewOperationMetadata */ - Tensor.prototype.intVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; /** - * Tensor int64Val. - * @member {Array.} int64Val - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Creates a plain object from an UpdateFeatureViewOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata} message UpdateFeatureViewOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Tensor.prototype.int64Val = $util.emptyArray; + UpdateFeatureViewOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; /** - * Tensor uintVal. - * @member {Array.} uintVal - * @memberof google.cloud.aiplatform.v1.Tensor + * Converts this UpdateFeatureViewOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata * @instance + * @returns {Object.} JSON object */ - Tensor.prototype.uintVal = $util.emptyArray; + UpdateFeatureViewOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Tensor uint64Val. - * @member {Array.} uint64Val - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Gets the default type url for UpdateFeatureViewOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Tensor.prototype.uint64Val = $util.emptyArray; + UpdateFeatureViewOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata"; + }; + + return UpdateFeatureViewOperationMetadata; + })(); + + v1.SyncFeatureViewRequest = (function() { /** - * Tensor listVal. - * @member {Array.} listVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Properties of a SyncFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ISyncFeatureViewRequest + * @property {string|null} [featureView] SyncFeatureViewRequest featureView */ - Tensor.prototype.listVal = $util.emptyArray; /** - * Tensor structVal. - * @member {Object.} structVal - * @memberof google.cloud.aiplatform.v1.Tensor - * @instance + * Constructs a new SyncFeatureViewRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SyncFeatureViewRequest. + * @implements ISyncFeatureViewRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest=} [properties] Properties to set */ - Tensor.prototype.structVal = $util.emptyObject; + function SyncFeatureViewRequest(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]]; + } /** - * Tensor tensorVal. - * @member {Uint8Array} tensorVal - * @memberof google.cloud.aiplatform.v1.Tensor + * SyncFeatureViewRequest featureView. + * @member {string} featureView + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @instance */ - Tensor.prototype.tensorVal = $util.newBuffer([]); + SyncFeatureViewRequest.prototype.featureView = ""; /** - * Creates a new Tensor instance using the specified properties. + * Creates a new SyncFeatureViewRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.ITensor=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Tensor} Tensor instance + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewRequest} SyncFeatureViewRequest instance */ - Tensor.create = function create(properties) { - return new Tensor(properties); + SyncFeatureViewRequest.create = function create(properties) { + return new SyncFeatureViewRequest(properties); }; /** - * Encodes the specified Tensor message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. + * Encodes the specified SyncFeatureViewRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.ITensor} message Tensor message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest} message SyncFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tensor.encode = function encode(message, writer) { + SyncFeatureViewRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dtype != null && Object.hasOwnProperty.call(message, "dtype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dtype); - if (message.shape != null && message.shape.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.shape.length; ++i) - writer.int64(message.shape[i]); - writer.ldelim(); - } - if (message.boolVal != null && message.boolVal.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.boolVal.length; ++i) - writer.bool(message.boolVal[i]); - writer.ldelim(); - } - if (message.floatVal != null && message.floatVal.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (var i = 0; i < message.floatVal.length; ++i) - writer.float(message.floatVal[i]); - writer.ldelim(); - } - if (message.doubleVal != null && message.doubleVal.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (var i = 0; i < message.doubleVal.length; ++i) - writer.double(message.doubleVal[i]); - writer.ldelim(); - } - if (message.intVal != null && message.intVal.length) { - writer.uint32(/* id 7, wireType 2 =*/58).fork(); - for (var i = 0; i < message.intVal.length; ++i) - writer.int32(message.intVal[i]); - writer.ldelim(); - } - if (message.int64Val != null && message.int64Val.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.int64Val.length; ++i) - writer.int64(message.int64Val[i]); - writer.ldelim(); - } - if (message.uintVal != null && message.uintVal.length) { - writer.uint32(/* id 9, wireType 2 =*/74).fork(); - for (var i = 0; i < message.uintVal.length; ++i) - writer.uint32(message.uintVal[i]); - writer.ldelim(); - } - if (message.uint64Val != null && message.uint64Val.length) { - writer.uint32(/* id 10, wireType 2 =*/82).fork(); - for (var i = 0; i < message.uint64Val.length; ++i) - writer.uint64(message.uint64Val[i]); - writer.ldelim(); - } - if (message.listVal != null && message.listVal.length) - for (var i = 0; i < message.listVal.length; ++i) - $root.google.cloud.aiplatform.v1.Tensor.encode(message.listVal[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.structVal != null && Object.hasOwnProperty.call(message, "structVal")) - for (var keys = Object.keys(message.structVal), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.Tensor.encode(message.structVal[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.tensorVal != null && Object.hasOwnProperty.call(message, "tensorVal")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.tensorVal); - if (message.stringVal != null && message.stringVal.length) - for (var i = 0; i < message.stringVal.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.stringVal[i]); - if (message.bytesVal != null && message.bytesVal.length) - for (var i = 0; i < message.bytesVal.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.bytesVal[i]); + if (message.featureView != null && Object.hasOwnProperty.call(message, "featureView")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureView); return writer; }; /** - * Encodes the specified Tensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. + * Encodes the specified SyncFeatureViewRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.ITensor} message Tensor message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewRequest} message SyncFeatureViewRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tensor.encodeDelimited = function encodeDelimited(message, writer) { + SyncFeatureViewRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Tensor message from the specified reader or buffer. + * Decodes a SyncFeatureViewRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Tensor} Tensor + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewRequest} SyncFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tensor.decode = function decode(reader, length) { + SyncFeatureViewRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Tensor(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SyncFeatureViewRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dtype = reader.int32(); - break; - } - case 2: { - if (!(message.shape && message.shape.length)) - message.shape = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.shape.push(reader.int64()); - } else - message.shape.push(reader.int64()); - break; - } - case 3: { - if (!(message.boolVal && message.boolVal.length)) - message.boolVal = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.boolVal.push(reader.bool()); - } else - message.boolVal.push(reader.bool()); - break; - } - case 14: { - if (!(message.stringVal && message.stringVal.length)) - message.stringVal = []; - message.stringVal.push(reader.string()); - break; - } - case 15: { - if (!(message.bytesVal && message.bytesVal.length)) - message.bytesVal = []; - message.bytesVal.push(reader.bytes()); - break; - } - case 5: { - if (!(message.floatVal && message.floatVal.length)) - message.floatVal = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.floatVal.push(reader.float()); - } else - message.floatVal.push(reader.float()); - break; - } - case 6: { - if (!(message.doubleVal && message.doubleVal.length)) - message.doubleVal = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.doubleVal.push(reader.double()); - } else - message.doubleVal.push(reader.double()); - break; - } - case 7: { - if (!(message.intVal && message.intVal.length)) - message.intVal = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.intVal.push(reader.int32()); - } else - message.intVal.push(reader.int32()); - break; - } - case 8: { - if (!(message.int64Val && message.int64Val.length)) - message.int64Val = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.int64Val.push(reader.int64()); - } else - message.int64Val.push(reader.int64()); - break; - } - case 9: { - if (!(message.uintVal && message.uintVal.length)) - message.uintVal = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.uintVal.push(reader.uint32()); - } else - message.uintVal.push(reader.uint32()); - break; - } - case 10: { - if (!(message.uint64Val && message.uint64Val.length)) - message.uint64Val = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.uint64Val.push(reader.uint64()); - } else - message.uint64Val.push(reader.uint64()); - break; - } - case 11: { - if (!(message.listVal && message.listVal.length)) - message.listVal = []; - message.listVal.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); - break; - } - case 12: { - if (message.structVal === $util.emptyObject) - message.structVal = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.structVal[key] = value; - break; - } - case 13: { - message.tensorVal = reader.bytes(); + message.featureView = reader.string(); break; } default: @@ -53700,1372 +54052,198 @@ }; /** - * Decodes a Tensor message from the specified reader or buffer, length delimited. + * Decodes a SyncFeatureViewRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Tensor} Tensor + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewRequest} SyncFeatureViewRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tensor.decodeDelimited = function decodeDelimited(reader) { + SyncFeatureViewRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Tensor message. + * Verifies a SyncFeatureViewRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tensor.verify = function verify(message) { + SyncFeatureViewRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dtype != null && message.hasOwnProperty("dtype")) - switch (message.dtype) { - default: - return "dtype: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; - } - if (message.shape != null && message.hasOwnProperty("shape")) { - if (!Array.isArray(message.shape)) - return "shape: array expected"; - for (var i = 0; i < message.shape.length; ++i) - if (!$util.isInteger(message.shape[i]) && !(message.shape[i] && $util.isInteger(message.shape[i].low) && $util.isInteger(message.shape[i].high))) - return "shape: integer|Long[] expected"; - } - if (message.boolVal != null && message.hasOwnProperty("boolVal")) { - if (!Array.isArray(message.boolVal)) - return "boolVal: array expected"; - for (var i = 0; i < message.boolVal.length; ++i) - if (typeof message.boolVal[i] !== "boolean") - return "boolVal: boolean[] expected"; - } - if (message.stringVal != null && message.hasOwnProperty("stringVal")) { - if (!Array.isArray(message.stringVal)) - return "stringVal: array expected"; - for (var i = 0; i < message.stringVal.length; ++i) - if (!$util.isString(message.stringVal[i])) - return "stringVal: string[] expected"; - } - if (message.bytesVal != null && message.hasOwnProperty("bytesVal")) { - if (!Array.isArray(message.bytesVal)) - return "bytesVal: array expected"; - for (var i = 0; i < message.bytesVal.length; ++i) - if (!(message.bytesVal[i] && typeof message.bytesVal[i].length === "number" || $util.isString(message.bytesVal[i]))) - return "bytesVal: buffer[] expected"; - } - if (message.floatVal != null && message.hasOwnProperty("floatVal")) { - if (!Array.isArray(message.floatVal)) - return "floatVal: array expected"; - for (var i = 0; i < message.floatVal.length; ++i) - if (typeof message.floatVal[i] !== "number") - return "floatVal: number[] expected"; - } - if (message.doubleVal != null && message.hasOwnProperty("doubleVal")) { - if (!Array.isArray(message.doubleVal)) - return "doubleVal: array expected"; - for (var i = 0; i < message.doubleVal.length; ++i) - if (typeof message.doubleVal[i] !== "number") - return "doubleVal: number[] expected"; - } - if (message.intVal != null && message.hasOwnProperty("intVal")) { - if (!Array.isArray(message.intVal)) - return "intVal: array expected"; - for (var i = 0; i < message.intVal.length; ++i) - if (!$util.isInteger(message.intVal[i])) - return "intVal: integer[] expected"; - } - if (message.int64Val != null && message.hasOwnProperty("int64Val")) { - if (!Array.isArray(message.int64Val)) - return "int64Val: array expected"; - for (var i = 0; i < message.int64Val.length; ++i) - if (!$util.isInteger(message.int64Val[i]) && !(message.int64Val[i] && $util.isInteger(message.int64Val[i].low) && $util.isInteger(message.int64Val[i].high))) - return "int64Val: integer|Long[] expected"; - } - if (message.uintVal != null && message.hasOwnProperty("uintVal")) { - if (!Array.isArray(message.uintVal)) - return "uintVal: array expected"; - for (var i = 0; i < message.uintVal.length; ++i) - if (!$util.isInteger(message.uintVal[i])) - return "uintVal: integer[] expected"; - } - if (message.uint64Val != null && message.hasOwnProperty("uint64Val")) { - if (!Array.isArray(message.uint64Val)) - return "uint64Val: array expected"; - for (var i = 0; i < message.uint64Val.length; ++i) - if (!$util.isInteger(message.uint64Val[i]) && !(message.uint64Val[i] && $util.isInteger(message.uint64Val[i].low) && $util.isInteger(message.uint64Val[i].high))) - return "uint64Val: integer|Long[] expected"; - } - if (message.listVal != null && message.hasOwnProperty("listVal")) { - if (!Array.isArray(message.listVal)) - return "listVal: array expected"; - for (var i = 0; i < message.listVal.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.listVal[i]); - if (error) - return "listVal." + error; - } - } - if (message.structVal != null && message.hasOwnProperty("structVal")) { - if (!$util.isObject(message.structVal)) - return "structVal: object expected"; - var key = Object.keys(message.structVal); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.structVal[key[i]]); - if (error) - return "structVal." + error; - } - } - if (message.tensorVal != null && message.hasOwnProperty("tensorVal")) - if (!(message.tensorVal && typeof message.tensorVal.length === "number" || $util.isString(message.tensorVal))) - return "tensorVal: buffer expected"; + if (message.featureView != null && message.hasOwnProperty("featureView")) + if (!$util.isString(message.featureView)) + return "featureView: string expected"; return null; }; /** - * Creates a Tensor message from a plain object. Also converts values to their respective internal types. + * Creates a SyncFeatureViewRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Tensor} Tensor + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewRequest} SyncFeatureViewRequest */ - Tensor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Tensor) + SyncFeatureViewRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SyncFeatureViewRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.Tensor(); - switch (object.dtype) { - default: - if (typeof object.dtype === "number") { - message.dtype = object.dtype; - break; - } - break; - case "DATA_TYPE_UNSPECIFIED": - case 0: - message.dtype = 0; - break; - case "BOOL": - case 1: - message.dtype = 1; - break; - case "STRING": - case 2: - message.dtype = 2; - break; - case "FLOAT": - case 3: - message.dtype = 3; - break; - case "DOUBLE": - case 4: - message.dtype = 4; - break; - case "INT8": - case 5: - message.dtype = 5; - break; - case "INT16": - case 6: - message.dtype = 6; - break; - case "INT32": - case 7: - message.dtype = 7; - break; - case "INT64": - case 8: - message.dtype = 8; - break; - case "UINT8": - case 9: - message.dtype = 9; - break; - case "UINT16": - case 10: - message.dtype = 10; - break; - case "UINT32": - case 11: - message.dtype = 11; - break; - case "UINT64": - case 12: - message.dtype = 12; - break; - } - if (object.shape) { - if (!Array.isArray(object.shape)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.shape: array expected"); - message.shape = []; - for (var i = 0; i < object.shape.length; ++i) - if ($util.Long) - (message.shape[i] = $util.Long.fromValue(object.shape[i])).unsigned = false; - else if (typeof object.shape[i] === "string") - message.shape[i] = parseInt(object.shape[i], 10); - else if (typeof object.shape[i] === "number") - message.shape[i] = object.shape[i]; - else if (typeof object.shape[i] === "object") - message.shape[i] = new $util.LongBits(object.shape[i].low >>> 0, object.shape[i].high >>> 0).toNumber(); - } - if (object.boolVal) { - if (!Array.isArray(object.boolVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.boolVal: array expected"); - message.boolVal = []; - for (var i = 0; i < object.boolVal.length; ++i) - message.boolVal[i] = Boolean(object.boolVal[i]); - } - if (object.stringVal) { - if (!Array.isArray(object.stringVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.stringVal: array expected"); - message.stringVal = []; - for (var i = 0; i < object.stringVal.length; ++i) - message.stringVal[i] = String(object.stringVal[i]); - } - if (object.bytesVal) { - if (!Array.isArray(object.bytesVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.bytesVal: array expected"); - message.bytesVal = []; - for (var i = 0; i < object.bytesVal.length; ++i) - if (typeof object.bytesVal[i] === "string") - $util.base64.decode(object.bytesVal[i], message.bytesVal[i] = $util.newBuffer($util.base64.length(object.bytesVal[i])), 0); - else if (object.bytesVal[i].length >= 0) - message.bytesVal[i] = object.bytesVal[i]; - } - if (object.floatVal) { - if (!Array.isArray(object.floatVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.floatVal: array expected"); - message.floatVal = []; - for (var i = 0; i < object.floatVal.length; ++i) - message.floatVal[i] = Number(object.floatVal[i]); - } - if (object.doubleVal) { - if (!Array.isArray(object.doubleVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.doubleVal: array expected"); - message.doubleVal = []; - for (var i = 0; i < object.doubleVal.length; ++i) - message.doubleVal[i] = Number(object.doubleVal[i]); - } - if (object.intVal) { - if (!Array.isArray(object.intVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.intVal: array expected"); - message.intVal = []; - for (var i = 0; i < object.intVal.length; ++i) - message.intVal[i] = object.intVal[i] | 0; - } - if (object.int64Val) { - if (!Array.isArray(object.int64Val)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.int64Val: array expected"); - message.int64Val = []; - for (var i = 0; i < object.int64Val.length; ++i) - if ($util.Long) - (message.int64Val[i] = $util.Long.fromValue(object.int64Val[i])).unsigned = false; - else if (typeof object.int64Val[i] === "string") - message.int64Val[i] = parseInt(object.int64Val[i], 10); - else if (typeof object.int64Val[i] === "number") - message.int64Val[i] = object.int64Val[i]; - else if (typeof object.int64Val[i] === "object") - message.int64Val[i] = new $util.LongBits(object.int64Val[i].low >>> 0, object.int64Val[i].high >>> 0).toNumber(); - } - if (object.uintVal) { - if (!Array.isArray(object.uintVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.uintVal: array expected"); - message.uintVal = []; - for (var i = 0; i < object.uintVal.length; ++i) - message.uintVal[i] = object.uintVal[i] >>> 0; - } - if (object.uint64Val) { - if (!Array.isArray(object.uint64Val)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.uint64Val: array expected"); - message.uint64Val = []; - for (var i = 0; i < object.uint64Val.length; ++i) - if ($util.Long) - (message.uint64Val[i] = $util.Long.fromValue(object.uint64Val[i])).unsigned = true; - else if (typeof object.uint64Val[i] === "string") - message.uint64Val[i] = parseInt(object.uint64Val[i], 10); - else if (typeof object.uint64Val[i] === "number") - message.uint64Val[i] = object.uint64Val[i]; - else if (typeof object.uint64Val[i] === "object") - message.uint64Val[i] = new $util.LongBits(object.uint64Val[i].low >>> 0, object.uint64Val[i].high >>> 0).toNumber(true); - } - if (object.listVal) { - if (!Array.isArray(object.listVal)) - throw TypeError(".google.cloud.aiplatform.v1.Tensor.listVal: array expected"); - message.listVal = []; - for (var i = 0; i < object.listVal.length; ++i) { - if (typeof object.listVal[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Tensor.listVal: object expected"); - message.listVal[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.listVal[i]); - } - } - if (object.structVal) { - if (typeof object.structVal !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Tensor.structVal: object expected"); - message.structVal = {}; - for (var keys = Object.keys(object.structVal), i = 0; i < keys.length; ++i) { - if (typeof object.structVal[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Tensor.structVal: object expected"); - message.structVal[keys[i]] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.structVal[keys[i]]); - } - } - if (object.tensorVal != null) - if (typeof object.tensorVal === "string") - $util.base64.decode(object.tensorVal, message.tensorVal = $util.newBuffer($util.base64.length(object.tensorVal)), 0); - else if (object.tensorVal.length >= 0) - message.tensorVal = object.tensorVal; + var message = new $root.google.cloud.aiplatform.v1.SyncFeatureViewRequest(); + if (object.featureView != null) + message.featureView = String(object.featureView); return message; }; /** - * Creates a plain object from a Tensor message. Also converts values to other types if specified. + * Creates a plain object from a SyncFeatureViewRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static - * @param {google.cloud.aiplatform.v1.Tensor} message Tensor + * @param {google.cloud.aiplatform.v1.SyncFeatureViewRequest} message SyncFeatureViewRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Tensor.toObject = function toObject(message, options) { + SyncFeatureViewRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.shape = []; - object.boolVal = []; - object.floatVal = []; - object.doubleVal = []; - object.intVal = []; - object.int64Val = []; - object.uintVal = []; - object.uint64Val = []; - object.listVal = []; - object.stringVal = []; - object.bytesVal = []; - } - if (options.objects || options.defaults) - object.structVal = {}; - if (options.defaults) { - object.dtype = options.enums === String ? "DATA_TYPE_UNSPECIFIED" : 0; - if (options.bytes === String) - object.tensorVal = ""; - else { - object.tensorVal = []; - if (options.bytes !== Array) - object.tensorVal = $util.newBuffer(object.tensorVal); - } - } - if (message.dtype != null && message.hasOwnProperty("dtype")) - object.dtype = options.enums === String ? $root.google.cloud.aiplatform.v1.Tensor.DataType[message.dtype] === undefined ? message.dtype : $root.google.cloud.aiplatform.v1.Tensor.DataType[message.dtype] : message.dtype; - if (message.shape && message.shape.length) { - object.shape = []; - for (var j = 0; j < message.shape.length; ++j) - if (typeof message.shape[j] === "number") - object.shape[j] = options.longs === String ? String(message.shape[j]) : message.shape[j]; - else - object.shape[j] = options.longs === String ? $util.Long.prototype.toString.call(message.shape[j]) : options.longs === Number ? new $util.LongBits(message.shape[j].low >>> 0, message.shape[j].high >>> 0).toNumber() : message.shape[j]; - } - if (message.boolVal && message.boolVal.length) { - object.boolVal = []; - for (var j = 0; j < message.boolVal.length; ++j) - object.boolVal[j] = message.boolVal[j]; - } - if (message.floatVal && message.floatVal.length) { - object.floatVal = []; - for (var j = 0; j < message.floatVal.length; ++j) - object.floatVal[j] = options.json && !isFinite(message.floatVal[j]) ? String(message.floatVal[j]) : message.floatVal[j]; - } - if (message.doubleVal && message.doubleVal.length) { - object.doubleVal = []; - for (var j = 0; j < message.doubleVal.length; ++j) - object.doubleVal[j] = options.json && !isFinite(message.doubleVal[j]) ? String(message.doubleVal[j]) : message.doubleVal[j]; - } - if (message.intVal && message.intVal.length) { - object.intVal = []; - for (var j = 0; j < message.intVal.length; ++j) - object.intVal[j] = message.intVal[j]; - } - if (message.int64Val && message.int64Val.length) { - object.int64Val = []; - for (var j = 0; j < message.int64Val.length; ++j) - if (typeof message.int64Val[j] === "number") - object.int64Val[j] = options.longs === String ? String(message.int64Val[j]) : message.int64Val[j]; - else - object.int64Val[j] = options.longs === String ? $util.Long.prototype.toString.call(message.int64Val[j]) : options.longs === Number ? new $util.LongBits(message.int64Val[j].low >>> 0, message.int64Val[j].high >>> 0).toNumber() : message.int64Val[j]; - } - if (message.uintVal && message.uintVal.length) { - object.uintVal = []; - for (var j = 0; j < message.uintVal.length; ++j) - object.uintVal[j] = message.uintVal[j]; - } - if (message.uint64Val && message.uint64Val.length) { - object.uint64Val = []; - for (var j = 0; j < message.uint64Val.length; ++j) - if (typeof message.uint64Val[j] === "number") - object.uint64Val[j] = options.longs === String ? String(message.uint64Val[j]) : message.uint64Val[j]; - else - object.uint64Val[j] = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Val[j]) : options.longs === Number ? new $util.LongBits(message.uint64Val[j].low >>> 0, message.uint64Val[j].high >>> 0).toNumber(true) : message.uint64Val[j]; - } - if (message.listVal && message.listVal.length) { - object.listVal = []; - for (var j = 0; j < message.listVal.length; ++j) - object.listVal[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.listVal[j], options); - } - var keys2; - if (message.structVal && (keys2 = Object.keys(message.structVal)).length) { - object.structVal = {}; - for (var j = 0; j < keys2.length; ++j) - object.structVal[keys2[j]] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.structVal[keys2[j]], options); - } - if (message.tensorVal != null && message.hasOwnProperty("tensorVal")) - object.tensorVal = options.bytes === String ? $util.base64.encode(message.tensorVal, 0, message.tensorVal.length) : options.bytes === Array ? Array.prototype.slice.call(message.tensorVal) : message.tensorVal; - if (message.stringVal && message.stringVal.length) { - object.stringVal = []; - for (var j = 0; j < message.stringVal.length; ++j) - object.stringVal[j] = message.stringVal[j]; - } - if (message.bytesVal && message.bytesVal.length) { - object.bytesVal = []; - for (var j = 0; j < message.bytesVal.length; ++j) - object.bytesVal[j] = options.bytes === String ? $util.base64.encode(message.bytesVal[j], 0, message.bytesVal[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesVal[j]) : message.bytesVal[j]; - } + if (options.defaults) + object.featureView = ""; + if (message.featureView != null && message.hasOwnProperty("featureView")) + object.featureView = message.featureView; return object; }; /** - * Converts this Tensor to JSON. + * Converts this SyncFeatureViewRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @instance * @returns {Object.} JSON object */ - Tensor.prototype.toJSON = function toJSON() { + SyncFeatureViewRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Tensor + * Gets the default type url for SyncFeatureViewRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Tensor + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Tensor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SyncFeatureViewRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Tensor"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SyncFeatureViewRequest"; }; - /** - * DataType enum. - * @name google.cloud.aiplatform.v1.Tensor.DataType - * @enum {number} - * @property {number} DATA_TYPE_UNSPECIFIED=0 DATA_TYPE_UNSPECIFIED value - * @property {number} BOOL=1 BOOL value - * @property {number} STRING=2 STRING value - * @property {number} FLOAT=3 FLOAT value - * @property {number} DOUBLE=4 DOUBLE value - * @property {number} INT8=5 INT8 value - * @property {number} INT16=6 INT16 value - * @property {number} INT32=7 INT32 value - * @property {number} INT64=8 INT64 value - * @property {number} UINT8=9 UINT8 value - * @property {number} UINT16=10 UINT16 value - * @property {number} UINT32=11 UINT32 value - * @property {number} UINT64=12 UINT64 value - */ - Tensor.DataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "BOOL"] = 1; - values[valuesById[2] = "STRING"] = 2; - values[valuesById[3] = "FLOAT"] = 3; - values[valuesById[4] = "DOUBLE"] = 4; - values[valuesById[5] = "INT8"] = 5; - values[valuesById[6] = "INT16"] = 6; - values[valuesById[7] = "INT32"] = 7; - values[valuesById[8] = "INT64"] = 8; - values[valuesById[9] = "UINT8"] = 9; - values[valuesById[10] = "UINT16"] = 10; - values[valuesById[11] = "UINT32"] = 11; - values[valuesById[12] = "UINT64"] = 12; - return values; - })(); - - return Tensor; + return SyncFeatureViewRequest; })(); - v1.FeaturestoreService = (function() { + v1.SyncFeatureViewResponse = (function() { /** - * Constructs a new FeaturestoreService service. + * Properties of a SyncFeatureViewResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeaturestoreService - * @extends $protobuf.rpc.Service + * @interface ISyncFeatureViewResponse + * @property {string|null} [featureViewSync] SyncFeatureViewResponse featureViewSync + */ + + /** + * Constructs a new SyncFeatureViewResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SyncFeatureViewResponse. + * @implements ISyncFeatureViewResponse * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewResponse=} [properties] Properties to set */ - function FeaturestoreService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function SyncFeatureViewResponse(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]]; } - (FeaturestoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreService; + /** + * SyncFeatureViewResponse featureViewSync. + * @member {string} featureViewSync + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse + * @instance + */ + SyncFeatureViewResponse.prototype.featureViewSync = ""; /** - * Creates new FeaturestoreService service using the specified rpc implementation. + * Creates a new SyncFeatureViewResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {FeaturestoreService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewResponse} SyncFeatureViewResponse instance */ - FeaturestoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeaturestore}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef CreateFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createFeaturestore = function createFeaturestore(request, callback) { - return this.rpcCall(createFeaturestore, $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateFeaturestore" }); - - /** - * Calls CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeaturestore}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef GetFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Featurestore} [response] Featurestore - */ - - /** - * Calls GetFeaturestore. - * @function getFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestoreCallback} callback Node-style callback called with the error, if any, and Featurestore - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getFeaturestore = function getFeaturestore(request, callback) { - return this.rpcCall(getFeaturestore, $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest, $root.google.cloud.aiplatform.v1.Featurestore, request, callback); - }, "name", { value: "GetFeaturestore" }); - - /** - * Calls GetFeaturestore. - * @function getFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeaturestores}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef ListFeaturestoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListFeaturestoresResponse} [response] ListFeaturestoresResponse - */ - - /** - * Calls ListFeaturestores. - * @function listFeaturestores - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestoresCallback} callback Node-style callback called with the error, if any, and ListFeaturestoresResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listFeaturestores = function listFeaturestores(request, callback) { - return this.rpcCall(listFeaturestores, $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest, $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse, request, callback); - }, "name", { value: "ListFeaturestores" }); - - /** - * Calls ListFeaturestores. - * @function listFeaturestores - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeaturestore}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef UpdateFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UpdateFeaturestore. - * @function updateFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateFeaturestore = function updateFeaturestore(request, callback) { - return this.rpcCall(updateFeaturestore, $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateFeaturestore" }); - - /** - * Calls UpdateFeaturestore. - * @function updateFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeaturestore}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef DeleteFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteFeaturestore. - * @function deleteFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteFeaturestore = function deleteFeaturestore(request, callback) { - return this.rpcCall(deleteFeaturestore, $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteFeaturestore" }); - - /** - * Calls DeleteFeaturestore. - * @function deleteFeaturestore - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createEntityType}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef CreateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEntityType" }); - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getEntityType}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef GetEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.EntityType} [response] EntityType - */ - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.aiplatform.v1.GetEntityTypeRequest, $root.google.cloud.aiplatform.v1.EntityType, request, callback); - }, "name", { value: "GetEntityType" }); - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listEntityTypes}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef ListEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListEntityTypesResponse} [response] ListEntityTypesResponse - */ - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.aiplatform.v1.ListEntityTypesRequest, $root.google.cloud.aiplatform.v1.ListEntityTypesResponse, request, callback); - }, "name", { value: "ListEntityTypes" }); - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateEntityType}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef UpdateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.EntityType} [response] EntityType - */ - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest, $root.google.cloud.aiplatform.v1.EntityType, request, callback); - }, "name", { value: "UpdateEntityType" }); - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteEntityType}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef DeleteEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteEntityType" }); - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeature}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef CreateFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateFeature. - * @function createFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateFeatureCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createFeature = function createFeature(request, callback) { - return this.rpcCall(createFeature, $root.google.cloud.aiplatform.v1.CreateFeatureRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateFeature" }); - - /** - * Calls CreateFeature. - * @function createFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchCreateFeatures}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @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.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.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.FeaturestoreService - * @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.FeaturestoreService|getFeature}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef GetFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Feature} [response] Feature - */ - - /** - * Calls GetFeature. - * @function getFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetFeatureCallback} callback Node-style callback called with the error, if any, and Feature - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getFeature = function getFeature(request, callback) { - return this.rpcCall(getFeature, $root.google.cloud.aiplatform.v1.GetFeatureRequest, $root.google.cloud.aiplatform.v1.Feature, request, callback); - }, "name", { value: "GetFeature" }); - - /** - * Calls GetFeature. - * @function getFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeatures}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef ListFeaturesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListFeaturesResponse} [response] ListFeaturesResponse - */ - - /** - * Calls ListFeatures. - * @function listFeatures - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturesCallback} callback Node-style callback called with the error, if any, and ListFeaturesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listFeatures = function listFeatures(request, callback) { - return this.rpcCall(listFeatures, $root.google.cloud.aiplatform.v1.ListFeaturesRequest, $root.google.cloud.aiplatform.v1.ListFeaturesResponse, request, callback); - }, "name", { value: "ListFeatures" }); - - /** - * Calls ListFeatures. - * @function listFeatures - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeature}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef UpdateFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Feature} [response] Feature - */ - - /** - * Calls UpdateFeature. - * @function updateFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeatureCallback} callback Node-style callback called with the error, if any, and Feature - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateFeature = function updateFeature(request, callback) { - return this.rpcCall(updateFeature, $root.google.cloud.aiplatform.v1.UpdateFeatureRequest, $root.google.cloud.aiplatform.v1.Feature, request, callback); - }, "name", { value: "UpdateFeature" }); - - /** - * Calls UpdateFeature. - * @function updateFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeature}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef DeleteFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteFeature. - * @function deleteFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteFeature = function deleteFeature(request, callback) { - return this.rpcCall(deleteFeature, $root.google.cloud.aiplatform.v1.DeleteFeatureRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteFeature" }); - - /** - * Calls DeleteFeature. - * @function deleteFeature - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|importFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef ImportFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportFeatureValues. - * @function importFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.importFeatureValues = function importFeatureValues(request, callback) { - return this.rpcCall(importFeatureValues, $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportFeatureValues" }); - - /** - * Calls ImportFeatureValues. - * @function importFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchReadFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef BatchReadFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls BatchReadFeatureValues. - * @function batchReadFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.batchReadFeatureValues = function batchReadFeatureValues(request, callback) { - return this.rpcCall(batchReadFeatureValues, $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchReadFeatureValues" }); - - /** - * Calls BatchReadFeatureValues. - * @function batchReadFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|exportFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef ExportFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportFeatureValues. - * @function exportFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.exportFeatureValues = function exportFeatureValues(request, callback) { - return this.rpcCall(exportFeatureValues, $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportFeatureValues" }); - - /** - * Calls ExportFeatureValues. - * @function exportFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef DeleteFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteFeatureValues. - * @function deleteFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteFeatureValues = function deleteFeatureValues(request, callback) { - return this.rpcCall(deleteFeatureValues, $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteFeatureValues" }); - - /** - * Calls DeleteFeatureValues. - * @function deleteFeatureValues - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @typedef SearchFeaturesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.SearchFeaturesResponse} [response] SearchFeaturesResponse - */ - - /** - * Calls SearchFeatures. - * @function searchFeatures - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1.FeaturestoreService.SearchFeaturesCallback} callback Node-style callback called with the error, if any, and SearchFeaturesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.searchFeatures = function searchFeatures(request, callback) { - return this.rpcCall(searchFeatures, $root.google.cloud.aiplatform.v1.SearchFeaturesRequest, $root.google.cloud.aiplatform.v1.SearchFeaturesResponse, request, callback); - }, "name", { value: "SearchFeatures" }); - - /** - * Calls SearchFeatures. - * @function searchFeatures - * @memberof google.cloud.aiplatform.v1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return FeaturestoreService; - })(); - - v1.CreateFeaturestoreRequest = (function() { - - /** - * Properties of a CreateFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateFeaturestoreRequest - * @property {string|null} [parent] CreateFeaturestoreRequest parent - * @property {google.cloud.aiplatform.v1.IFeaturestore|null} [featurestore] CreateFeaturestoreRequest featurestore - * @property {string|null} [featurestoreId] CreateFeaturestoreRequest featurestoreId - */ - - /** - * Constructs a new CreateFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateFeaturestoreRequest. - * @implements ICreateFeaturestoreRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest=} [properties] Properties to set - */ - function CreateFeaturestoreRequest(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]]; - } - - /** - * CreateFeaturestoreRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest - * @instance - */ - CreateFeaturestoreRequest.prototype.parent = ""; - - /** - * CreateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest - * @instance - */ - CreateFeaturestoreRequest.prototype.featurestore = null; - - /** - * CreateFeaturestoreRequest featurestoreId. - * @member {string} featurestoreId - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest - * @instance - */ - CreateFeaturestoreRequest.prototype.featurestoreId = ""; - - /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance - */ - CreateFeaturestoreRequest.create = function create(properties) { - return new CreateFeaturestoreRequest(properties); + SyncFeatureViewResponse.create = function create(properties) { + return new SyncFeatureViewResponse(properties); }; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified SyncFeatureViewResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewResponse} message SyncFeatureViewResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreRequest.encode = function encode(message, writer) { + SyncFeatureViewResponse.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.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.featurestoreId != null && Object.hasOwnProperty.call(message, "featurestoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featurestoreId); + if (message.featureViewSync != null && Object.hasOwnProperty.call(message, "featureViewSync")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureViewSync); return writer; }; /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified SyncFeatureViewResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SyncFeatureViewResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISyncFeatureViewResponse} message SyncFeatureViewResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + SyncFeatureViewResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a SyncFeatureViewResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewResponse} SyncFeatureViewResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreRequest.decode = function decode(reader, length) { + SyncFeatureViewResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SyncFeatureViewResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32()); - break; - } - case 3: { - message.featurestoreId = reader.string(); + message.featureViewSync = reader.string(); break; } default: @@ -55077,144 +54255,122 @@ }; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a SyncFeatureViewResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewResponse} SyncFeatureViewResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + SyncFeatureViewResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a SyncFeatureViewResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeaturestoreRequest.verify = function verify(message) { + SyncFeatureViewResponse.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.featurestore != null && message.hasOwnProperty("featurestore")) { - var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestore); - if (error) - return "featurestore." + error; - } - if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) - if (!$util.isString(message.featurestoreId)) - return "featurestoreId: string expected"; + if (message.featureViewSync != null && message.hasOwnProperty("featureViewSync")) + if (!$util.isString(message.featureViewSync)) + return "featureViewSync: string expected"; return null; }; /** - * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SyncFeatureViewResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.SyncFeatureViewResponse} SyncFeatureViewResponse */ - CreateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest) + SyncFeatureViewResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SyncFeatureViewResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.featurestore != null) { - if (typeof object.featurestore !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateFeaturestoreRequest.featurestore: object expected"); - message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestore); - } - if (object.featurestoreId != null) - message.featurestoreId = String(object.featurestoreId); + var message = new $root.google.cloud.aiplatform.v1.SyncFeatureViewResponse(); + if (object.featureViewSync != null) + message.featureViewSync = String(object.featureViewSync); return message; }; /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a SyncFeatureViewResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static - * @param {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest + * @param {google.cloud.aiplatform.v1.SyncFeatureViewResponse} message SyncFeatureViewResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeaturestoreRequest.toObject = function toObject(message, options) { + SyncFeatureViewResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.featurestore = null; - object.featurestoreId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestore, options); - if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) - object.featurestoreId = message.featurestoreId; + if (options.defaults) + object.featureViewSync = ""; + if (message.featureViewSync != null && message.hasOwnProperty("featureViewSync")) + object.featureViewSync = message.featureViewSync; return object; }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this SyncFeatureViewResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreRequest.prototype.toJSON = function toJSON() { + SyncFeatureViewResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFeaturestoreRequest + * Gets the default type url for SyncFeatureViewResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.SyncFeatureViewResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SyncFeatureViewResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeaturestoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SyncFeatureViewResponse"; }; - return CreateFeaturestoreRequest; + return SyncFeatureViewResponse; })(); - v1.GetFeaturestoreRequest = (function() { + v1.GetFeatureViewSyncRequest = (function() { /** - * Properties of a GetFeaturestoreRequest. + * Properties of a GetFeatureViewSyncRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetFeaturestoreRequest - * @property {string|null} [name] GetFeaturestoreRequest name + * @interface IGetFeatureViewSyncRequest + * @property {string|null} [name] GetFeatureViewSyncRequest name */ /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new GetFeatureViewSyncRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetFeaturestoreRequest. - * @implements IGetFeaturestoreRequest + * @classdesc Represents a GetFeatureViewSyncRequest. + * @implements IGetFeatureViewSyncRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest=} [properties] Properties to set */ - function GetFeaturestoreRequest(properties) { + function GetFeatureViewSyncRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55222,35 +54378,35 @@ } /** - * GetFeaturestoreRequest name. + * GetFeatureViewSyncRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @instance */ - GetFeaturestoreRequest.prototype.name = ""; + GetFeatureViewSyncRequest.prototype.name = ""; /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new GetFeatureViewSyncRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeatureViewSyncRequest} GetFeatureViewSyncRequest instance */ - GetFeaturestoreRequest.create = function create(properties) { - return new GetFeaturestoreRequest(properties); + GetFeatureViewSyncRequest.create = function create(properties) { + return new GetFeatureViewSyncRequest(properties); }; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * Encodes the specified GetFeatureViewSyncRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewSyncRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest} message GetFeatureViewSyncRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeaturestoreRequest.encode = function encode(message, writer) { + GetFeatureViewSyncRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -55259,33 +54415,33 @@ }; /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * Encodes the specified GetFeatureViewSyncRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureViewSyncRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static - * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest} message GetFeatureViewSyncRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetFeatureViewSyncRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes a GetFeatureViewSyncRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureViewSyncRequest} GetFeatureViewSyncRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeaturestoreRequest.decode = function decode(reader, length) { + GetFeatureViewSyncRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55302,30 +54458,30 @@ }; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureViewSyncRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureViewSyncRequest} GetFeatureViewSyncRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + GetFeatureViewSyncRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFeaturestoreRequest message. + * Verifies a GetFeatureViewSyncRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFeaturestoreRequest.verify = function verify(message) { + GetFeatureViewSyncRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -55335,32 +54491,32 @@ }; /** - * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureViewSyncRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureViewSyncRequest} GetFeatureViewSyncRequest */ - GetFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest) + GetFeatureViewSyncRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetFeatureViewSyncRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static - * @param {google.cloud.aiplatform.v1.GetFeaturestoreRequest} message GetFeaturestoreRequest + * @param {google.cloud.aiplatform.v1.GetFeatureViewSyncRequest} message GetFeatureViewSyncRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFeaturestoreRequest.toObject = function toObject(message, options) { + GetFeatureViewSyncRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -55372,57 +54528,56 @@ }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this GetFeatureViewSyncRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @instance * @returns {Object.} JSON object */ - GetFeaturestoreRequest.prototype.toJSON = function toJSON() { + GetFeatureViewSyncRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFeaturestoreRequest + * Gets the default type url for GetFeatureViewSyncRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureViewSyncRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFeatureViewSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeaturestoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureViewSyncRequest"; }; - return GetFeaturestoreRequest; + return GetFeatureViewSyncRequest; })(); - v1.ListFeaturestoresRequest = (function() { + v1.ListFeatureViewSyncsRequest = (function() { /** - * Properties of a ListFeaturestoresRequest. + * Properties of a ListFeatureViewSyncsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListFeaturestoresRequest - * @property {string|null} [parent] ListFeaturestoresRequest parent - * @property {string|null} [filter] ListFeaturestoresRequest filter - * @property {number|null} [pageSize] ListFeaturestoresRequest pageSize - * @property {string|null} [pageToken] ListFeaturestoresRequest pageToken - * @property {string|null} [orderBy] ListFeaturestoresRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturestoresRequest readMask + * @interface IListFeatureViewSyncsRequest + * @property {string|null} [parent] ListFeatureViewSyncsRequest parent + * @property {string|null} [filter] ListFeatureViewSyncsRequest filter + * @property {number|null} [pageSize] ListFeatureViewSyncsRequest pageSize + * @property {string|null} [pageToken] ListFeatureViewSyncsRequest pageToken + * @property {string|null} [orderBy] ListFeatureViewSyncsRequest orderBy */ /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new ListFeatureViewSyncsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListFeaturestoresRequest. - * @implements IListFeaturestoresRequest + * @classdesc Represents a ListFeatureViewSyncsRequest. + * @implements IListFeatureViewSyncsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest=} [properties] Properties to set */ - function ListFeaturestoresRequest(properties) { + function ListFeatureViewSyncsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55430,75 +54585,67 @@ } /** - * ListFeaturestoresRequest parent. + * ListFeatureViewSyncsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance */ - ListFeaturestoresRequest.prototype.parent = ""; + ListFeatureViewSyncsRequest.prototype.parent = ""; /** - * ListFeaturestoresRequest filter. + * ListFeatureViewSyncsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance */ - ListFeaturestoresRequest.prototype.filter = ""; + ListFeatureViewSyncsRequest.prototype.filter = ""; /** - * ListFeaturestoresRequest pageSize. + * ListFeatureViewSyncsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance */ - ListFeaturestoresRequest.prototype.pageSize = 0; + ListFeatureViewSyncsRequest.prototype.pageSize = 0; /** - * ListFeaturestoresRequest pageToken. + * ListFeatureViewSyncsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance */ - ListFeaturestoresRequest.prototype.pageToken = ""; + ListFeatureViewSyncsRequest.prototype.pageToken = ""; /** - * ListFeaturestoresRequest orderBy. + * ListFeatureViewSyncsRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance */ - ListFeaturestoresRequest.prototype.orderBy = ""; + ListFeatureViewSyncsRequest.prototype.orderBy = ""; /** - * ListFeaturestoresRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest - * @instance + * Creates a new ListFeatureViewSyncsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest} ListFeatureViewSyncsRequest instance */ - ListFeaturestoresRequest.prototype.readMask = null; + ListFeatureViewSyncsRequest.create = function create(properties) { + return new ListFeatureViewSyncsRequest(properties); + }; /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * Encodes the specified ListFeatureViewSyncsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest instance - */ - ListFeaturestoresRequest.create = function create(properties) { - return new ListFeaturestoresRequest(properties); - }; - - /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest - * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest} message ListFeatureViewSyncsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresRequest.encode = function encode(message, writer) { + ListFeatureViewSyncsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -55511,39 +54658,37 @@ 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); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. + * Encodes the specified ListFeatureViewSyncsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest} message ListFeatureViewSyncsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureViewSyncsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a ListFeatureViewSyncsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest} ListFeatureViewSyncsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresRequest.decode = function decode(reader, length) { + ListFeatureViewSyncsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55567,10 +54712,6 @@ message.orderBy = reader.string(); break; } - case 6: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -55580,30 +54721,30 @@ }; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewSyncsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest} ListFeatureViewSyncsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresRequest.decodeDelimited = function decodeDelimited(reader) { + ListFeatureViewSyncsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a ListFeatureViewSyncsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturestoresRequest.verify = function verify(message) { + ListFeatureViewSyncsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -55621,26 +54762,21 @@ if (message.orderBy != null && message.hasOwnProperty("orderBy")) if (!$util.isString(message.orderBy)) return "orderBy: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } return null; }; /** - * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewSyncsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest} ListFeatureViewSyncsRequest */ - ListFeaturestoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest) + ListFeatureViewSyncsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -55651,24 +54787,19 @@ message.pageToken = String(object.pageToken); if (object.orderBy != null) message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } return message; }; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureViewSyncsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static - * @param {google.cloud.aiplatform.v1.ListFeaturestoresRequest} message ListFeaturestoresRequest + * @param {google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest} message ListFeatureViewSyncsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresRequest.toObject = function toObject(message, options) { + ListFeatureViewSyncsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -55678,7 +54809,6 @@ object.pageSize = 0; object.pageToken = ""; object.orderBy = ""; - object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -55690,60 +54820,58 @@ object.pageToken = message.pageToken; if (message.orderBy != null && message.hasOwnProperty("orderBy")) object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this ListFeatureViewSyncsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @instance * @returns {Object.} JSON object */ - ListFeaturestoresRequest.prototype.toJSON = function toJSON() { + ListFeatureViewSyncsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFeaturestoresRequest + * Gets the default type url for ListFeatureViewSyncsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFeaturestoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureViewSyncsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturestoresRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest"; }; - return ListFeaturestoresRequest; + return ListFeatureViewSyncsRequest; })(); - v1.ListFeaturestoresResponse = (function() { + v1.ListFeatureViewSyncsResponse = (function() { /** - * Properties of a ListFeaturestoresResponse. + * Properties of a ListFeatureViewSyncsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListFeaturestoresResponse - * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores - * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken + * @interface IListFeatureViewSyncsResponse + * @property {Array.|null} [featureViewSyncs] ListFeatureViewSyncsResponse featureViewSyncs + * @property {string|null} [nextPageToken] ListFeatureViewSyncsResponse nextPageToken */ /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new ListFeatureViewSyncsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListFeaturestoresResponse. - * @implements IListFeaturestoresResponse + * @classdesc Represents a ListFeatureViewSyncsResponse. + * @implements IListFeatureViewSyncsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse=} [properties] Properties to set */ - function ListFeaturestoresResponse(properties) { - this.featurestores = []; + function ListFeatureViewSyncsResponse(properties) { + this.featureViewSyncs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55751,88 +54879,88 @@ } /** - * ListFeaturestoresResponse featurestores. - * @member {Array.} featurestores - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * ListFeatureViewSyncsResponse featureViewSyncs. + * @member {Array.} featureViewSyncs + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @instance */ - ListFeaturestoresResponse.prototype.featurestores = $util.emptyArray; + ListFeatureViewSyncsResponse.prototype.featureViewSyncs = $util.emptyArray; /** - * ListFeaturestoresResponse nextPageToken. + * ListFeatureViewSyncsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @instance */ - ListFeaturestoresResponse.prototype.nextPageToken = ""; + ListFeatureViewSyncsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new ListFeatureViewSyncsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse instance + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} ListFeatureViewSyncsResponse instance */ - ListFeaturestoresResponse.create = function create(properties) { - return new ListFeaturestoresResponse(properties); + ListFeatureViewSyncsResponse.create = function create(properties) { + return new ListFeatureViewSyncsResponse(properties); }; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. + * Encodes the specified ListFeatureViewSyncsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse} message ListFeatureViewSyncsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresResponse.encode = function encode(message, writer) { + ListFeatureViewSyncsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.featurestores != null && message.featurestores.length) - for (var i = 0; i < message.featurestores.length; ++i) - $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureViewSyncs != null && message.featureViewSyncs.length) + for (var i = 0; i < message.featureViewSyncs.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureViewSync.encode(message.featureViewSyncs[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 ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. + * Encodes the specified ListFeatureViewSyncsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static - * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse} message ListFeatureViewSyncsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureViewSyncsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a ListFeatureViewSyncsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} ListFeatureViewSyncsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresResponse.decode = function decode(reader, length) { + ListFeatureViewSyncsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.featurestores && message.featurestores.length)) - message.featurestores = []; - message.featurestores.push($root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32())); + if (!(message.featureViewSyncs && message.featureViewSyncs.length)) + message.featureViewSyncs = []; + message.featureViewSyncs.push($root.google.cloud.aiplatform.v1.FeatureViewSync.decode(reader, reader.uint32())); break; } case 2: { @@ -55848,39 +54976,39 @@ }; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureViewSyncsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} ListFeatureViewSyncsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresResponse.decodeDelimited = function decodeDelimited(reader) { + ListFeatureViewSyncsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a ListFeatureViewSyncsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturestoresResponse.verify = function verify(message) { + ListFeatureViewSyncsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.featurestores != null && message.hasOwnProperty("featurestores")) { - if (!Array.isArray(message.featurestores)) - return "featurestores: array expected"; - for (var i = 0; i < message.featurestores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestores[i]); + if (message.featureViewSyncs != null && message.hasOwnProperty("featureViewSyncs")) { + if (!Array.isArray(message.featureViewSyncs)) + return "featureViewSyncs: array expected"; + for (var i = 0; i < message.featureViewSyncs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureViewSync.verify(message.featureViewSyncs[i]); if (error) - return "featurestores." + error; + return "featureViewSyncs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -55890,25 +55018,25 @@ }; /** - * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureViewSyncsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} ListFeatureViewSyncsResponse */ - ListFeaturestoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse) + ListFeatureViewSyncsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse(); - if (object.featurestores) { - if (!Array.isArray(object.featurestores)) - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresResponse.featurestores: array expected"); - message.featurestores = []; - for (var i = 0; i < object.featurestores.length; ++i) { - if (typeof object.featurestores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresResponse.featurestores: object expected"); - message.featurestores[i] = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestores[i]); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse(); + if (object.featureViewSyncs) { + if (!Array.isArray(object.featureViewSyncs)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.featureViewSyncs: array expected"); + message.featureViewSyncs = []; + for (var i = 0; i < object.featureViewSyncs.length; ++i) { + if (typeof object.featureViewSyncs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse.featureViewSyncs: object expected"); + message.featureViewSyncs[i] = $root.google.cloud.aiplatform.v1.FeatureViewSync.fromObject(object.featureViewSyncs[i]); } } if (object.nextPageToken != null) @@ -55917,26 +55045,26 @@ }; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureViewSyncsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static - * @param {google.cloud.aiplatform.v1.ListFeaturestoresResponse} message ListFeaturestoresResponse + * @param {google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse} message ListFeatureViewSyncsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresResponse.toObject = function toObject(message, options) { + ListFeatureViewSyncsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.featurestores = []; + object.featureViewSyncs = []; if (options.defaults) object.nextPageToken = ""; - if (message.featurestores && message.featurestores.length) { - object.featurestores = []; - for (var j = 0; j < message.featurestores.length; ++j) - object.featurestores[j] = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestores[j], options); + if (message.featureViewSyncs && message.featureViewSyncs.length) { + object.featureViewSyncs = []; + for (var j = 0; j < message.featureViewSyncs.length; ++j) + object.featureViewSyncs[j] = $root.google.cloud.aiplatform.v1.FeatureViewSync.toObject(message.featureViewSyncs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -55944,53 +55072,60 @@ }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this ListFeatureViewSyncsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @instance * @returns {Object.} JSON object */ - ListFeaturestoresResponse.prototype.toJSON = function toJSON() { + ListFeatureViewSyncsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFeaturestoresResponse + * Gets the default type url for ListFeatureViewSyncsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFeaturestoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureViewSyncsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturestoresResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse"; }; - return ListFeaturestoresResponse; + return ListFeatureViewSyncsResponse; })(); - v1.UpdateFeaturestoreRequest = (function() { + v1.FeatureView = (function() { /** - * Properties of an UpdateFeaturestoreRequest. + * Properties of a FeatureView. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateFeaturestoreRequest - * @property {google.cloud.aiplatform.v1.IFeaturestore|null} [featurestore] UpdateFeaturestoreRequest featurestore - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeaturestoreRequest updateMask + * @interface IFeatureView + * @property {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource|null} [bigQuerySource] FeatureView bigQuerySource + * @property {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource|null} [featureRegistrySource] FeatureView featureRegistrySource + * @property {string|null} [name] FeatureView name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureView createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] FeatureView updateTime + * @property {string|null} [etag] FeatureView etag + * @property {Object.|null} [labels] FeatureView labels + * @property {google.cloud.aiplatform.v1.FeatureView.ISyncConfig|null} [syncConfig] FeatureView syncConfig */ /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new FeatureView. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateFeaturestoreRequest. - * @implements IUpdateFeaturestoreRequest + * @classdesc Represents a FeatureView. + * @implements IFeatureView * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureView=} [properties] Properties to set */ - function UpdateFeaturestoreRequest(properties) { + function FeatureView(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55998,326 +55133,207 @@ } /** - * UpdateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * FeatureView bigQuerySource. + * @member {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource|null|undefined} bigQuerySource + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance */ - UpdateFeaturestoreRequest.prototype.featurestore = null; + FeatureView.prototype.bigQuerySource = null; /** - * UpdateFeaturestoreRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * FeatureView featureRegistrySource. + * @member {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource|null|undefined} featureRegistrySource + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance */ - UpdateFeaturestoreRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance - */ - UpdateFeaturestoreRequest.create = function create(properties) { - return new UpdateFeaturestoreRequest(properties); - }; - - /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateFeaturestoreRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestore, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateFeaturestoreRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateFeaturestoreRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateFeaturestoreRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featurestore != null && message.hasOwnProperty("featurestore")) { - var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestore); - if (error) - return "featurestore." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; - - /** - * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest - */ - UpdateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest(); - if (object.featurestore != null) { - if (typeof object.featurestore !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.featurestore: object expected"); - message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestore); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + FeatureView.prototype.featureRegistrySource = null; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FeatureView name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance */ - UpdateFeaturestoreRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.featurestore = null; - object.updateMask = null; - } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestore, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + FeatureView.prototype.name = ""; /** - * Converts this UpdateFeaturestoreRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * FeatureView createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance - * @returns {Object.} JSON object */ - UpdateFeaturestoreRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + FeatureView.prototype.createTime = null; /** - * Gets the default type url for UpdateFeaturestoreRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * FeatureView updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance */ - UpdateFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeaturestoreRequest"; - }; - - return UpdateFeaturestoreRequest; - })(); - - v1.DeleteFeaturestoreRequest = (function() { + FeatureView.prototype.updateTime = null; /** - * Properties of a DeleteFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteFeaturestoreRequest - * @property {string|null} [name] DeleteFeaturestoreRequest name - * @property {boolean|null} [force] DeleteFeaturestoreRequest force + * FeatureView etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance */ + FeatureView.prototype.etag = ""; /** - * Constructs a new DeleteFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteFeaturestoreRequest. - * @implements IDeleteFeaturestoreRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * FeatureView labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance */ - function DeleteFeaturestoreRequest(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]]; - } + FeatureView.prototype.labels = $util.emptyObject; /** - * DeleteFeaturestoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * FeatureView syncConfig. + * @member {google.cloud.aiplatform.v1.FeatureView.ISyncConfig|null|undefined} syncConfig + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance */ - DeleteFeaturestoreRequest.prototype.name = ""; + FeatureView.prototype.syncConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DeleteFeaturestoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * FeatureView source. + * @member {"bigQuerySource"|"featureRegistrySource"|undefined} source + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance */ - DeleteFeaturestoreRequest.prototype.force = false; + Object.defineProperty(FeatureView.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["bigQuerySource", "featureRegistrySource"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureView instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1.IFeatureView=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureView} FeatureView instance */ - DeleteFeaturestoreRequest.create = function create(properties) { - return new DeleteFeaturestoreRequest(properties); + FeatureView.create = function create(properties) { + return new FeatureView(properties); }; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureView message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureView} message FeatureView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeaturestoreRequest.encode = function encode(message, writer) { + FeatureView.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.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.bigQuerySource != null && Object.hasOwnProperty.call(message, "bigQuerySource")) + $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.encode(message.bigQuerySource, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.syncConfig != null && Object.hasOwnProperty.call(message, "syncConfig")) + $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig.encode(message.syncConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.featureRegistrySource != null && Object.hasOwnProperty.call(message, "featureRegistrySource")) + $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.encode(message.featureRegistrySource, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureView} message FeatureView message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureView.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureView message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.FeatureView} FeatureView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeaturestoreRequest.decode = function decode(reader, length) { + FeatureView.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureView(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 6: { + message.bigQuerySource = $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 9: { + message.featureRegistrySource = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.decode(reader, reader.uint32()); + break; + } case 1: { message.name = reader.string(); break; } case 2: { - message.force = reader.bool(); + 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 7: { + message.syncConfig = $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig.decode(reader, reader.uint32()); break; } default: @@ -56329,661 +55345,676 @@ }; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureView message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.FeatureView} FeatureView * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureView.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a FeatureView message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeaturestoreRequest.verify = function verify(message) { + FeatureView.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.verify(message.bigQuerySource); + if (error) + return "bigQuerySource." + error; + } + } + if (message.featureRegistrySource != null && message.hasOwnProperty("featureRegistrySource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.verify(message.featureRegistrySource); + if (error) + return "featureRegistrySource." + error; + } + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.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.syncConfig != null && message.hasOwnProperty("syncConfig")) { + var error = $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig.verify(message.syncConfig); + if (error) + return "syncConfig." + error; + } return null; }; /** - * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureView message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1.FeatureView} FeatureView */ - DeleteFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest) + FeatureView.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureView) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest(); + var message = new $root.google.cloud.aiplatform.v1.FeatureView(); + if (object.bigQuerySource != null) { + if (typeof object.bigQuerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.bigQuerySource: object expected"); + message.bigQuerySource = $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.fromObject(object.bigQuerySource); + } + if (object.featureRegistrySource != null) { + if (typeof object.featureRegistrySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.featureRegistrySource: object expected"); + message.featureRegistrySource = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.fromObject(object.featureRegistrySource); + } if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.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.v1.FeatureView.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.syncConfig != null) { + if (typeof object.syncConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.syncConfig: object expected"); + message.syncConfig = $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig.fromObject(object.syncConfig); + } return message; }; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureView message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static - * @param {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest + * @param {google.cloud.aiplatform.v1.FeatureView} message FeatureView * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeaturestoreRequest.toObject = function toObject(message, options) { + FeatureView.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; - object.force = false; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.syncConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + 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.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) { + object.bigQuerySource = $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.toObject(message.bigQuerySource, options); + if (options.oneofs) + object.source = "bigQuerySource"; + } + if (message.syncConfig != null && message.hasOwnProperty("syncConfig")) + object.syncConfig = $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig.toObject(message.syncConfig, options); + if (message.featureRegistrySource != null && message.hasOwnProperty("featureRegistrySource")) { + object.featureRegistrySource = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.toObject(message.featureRegistrySource, options); + if (options.oneofs) + object.source = "featureRegistrySource"; + } return object; }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this FeatureView to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @instance * @returns {Object.} JSON object */ - DeleteFeaturestoreRequest.prototype.toJSON = function toJSON() { + FeatureView.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFeaturestoreRequest + * Gets the default type url for FeatureView * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1.FeatureView * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeaturestoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureView"; }; - return DeleteFeaturestoreRequest; - })(); + FeatureView.BigQuerySource = (function() { - v1.ImportFeatureValuesRequest = (function() { + /** + * Properties of a BigQuerySource. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @interface IBigQuerySource + * @property {string|null} [uri] BigQuerySource uri + * @property {Array.|null} [entityIdColumns] BigQuerySource entityIdColumns + */ - /** - * Properties of an ImportFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IImportFeatureValuesRequest - * @property {google.cloud.aiplatform.v1.IAvroSource|null} [avroSource] ImportFeatureValuesRequest avroSource - * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] ImportFeatureValuesRequest bigquerySource - * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvSource] ImportFeatureValuesRequest csvSource - * @property {string|null} [featureTimeField] ImportFeatureValuesRequest featureTimeField - * @property {google.protobuf.ITimestamp|null} [featureTime] ImportFeatureValuesRequest featureTime - * @property {string|null} [entityType] ImportFeatureValuesRequest entityType - * @property {string|null} [entityIdField] ImportFeatureValuesRequest entityIdField - * @property {Array.|null} [featureSpecs] ImportFeatureValuesRequest featureSpecs - * @property {boolean|null} [disableOnlineServing] ImportFeatureValuesRequest disableOnlineServing - * @property {number|null} [workerCount] ImportFeatureValuesRequest workerCount - * @property {boolean|null} [disableIngestionAnalysis] ImportFeatureValuesRequest disableIngestionAnalysis - */ + /** + * Constructs a new BigQuerySource. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @classdesc Represents a BigQuerySource. + * @implements IBigQuerySource + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource=} [properties] Properties to set + */ + function BigQuerySource(properties) { + this.entityIdColumns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ImportFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ImportFeatureValuesRequest. - * @implements IImportFeatureValuesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest=} [properties] Properties to set - */ - function ImportFeatureValuesRequest(properties) { - this.featureSpecs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * BigQuerySource uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @instance + */ + BigQuerySource.prototype.uri = ""; - /** - * ImportFeatureValuesRequest avroSource. - * @member {google.cloud.aiplatform.v1.IAvroSource|null|undefined} avroSource - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.avroSource = null; + /** + * BigQuerySource entityIdColumns. + * @member {Array.} entityIdColumns + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @instance + */ + BigQuerySource.prototype.entityIdColumns = $util.emptyArray; - /** - * ImportFeatureValuesRequest bigquerySource. - * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.bigquerySource = null; + /** + * Creates a new BigQuerySource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureView.BigQuerySource} BigQuerySource instance + */ + BigQuerySource.create = function create(properties) { + return new BigQuerySource(properties); + }; - /** - * ImportFeatureValuesRequest csvSource. - * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvSource - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.csvSource = null; + /** + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.BigQuerySource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.entityIdColumns != null && message.entityIdColumns.length) + for (var i = 0; i < message.entityIdColumns.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIdColumns[i]); + return writer; + }; - /** - * ImportFeatureValuesRequest featureTimeField. - * @member {string|null|undefined} featureTimeField - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.featureTimeField = null; + /** + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.BigQuerySource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.IBigQuerySource} message BigQuerySource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQuerySource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ImportFeatureValuesRequest featureTime. - * @member {google.protobuf.ITimestamp|null|undefined} featureTime - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.featureTime = null; + /** + * Decodes a BigQuerySource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureView.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + if (!(message.entityIdColumns && message.entityIdColumns.length)) + message.entityIdColumns = []; + message.entityIdColumns.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ImportFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.entityType = ""; + /** + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureView.BigQuerySource} BigQuerySource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQuerySource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ImportFeatureValuesRequest entityIdField. - * @member {string} entityIdField - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.entityIdField = ""; + /** + * Verifies a BigQuerySource message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQuerySource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.entityIdColumns != null && message.hasOwnProperty("entityIdColumns")) { + if (!Array.isArray(message.entityIdColumns)) + return "entityIdColumns: array expected"; + for (var i = 0; i < message.entityIdColumns.length; ++i) + if (!$util.isString(message.entityIdColumns[i])) + return "entityIdColumns: string[] expected"; + } + return null; + }; - /** - * ImportFeatureValuesRequest featureSpecs. - * @member {Array.} featureSpecs - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; + /** + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureView.BigQuerySource} BigQuerySource + */ + BigQuerySource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureView.BigQuerySource(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.entityIdColumns) { + if (!Array.isArray(object.entityIdColumns)) + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.BigQuerySource.entityIdColumns: array expected"); + message.entityIdColumns = []; + for (var i = 0; i < object.entityIdColumns.length; ++i) + message.entityIdColumns[i] = String(object.entityIdColumns[i]); + } + return message; + }; - /** - * ImportFeatureValuesRequest disableOnlineServing. - * @member {boolean} disableOnlineServing - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.disableOnlineServing = false; + /** + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.BigQuerySource} message BigQuerySource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQuerySource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entityIdColumns = []; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.entityIdColumns && message.entityIdColumns.length) { + object.entityIdColumns = []; + for (var j = 0; j < message.entityIdColumns.length; ++j) + object.entityIdColumns[j] = message.entityIdColumns[j]; + } + return object; + }; - /** - * ImportFeatureValuesRequest workerCount. - * @member {number} workerCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.workerCount = 0; + /** + * Converts this BigQuerySource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @instance + * @returns {Object.} JSON object + */ + BigQuerySource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ImportFeatureValuesRequest disableIngestionAnalysis. - * @member {boolean} disableIngestionAnalysis - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; + /** + * Gets the default type url for BigQuerySource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureView.BigQuerySource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BigQuerySource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureView.BigQuerySource"; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return BigQuerySource; + })(); - /** - * ImportFeatureValuesRequest source. - * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + FeatureView.SyncConfig = (function() { - /** - * ImportFeatureValuesRequest featureTimeSource. - * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "featureTimeSource", { - get: $util.oneOfGetter($oneOfFields = ["featureTimeField", "featureTime"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Properties of a SyncConfig. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @interface ISyncConfig + * @property {string|null} [cron] SyncConfig cron + */ - /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance - */ - ImportFeatureValuesRequest.create = function create(properties) { - return new ImportFeatureValuesRequest(properties); - }; + /** + * Constructs a new SyncConfig. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @classdesc Represents a SyncConfig. + * @implements ISyncConfig + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureView.ISyncConfig=} [properties] Properties to set + */ + function SyncConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFeatureValuesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.avroSource != null && Object.hasOwnProperty.call(message, "avroSource")) - $root.google.cloud.aiplatform.v1.AvroSource.encode(message.avroSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) - $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); - if (message.featureTimeField != null && Object.hasOwnProperty.call(message, "featureTimeField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.featureTimeField); - if (message.featureTime != null && Object.hasOwnProperty.call(message, "featureTime")) - $root.google.protobuf.Timestamp.encode(message.featureTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.featureSpecs != null && message.featureSpecs.length) - for (var i = 0; i < message.featureSpecs.length; ++i) - $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.encode(message.featureSpecs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.disableOnlineServing != null && Object.hasOwnProperty.call(message, "disableOnlineServing")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disableOnlineServing); - if (message.workerCount != null && Object.hasOwnProperty.call(message, "workerCount")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.workerCount); - if (message.disableIngestionAnalysis != null && Object.hasOwnProperty.call(message, "disableIngestionAnalysis")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableIngestionAnalysis); - return writer; - }; + /** + * SyncConfig cron. + * @member {string} cron + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @instance + */ + SyncConfig.prototype.cron = ""; - /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new SyncConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.ISyncConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureView.SyncConfig} SyncConfig instance + */ + SyncConfig.create = function create(properties) { + return new SyncConfig(properties); + }; - /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFeatureValuesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.decode(reader, reader.uint32()); - break; - } - case 3: { - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); - break; - } - case 4: { - message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); - break; - } - case 6: { - message.featureTimeField = reader.string(); - break; - } - case 7: { - message.featureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 1: { - message.entityType = reader.string(); - break; - } - case 5: { - message.entityIdField = reader.string(); - break; - } - case 8: { - if (!(message.featureSpecs && message.featureSpecs.length)) - message.featureSpecs = []; - message.featureSpecs.push($root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.decode(reader, reader.uint32())); - break; - } - case 9: { - message.disableOnlineServing = reader.bool(); - break; - } - case 11: { - message.workerCount = reader.int32(); - break; - } - case 12: { - message.disableIngestionAnalysis = reader.bool(); + /** + * Encodes the specified SyncConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.SyncConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.ISyncConfig} message SyncConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SyncConfig.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 SyncConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.SyncConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.ISyncConfig} message SyncConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SyncConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SyncConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureView.SyncConfig} SyncConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SyncConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cron = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a SyncConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureView.SyncConfig} SyncConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SyncConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an ImportFeatureValuesRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportFeatureValuesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.avroSource != null && message.hasOwnProperty("avroSource")) { - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1.AvroSource.verify(message.avroSource); - if (error) - return "avroSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } - } - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvSource); - if (error) - return "csvSource." + error; - } - } - if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { - properties.featureTimeSource = 1; - if (!$util.isString(message.featureTimeField)) - return "featureTimeField: string expected"; - } - if (message.featureTime != null && message.hasOwnProperty("featureTime")) { - if (properties.featureTimeSource === 1) - return "featureTimeSource: multiple values"; - properties.featureTimeSource = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.featureTime); - if (error) - return "featureTime." + error; - } - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - if (!$util.isString(message.entityIdField)) - return "entityIdField: string expected"; - if (message.featureSpecs != null && message.hasOwnProperty("featureSpecs")) { - if (!Array.isArray(message.featureSpecs)) - return "featureSpecs: array expected"; - for (var i = 0; i < message.featureSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify(message.featureSpecs[i]); - if (error) - return "featureSpecs." + error; - } - } - if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) - if (typeof message.disableOnlineServing !== "boolean") - return "disableOnlineServing: boolean expected"; - if (message.workerCount != null && message.hasOwnProperty("workerCount")) - if (!$util.isInteger(message.workerCount)) - return "workerCount: integer expected"; - if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) - if (typeof message.disableIngestionAnalysis !== "boolean") - return "disableIngestionAnalysis: boolean expected"; - return null; - }; + /** + * Verifies a SyncConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SyncConfig.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 an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest - */ - ImportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest) + /** + * Creates a SyncConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureView.SyncConfig} SyncConfig + */ + SyncConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureView.SyncConfig(); + if (object.cron != null) + message.cron = String(object.cron); + return message; + }; + + /** + * Creates a plain object from a SyncConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.SyncConfig} message SyncConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SyncConfig.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; - var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest(); - if (object.avroSource != null) { - if (typeof object.avroSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.avroSource: object expected"); - message.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.fromObject(object.avroSource); - } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); - } - if (object.csvSource != null) { - if (typeof object.csvSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.csvSource: object expected"); - message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvSource); - } - if (object.featureTimeField != null) - message.featureTimeField = String(object.featureTimeField); - if (object.featureTime != null) { - if (typeof object.featureTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureTime: object expected"); - message.featureTime = $root.google.protobuf.Timestamp.fromObject(object.featureTime); - } - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityIdField != null) - message.entityIdField = String(object.entityIdField); - if (object.featureSpecs) { - if (!Array.isArray(object.featureSpecs)) - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureSpecs: array expected"); - message.featureSpecs = []; - for (var i = 0; i < object.featureSpecs.length; ++i) { - if (typeof object.featureSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureSpecs: object expected"); - message.featureSpecs[i] = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.fromObject(object.featureSpecs[i]); - } - } - if (object.disableOnlineServing != null) - message.disableOnlineServing = Boolean(object.disableOnlineServing); - if (object.workerCount != null) - message.workerCount = object.workerCount | 0; - if (object.disableIngestionAnalysis != null) - message.disableIngestionAnalysis = Boolean(object.disableIngestionAnalysis); - return message; - }; + }; - /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportFeatureValuesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.featureSpecs = []; - if (options.defaults) { - object.entityType = ""; - object.entityIdField = ""; - object.disableOnlineServing = false; - object.workerCount = 0; - object.disableIngestionAnalysis = false; - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.avroSource != null && message.hasOwnProperty("avroSource")) { - object.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.toObject(message.avroSource, options); - if (options.oneofs) - object.source = "avroSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.source = "bigquerySource"; - } - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - object.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvSource, options); - if (options.oneofs) - object.source = "csvSource"; - } - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - object.entityIdField = message.entityIdField; - if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { - object.featureTimeField = message.featureTimeField; - if (options.oneofs) - object.featureTimeSource = "featureTimeField"; - } - if (message.featureTime != null && message.hasOwnProperty("featureTime")) { - object.featureTime = $root.google.protobuf.Timestamp.toObject(message.featureTime, options); - if (options.oneofs) - object.featureTimeSource = "featureTime"; - } - if (message.featureSpecs && message.featureSpecs.length) { - object.featureSpecs = []; - for (var j = 0; j < message.featureSpecs.length; ++j) - object.featureSpecs[j] = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.toObject(message.featureSpecs[j], options); - } - if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) - object.disableOnlineServing = message.disableOnlineServing; - if (message.workerCount != null && message.hasOwnProperty("workerCount")) - object.workerCount = message.workerCount; - if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) - object.disableIngestionAnalysis = message.disableIngestionAnalysis; - return object; - }; + /** + * Converts this SyncConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @instance + * @returns {Object.} JSON object + */ + SyncConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ImportFeatureValuesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @instance - * @returns {Object.} JSON object - */ - ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for SyncConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureView.SyncConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SyncConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureView.SyncConfig"; + }; - /** - * Gets the default type url for ImportFeatureValuesRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ImportFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesRequest"; - }; + return SyncConfig; + })(); - ImportFeatureValuesRequest.FeatureSpec = (function() { + FeatureView.FeatureRegistrySource = (function() { /** - * Properties of a FeatureSpec. - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @interface IFeatureSpec - * @property {string|null} [id] FeatureSpec id - * @property {string|null} [sourceField] FeatureSpec sourceField + * Properties of a FeatureRegistrySource. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @interface IFeatureRegistrySource + * @property {Array.|null} [featureGroups] FeatureRegistrySource featureGroups */ /** - * Constructs a new FeatureSpec. - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest - * @classdesc Represents a FeatureSpec. - * @implements IFeatureSpec + * Constructs a new FeatureRegistrySource. + * @memberof google.cloud.aiplatform.v1.FeatureView + * @classdesc Represents a FeatureRegistrySource. + * @implements IFeatureRegistrySource * @constructor - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource=} [properties] Properties to set */ - function FeatureSpec(properties) { + function FeatureRegistrySource(properties) { + this.featureGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56991,89 +56022,78 @@ } /** - * FeatureSpec id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec - * @instance - */ - FeatureSpec.prototype.id = ""; - - /** - * FeatureSpec sourceField. - * @member {string} sourceField - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * FeatureRegistrySource featureGroups. + * @member {Array.} featureGroups + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @instance */ - FeatureSpec.prototype.sourceField = ""; + FeatureRegistrySource.prototype.featureGroups = $util.emptyArray; /** - * Creates a new FeatureSpec instance using the specified properties. + * Creates a new FeatureRegistrySource instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec instance + * @param {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource} FeatureRegistrySource instance */ - FeatureSpec.create = function create(properties) { - return new FeatureSpec(properties); + FeatureRegistrySource.create = function create(properties) { + return new FeatureRegistrySource(properties); }; /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * Encodes the specified FeatureRegistrySource message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource} message FeatureRegistrySource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureSpec.encode = function encode(message, writer) { + FeatureRegistrySource.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.sourceField != null && Object.hasOwnProperty.call(message, "sourceField")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceField); + if (message.featureGroups != null && message.featureGroups.length) + for (var i = 0; i < message.featureGroups.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.encode(message.featureGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * Encodes the specified FeatureRegistrySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.FeatureView.IFeatureRegistrySource} message FeatureRegistrySource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureSpec.encodeDelimited = function encodeDelimited(message, writer) { + FeatureRegistrySource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureSpec message from the specified reader or buffer. + * Decodes a FeatureRegistrySource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource} FeatureRegistrySource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureSpec.decode = function decode(reader, length) { + FeatureRegistrySource.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); - break; - } - case 2: { - message.sourceField = reader.string(); + if (!(message.featureGroups && message.featureGroups.length)) + message.featureGroups = []; + message.featureGroups.push($root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.decode(reader, reader.uint32())); break; } default: @@ -57085,137 +56105,388 @@ }; /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * Decodes a FeatureRegistrySource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource} FeatureRegistrySource * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureSpec.decodeDelimited = function decodeDelimited(reader) { + FeatureRegistrySource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureSpec message. + * Verifies a FeatureRegistrySource message. * @function verify - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureSpec.verify = function verify(message) { + FeatureRegistrySource.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.sourceField != null && message.hasOwnProperty("sourceField")) - if (!$util.isString(message.sourceField)) - return "sourceField: string expected"; + if (message.featureGroups != null && message.hasOwnProperty("featureGroups")) { + if (!Array.isArray(message.featureGroups)) + return "featureGroups: array expected"; + for (var i = 0; i < message.featureGroups.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.verify(message.featureGroups[i]); + if (error) + return "featureGroups." + error; + } + } return null; }; /** - * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureRegistrySource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource} FeatureRegistrySource */ - FeatureSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec) + FeatureRegistrySource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) return object; - var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec(); - if (object.id != null) - message.id = String(object.id); - if (object.sourceField != null) - message.sourceField = String(object.sourceField); + var message = new $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource(); + if (object.featureGroups) { + if (!Array.isArray(object.featureGroups)) + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.featureGroups: array expected"); + message.featureGroups = []; + for (var i = 0; i < object.featureGroups.length; ++i) { + if (typeof object.featureGroups[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.featureGroups: object expected"); + message.featureGroups[i] = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.fromObject(object.featureGroups[i]); + } + } return message; }; /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * Creates a plain object from a FeatureRegistrySource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} message FeatureSpec + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource} message FeatureRegistrySource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureSpec.toObject = function toObject(message, options) { + FeatureRegistrySource.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.id = ""; - object.sourceField = ""; + if (options.arrays || options.defaults) + object.featureGroups = []; + if (message.featureGroups && message.featureGroups.length) { + object.featureGroups = []; + for (var j = 0; j < message.featureGroups.length; ++j) + object.featureGroups[j] = $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.toObject(message.featureGroups[j], options); } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.sourceField != null && message.hasOwnProperty("sourceField")) - object.sourceField = message.sourceField; return object; }; /** - * Converts this FeatureSpec to JSON. + * Converts this FeatureRegistrySource to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @instance * @returns {Object.} JSON object */ - FeatureSpec.prototype.toJSON = function toJSON() { + FeatureRegistrySource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FeatureSpec + * Gets the default type url for FeatureRegistrySource * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FeatureSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureRegistrySource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource"; }; - return FeatureSpec; + FeatureRegistrySource.FeatureGroup = (function() { + + /** + * Properties of a FeatureGroup. + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + * @interface IFeatureGroup + * @property {string|null} [featureGroupId] FeatureGroup featureGroupId + * @property {Array.|null} [featureIds] FeatureGroup featureIds + */ + + /** + * Constructs a new FeatureGroup. + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + * @classdesc Represents a FeatureGroup. + * @implements IFeatureGroup + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup=} [properties] Properties to set + */ + function FeatureGroup(properties) { + this.featureIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureGroup featureGroupId. + * @member {string} featureGroupId + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @instance + */ + FeatureGroup.prototype.featureGroupId = ""; + + /** + * FeatureGroup featureIds. + * @member {Array.} featureIds + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @instance + */ + FeatureGroup.prototype.featureIds = $util.emptyArray; + + /** + * Creates a new FeatureGroup instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup} FeatureGroup instance + */ + FeatureGroup.create = function create(properties) { + return new FeatureGroup(properties); + }; + + /** + * Encodes the specified FeatureGroup message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup} message FeatureGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureGroup.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureGroupId != null && Object.hasOwnProperty.call(message, "featureGroupId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureGroupId); + if (message.featureIds != null && message.featureIds.length) + for (var i = 0; i < message.featureIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.featureIds[i]); + return writer; + }; + + /** + * Encodes the specified FeatureGroup message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.IFeatureGroup} message FeatureGroup message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureGroup.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureGroup message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup} FeatureGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureGroup.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureGroupId = reader.string(); + break; + } + case 2: { + if (!(message.featureIds && message.featureIds.length)) + message.featureIds = []; + message.featureIds.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureGroup message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup} FeatureGroup + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureGroup.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureGroup message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureGroup.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureGroupId != null && message.hasOwnProperty("featureGroupId")) + if (!$util.isString(message.featureGroupId)) + return "featureGroupId: string expected"; + if (message.featureIds != null && message.hasOwnProperty("featureIds")) { + if (!Array.isArray(message.featureIds)) + return "featureIds: array expected"; + for (var i = 0; i < message.featureIds.length; ++i) + if (!$util.isString(message.featureIds[i])) + return "featureIds: string[] expected"; + } + return null; + }; + + /** + * Creates a FeatureGroup message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup} FeatureGroup + */ + FeatureGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup(); + if (object.featureGroupId != null) + message.featureGroupId = String(object.featureGroupId); + if (object.featureIds) { + if (!Array.isArray(object.featureIds)) + throw TypeError(".google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup.featureIds: array expected"); + message.featureIds = []; + for (var i = 0; i < object.featureIds.length; ++i) + message.featureIds[i] = String(object.featureIds[i]); + } + return message; + }; + + /** + * Creates a plain object from a FeatureGroup message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup} message FeatureGroup + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureGroup.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureIds = []; + if (options.defaults) + object.featureGroupId = ""; + if (message.featureGroupId != null && message.hasOwnProperty("featureGroupId")) + object.featureGroupId = message.featureGroupId; + if (message.featureIds && message.featureIds.length) { + object.featureIds = []; + for (var j = 0; j < message.featureIds.length; ++j) + object.featureIds[j] = message.featureIds[j]; + } + return object; + }; + + /** + * Converts this FeatureGroup to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @instance + * @returns {Object.} JSON object + */ + FeatureGroup.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureGroup + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.FeatureGroup"; + }; + + return FeatureGroup; + })(); + + return FeatureRegistrySource; })(); - return ImportFeatureValuesRequest; + return FeatureView; })(); - v1.ImportFeatureValuesResponse = (function() { + v1.FeatureViewSync = (function() { /** - * Properties of an ImportFeatureValuesResponse. + * Properties of a FeatureViewSync. * @memberof google.cloud.aiplatform.v1 - * @interface IImportFeatureValuesResponse - * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount - * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount - * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount - * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesResponse timestampOutsideRetentionRowsCount + * @interface IFeatureViewSync + * @property {string|null} [name] FeatureViewSync name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureViewSync createTime + * @property {google.type.IInterval|null} [runTime] FeatureViewSync runTime + * @property {google.rpc.IStatus|null} [finalStatus] FeatureViewSync finalStatus */ /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new FeatureViewSync. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ImportFeatureValuesResponse. - * @implements IImportFeatureValuesResponse + * @classdesc Represents a FeatureViewSync. + * @implements IFeatureViewSync * @constructor - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureViewSync=} [properties] Properties to set */ - function ImportFeatureValuesResponse(properties) { + function FeatureViewSync(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57223,117 +56494,117 @@ } /** - * ImportFeatureValuesResponse importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * FeatureViewSync name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @instance */ - ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FeatureViewSync.prototype.name = ""; /** - * ImportFeatureValuesResponse importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * FeatureViewSync createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @instance */ - ImportFeatureValuesResponse.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FeatureViewSync.prototype.createTime = null; /** - * ImportFeatureValuesResponse invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * FeatureViewSync runTime. + * @member {google.type.IInterval|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @instance */ - ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FeatureViewSync.prototype.runTime = null; /** - * ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. - * @member {number|Long} timestampOutsideRetentionRowsCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * FeatureViewSync finalStatus. + * @member {google.rpc.IStatus|null|undefined} finalStatus + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @instance */ - ImportFeatureValuesResponse.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FeatureViewSync.prototype.finalStatus = null; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new FeatureViewSync instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1.IFeatureViewSync=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureViewSync} FeatureViewSync instance */ - ImportFeatureValuesResponse.create = function create(properties) { - return new ImportFeatureValuesResponse(properties); + FeatureViewSync.create = function create(properties) { + return new FeatureViewSync(properties); }; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified FeatureViewSync message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewSync.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureViewSync} message FeatureViewSync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesResponse.encode = function encode(message, writer) { + FeatureViewSync.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); - if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); - if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampOutsideRetentionRowsCount); - if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + 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 4, wireType 2 =*/34).fork()).ldelim(); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.type.Interval.encode(message.runTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified FeatureViewSync message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewSync.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureViewSync} message FeatureViewSync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + FeatureViewSync.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a FeatureViewSync message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.FeatureViewSync} FeatureViewSync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesResponse.decode = function decode(reader, length) { + FeatureViewSync.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureViewSync(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.importedEntityCount = reader.int64(); + message.name = reader.string(); break; } case 2: { - message.importedFeatureValueCount = reader.int64(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 6: { - message.invalidRowCount = reader.int64(); + case 5: { + message.runTime = $root.google.type.Interval.decode(reader, reader.uint32()); break; } case 4: { - message.timestampOutsideRetentionRowsCount = reader.int64(); + message.finalStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -57345,211 +56616,246 @@ }; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureViewSync message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.FeatureViewSync} FeatureViewSync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + FeatureViewSync.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies a FeatureViewSync message. * @function verify - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFeatureValuesResponse.verify = function verify(message) { + FeatureViewSync.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) - return "importedEntityCount: integer|Long expected"; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) - return "importedFeatureValueCount: integer|Long expected"; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) - return "invalidRowCount: integer|Long expected"; - if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) - if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) - return "timestampOutsideRetentionRowsCount: integer|Long 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.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.type.Interval.verify(message.runTime); + if (error) + return "runTime." + error; + } + if (message.finalStatus != null && message.hasOwnProperty("finalStatus")) { + var error = $root.google.rpc.Status.verify(message.finalStatus); + if (error) + return "finalStatus." + error; + } return null; }; /** - * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureViewSync message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.FeatureViewSync} FeatureViewSync */ - ImportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse) + FeatureViewSync.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureViewSync) return object; - var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse(); - if (object.importedEntityCount != null) - if ($util.Long) - (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; - else if (typeof object.importedEntityCount === "string") - message.importedEntityCount = parseInt(object.importedEntityCount, 10); - else if (typeof object.importedEntityCount === "number") - message.importedEntityCount = object.importedEntityCount; - else if (typeof object.importedEntityCount === "object") - message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); - if (object.importedFeatureValueCount != null) - if ($util.Long) - (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; - else if (typeof object.importedFeatureValueCount === "string") - message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); - else if (typeof object.importedFeatureValueCount === "number") - message.importedFeatureValueCount = object.importedFeatureValueCount; - else if (typeof object.importedFeatureValueCount === "object") - message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); - if (object.invalidRowCount != null) - if ($util.Long) - (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; - else if (typeof object.invalidRowCount === "string") - message.invalidRowCount = parseInt(object.invalidRowCount, 10); - else if (typeof object.invalidRowCount === "number") - message.invalidRowCount = object.invalidRowCount; - else if (typeof object.invalidRowCount === "object") - message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); - if (object.timestampOutsideRetentionRowsCount != null) - if ($util.Long) - (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; - else if (typeof object.timestampOutsideRetentionRowsCount === "string") - message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); - else if (typeof object.timestampOutsideRetentionRowsCount === "number") - message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; - else if (typeof object.timestampOutsideRetentionRowsCount === "object") - message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1.FeatureViewSync(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureViewSync.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureViewSync.runTime: object expected"); + message.runTime = $root.google.type.Interval.fromObject(object.runTime); + } + if (object.finalStatus != null) { + if (typeof object.finalStatus !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureViewSync.finalStatus: object expected"); + message.finalStatus = $root.google.rpc.Status.fromObject(object.finalStatus); + } return message; }; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a FeatureViewSync message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.FeatureViewSync} message FeatureViewSync * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesResponse.toObject = function toObject(message, options) { + FeatureViewSync.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedEntityCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedFeatureValueCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRowCount = options.longs === String ? "0" : 0; + object.name = ""; + object.createTime = null; + object.finalStatus = null; + object.runTime = null; } - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (typeof message.importedEntityCount === "number") - object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; - else - object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (typeof message.importedFeatureValueCount === "number") - object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; - else - object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; - if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) - if (typeof message.timestampOutsideRetentionRowsCount === "number") - object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; - else - object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (typeof message.invalidRowCount === "number") - object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; - else - object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + 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.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.type.Interval.toObject(message.runTime, options); return object; }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this FeatureViewSync to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { + FeatureViewSync.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFeatureValuesResponse + * Gets the default type url for FeatureViewSync * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.FeatureViewSync * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureViewSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureViewSync"; }; - return ImportFeatureValuesResponse; + return FeatureViewSync; })(); - v1.BatchReadFeatureValuesRequest = (function() { + v1.FeatureOnlineStoreService = (function() { /** - * Properties of a BatchReadFeatureValuesRequest. + * Constructs a new FeatureOnlineStoreService service. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchReadFeatureValuesRequest - * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvReadInstances] BatchReadFeatureValuesRequest csvReadInstances - * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigqueryReadInstances] BatchReadFeatureValuesRequest bigqueryReadInstances - * @property {string|null} [featurestore] BatchReadFeatureValuesRequest featurestore - * @property {google.cloud.aiplatform.v1.IFeatureValueDestination|null} [destination] BatchReadFeatureValuesRequest destination - * @property {Array.|null} [passThroughFields] BatchReadFeatureValuesRequest passThroughFields - * @property {Array.|null} [entityTypeSpecs] BatchReadFeatureValuesRequest entityTypeSpecs - * @property {google.protobuf.ITimestamp|null} [startTime] BatchReadFeatureValuesRequest startTime + * @classdesc Represents a FeatureOnlineStoreService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function FeatureOnlineStoreService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeatureOnlineStoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeatureOnlineStoreService; /** - * Constructs a new BatchReadFeatureValuesRequest. + * Creates new FeatureOnlineStoreService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeatureOnlineStoreService} RPC service. Useful where requests and/or responses are streamed. + */ + FeatureOnlineStoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureOnlineStoreService|fetchFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreService + * @typedef FetchFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} [response] FetchFeatureValuesResponse + */ + + /** + * Calls FetchFeatureValues. + * @function fetchFeatureValues + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreService + * @instance + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest} request FetchFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValuesCallback} callback Node-style callback called with the error, if any, and FetchFeatureValuesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureOnlineStoreService.prototype.fetchFeatureValues = function fetchFeatureValues(request, callback) { + return this.rpcCall(fetchFeatureValues, $root.google.cloud.aiplatform.v1.FetchFeatureValuesRequest, $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse, request, callback); + }, "name", { value: "FetchFeatureValues" }); + + /** + * Calls FetchFeatureValues. + * @function fetchFeatureValues + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStoreService + * @instance + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest} request FetchFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeatureOnlineStoreService; + })(); + + /** + * FeatureViewDataFormat enum. + * @name google.cloud.aiplatform.v1.FeatureViewDataFormat + * @enum {number} + * @property {number} FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED=0 FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED value + * @property {number} KEY_VALUE=1 KEY_VALUE value + * @property {number} PROTO_STRUCT=2 PROTO_STRUCT value + */ + v1.FeatureViewDataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEY_VALUE"] = 1; + values[valuesById[2] = "PROTO_STRUCT"] = 2; + return values; + })(); + + v1.FeatureViewDataKey = (function() { + + /** + * Properties of a FeatureViewDataKey. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchReadFeatureValuesRequest. - * @implements IBatchReadFeatureValuesRequest + * @interface IFeatureViewDataKey + * @property {string|null} [key] FeatureViewDataKey key + */ + + /** + * Constructs a new FeatureViewDataKey. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FeatureViewDataKey. + * @implements IFeatureViewDataKey * @constructor - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureViewDataKey=} [properties] Properties to set */ - function BatchReadFeatureValuesRequest(properties) { - this.passThroughFields = []; - this.entityTypeSpecs = []; + function FeatureViewDataKey(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57557,179 +56863,604 @@ } /** - * BatchReadFeatureValuesRequest csvReadInstances. - * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvReadInstances - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * FeatureViewDataKey key. + * @member {string|null|undefined} key + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey * @instance */ - BatchReadFeatureValuesRequest.prototype.csvReadInstances = null; + FeatureViewDataKey.prototype.key = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * BatchReadFeatureValuesRequest bigqueryReadInstances. - * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigqueryReadInstances - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * FeatureViewDataKey keyOneof. + * @member {"key"|undefined} keyOneof + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey * @instance */ - BatchReadFeatureValuesRequest.prototype.bigqueryReadInstances = null; + Object.defineProperty(FeatureViewDataKey.prototype, "keyOneof", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * BatchReadFeatureValuesRequest featurestore. - * @member {string} featurestore - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * Creates a new FeatureViewDataKey instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1.IFeatureViewDataKey=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureViewDataKey} FeatureViewDataKey instance + */ + FeatureViewDataKey.create = function create(properties) { + return new FeatureViewDataKey(properties); + }; + + /** + * Encodes the specified FeatureViewDataKey message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewDataKey.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1.IFeatureViewDataKey} message FeatureViewDataKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureViewDataKey.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + return writer; + }; + + /** + * Encodes the specified FeatureViewDataKey message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureViewDataKey.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1.IFeatureViewDataKey} message FeatureViewDataKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureViewDataKey.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureViewDataKey} FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureViewDataKey.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureViewDataKey(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.key = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureViewDataKey} FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureViewDataKey.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureViewDataKey message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureViewDataKey.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.key != null && message.hasOwnProperty("key")) { + properties.keyOneof = 1; + if (!$util.isString(message.key)) + return "key: string expected"; + } + return null; + }; + + /** + * Creates a FeatureViewDataKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureViewDataKey} FeatureViewDataKey + */ + FeatureViewDataKey.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureViewDataKey) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureViewDataKey(); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a FeatureViewDataKey message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1.FeatureViewDataKey} message FeatureViewDataKey + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureViewDataKey.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.key != null && message.hasOwnProperty("key")) { + object.key = message.key; + if (options.oneofs) + object.keyOneof = "key"; + } + return object; + }; + + /** + * Converts this FeatureViewDataKey to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey * @instance + * @returns {Object.} JSON object */ - BatchReadFeatureValuesRequest.prototype.featurestore = ""; + FeatureViewDataKey.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * BatchReadFeatureValuesRequest destination. - * @member {google.cloud.aiplatform.v1.IFeatureValueDestination|null|undefined} destination - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * Gets the default type url for FeatureViewDataKey + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureViewDataKey + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureViewDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureViewDataKey"; + }; + + return FeatureViewDataKey; + })(); + + v1.FetchFeatureValuesRequest = (function() { + + /** + * Properties of a FetchFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IFetchFeatureValuesRequest + * @property {string|null} [featureView] FetchFeatureValuesRequest featureView + * @property {google.cloud.aiplatform.v1.IFeatureViewDataKey|null} [dataKey] FetchFeatureValuesRequest dataKey + * @property {google.cloud.aiplatform.v1.FeatureViewDataFormat|null} [dataFormat] FetchFeatureValuesRequest dataFormat + */ + + /** + * Constructs a new FetchFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FetchFeatureValuesRequest. + * @implements IFetchFeatureValuesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest=} [properties] Properties to set + */ + function FetchFeatureValuesRequest(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]]; + } + + /** + * FetchFeatureValuesRequest featureView. + * @member {string} featureView + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest * @instance */ - BatchReadFeatureValuesRequest.prototype.destination = null; + FetchFeatureValuesRequest.prototype.featureView = ""; /** - * BatchReadFeatureValuesRequest passThroughFields. - * @member {Array.} passThroughFields - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * FetchFeatureValuesRequest dataKey. + * @member {google.cloud.aiplatform.v1.IFeatureViewDataKey|null|undefined} dataKey + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest * @instance */ - BatchReadFeatureValuesRequest.prototype.passThroughFields = $util.emptyArray; + FetchFeatureValuesRequest.prototype.dataKey = null; /** - * BatchReadFeatureValuesRequest entityTypeSpecs. - * @member {Array.} entityTypeSpecs - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * FetchFeatureValuesRequest dataFormat. + * @member {google.cloud.aiplatform.v1.FeatureViewDataFormat} dataFormat + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest * @instance */ - BatchReadFeatureValuesRequest.prototype.entityTypeSpecs = $util.emptyArray; + FetchFeatureValuesRequest.prototype.dataFormat = 0; /** - * BatchReadFeatureValuesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * Creates a new FetchFeatureValuesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesRequest} FetchFeatureValuesRequest instance + */ + FetchFeatureValuesRequest.create = function create(properties) { + return new FetchFeatureValuesRequest(properties); + }; + + /** + * Encodes the specified FetchFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest} message FetchFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchFeatureValuesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureView != null && Object.hasOwnProperty.call(message, "featureView")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureView); + if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) + $root.google.cloud.aiplatform.v1.FeatureViewDataKey.encode(message.dataKey, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.dataFormat); + return writer; + }; + + /** + * Encodes the specified FetchFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesRequest} message FetchFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchFeatureValuesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesRequest} FetchFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchFeatureValuesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureView = reader.string(); + break; + } + case 6: { + message.dataKey = $root.google.cloud.aiplatform.v1.FeatureViewDataKey.decode(reader, reader.uint32()); + break; + } + case 7: { + message.dataFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FetchFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesRequest} FetchFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FetchFeatureValuesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchFeatureValuesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureView != null && message.hasOwnProperty("featureView")) + if (!$util.isString(message.featureView)) + return "featureView: string expected"; + if (message.dataKey != null && message.hasOwnProperty("dataKey")) { + var error = $root.google.cloud.aiplatform.v1.FeatureViewDataKey.verify(message.dataKey); + if (error) + return "dataKey." + error; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FetchFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesRequest} FetchFeatureValuesRequest + */ + FetchFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FetchFeatureValuesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesRequest(); + if (object.featureView != null) + message.featureView = String(object.featureView); + if (object.dataKey != null) { + if (typeof object.dataKey !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesRequest.dataKey: object expected"); + message.dataKey = $root.google.cloud.aiplatform.v1.FeatureViewDataKey.fromObject(object.dataKey); + } + switch (object.dataFormat) { + default: + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; + break; + } + break; + case "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "KEY_VALUE": + case 1: + message.dataFormat = 1; + break; + case "PROTO_STRUCT": + case 2: + message.dataFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FetchFeatureValuesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesRequest} message FetchFeatureValuesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchFeatureValuesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.featureView = ""; + object.dataKey = null; + object.dataFormat = options.enums === String ? "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED" : 0; + } + if (message.featureView != null && message.hasOwnProperty("featureView")) + object.featureView = message.featureView; + if (message.dataKey != null && message.hasOwnProperty("dataKey")) + object.dataKey = $root.google.cloud.aiplatform.v1.FeatureViewDataKey.toObject(message.dataKey, options); + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.FeatureViewDataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.aiplatform.v1.FeatureViewDataFormat[message.dataFormat] : message.dataFormat; + return object; + }; + + /** + * Converts this FetchFeatureValuesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest * @instance + * @returns {Object.} JSON object */ - BatchReadFeatureValuesRequest.prototype.startTime = null; + FetchFeatureValuesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FetchFeatureValuesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FetchFeatureValuesRequest"; + }; + + return FetchFeatureValuesRequest; + })(); + + v1.FetchFeatureValuesResponse = (function() { + + /** + * Properties of a FetchFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IFetchFeatureValuesResponse + * @property {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList|null} [keyValues] FetchFeatureValuesResponse keyValues + * @property {google.protobuf.IStruct|null} [protoStruct] FetchFeatureValuesResponse protoStruct + */ + + /** + * Constructs a new FetchFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FetchFeatureValuesResponse. + * @implements IFetchFeatureValuesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesResponse=} [properties] Properties to set + */ + function FetchFeatureValuesResponse(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]]; + } + + /** + * FetchFeatureValuesResponse keyValues. + * @member {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList|null|undefined} keyValues + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse + * @instance + */ + FetchFeatureValuesResponse.prototype.keyValues = null; + + /** + * FetchFeatureValuesResponse protoStruct. + * @member {google.protobuf.IStruct|null|undefined} protoStruct + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse + * @instance + */ + FetchFeatureValuesResponse.prototype.protoStruct = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * BatchReadFeatureValuesRequest readOption. - * @member {"csvReadInstances"|"bigqueryReadInstances"|undefined} readOption - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * FetchFeatureValuesResponse format. + * @member {"keyValues"|"protoStruct"|undefined} format + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @instance */ - Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { - get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), + Object.defineProperty(FetchFeatureValuesResponse.prototype, "format", { + get: $util.oneOfGetter($oneOfFields = ["keyValues", "protoStruct"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new FetchFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} FetchFeatureValuesResponse instance */ - BatchReadFeatureValuesRequest.create = function create(properties) { - return new BatchReadFeatureValuesRequest(properties); + FetchFeatureValuesResponse.create = function create(properties) { + return new FetchFeatureValuesResponse(properties); }; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified FetchFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesResponse} message FetchFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesRequest.encode = function encode(message, writer) { + FetchFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featurestore); - if (message.csvReadInstances != null && Object.hasOwnProperty.call(message, "csvReadInstances")) - $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvReadInstances, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - $root.google.cloud.aiplatform.v1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigqueryReadInstances != null && Object.hasOwnProperty.call(message, "bigqueryReadInstances")) - $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigqueryReadInstances, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.entityTypeSpecs != null && message.entityTypeSpecs.length) - for (var i = 0; i < message.entityTypeSpecs.length; ++i) - $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.encode(message.entityTypeSpecs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.passThroughFields != null && message.passThroughFields.length) - for (var i = 0; i < message.passThroughFields.length; ++i) - $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.encode(message.passThroughFields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.protoStruct != null && Object.hasOwnProperty.call(message, "protoStruct")) + $root.google.protobuf.Struct.encode(message.protoStruct, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.keyValues != null && Object.hasOwnProperty.call(message, "keyValues")) + $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.encode(message.keyValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified FetchFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFetchFeatureValuesResponse} message FetchFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + FetchFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a FetchFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} FetchFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesRequest.decode = function decode(reader, length) { + FetchFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 3: { - message.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); - break; - } - case 1: { - message.featurestore = reader.string(); - break; - } - case 4: { - message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.decode(reader, reader.uint32()); - break; - } - case 8: { - if (!(message.passThroughFields && message.passThroughFields.length)) - message.passThroughFields = []; - message.passThroughFields.push($root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.entityTypeSpecs && message.entityTypeSpecs.length)) - message.entityTypeSpecs = []; - message.entityTypeSpecs.push($root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.decode(reader, reader.uint32())); + message.keyValues = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.decode(reader, reader.uint32()); break; } - case 11: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: { + message.protoStruct = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: @@ -57741,237 +57472,150 @@ }; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a FetchFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} FetchFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + FetchFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a FetchFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchReadFeatureValuesRequest.verify = function verify(message) { + FetchFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { - properties.readOption = 1; + if (message.keyValues != null && message.hasOwnProperty("keyValues")) { + properties.format = 1; { - var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvReadInstances); + var error = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.verify(message.keyValues); if (error) - return "csvReadInstances." + error; + return "keyValues." + error; } } - if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { - if (properties.readOption === 1) - return "readOption: multiple values"; - properties.readOption = 1; + if (message.protoStruct != null && message.hasOwnProperty("protoStruct")) { + if (properties.format === 1) + return "format: multiple values"; + properties.format = 1; { - var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigqueryReadInstances); - if (error) - return "bigqueryReadInstances." + error; - } - } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - if (!$util.isString(message.featurestore)) - return "featurestore: string expected"; - if (message.destination != null && message.hasOwnProperty("destination")) { - var error = $root.google.cloud.aiplatform.v1.FeatureValueDestination.verify(message.destination); - if (error) - return "destination." + error; - } - if (message.passThroughFields != null && message.hasOwnProperty("passThroughFields")) { - if (!Array.isArray(message.passThroughFields)) - return "passThroughFields: array expected"; - for (var i = 0; i < message.passThroughFields.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify(message.passThroughFields[i]); - if (error) - return "passThroughFields." + error; - } - } - if (message.entityTypeSpecs != null && message.hasOwnProperty("entityTypeSpecs")) { - if (!Array.isArray(message.entityTypeSpecs)) - return "entityTypeSpecs: array expected"; - for (var i = 0; i < message.entityTypeSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify(message.entityTypeSpecs[i]); + var error = $root.google.protobuf.Struct.verify(message.protoStruct); if (error) - return "entityTypeSpecs." + error; + return "protoStruct." + error; } } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } return null; }; /** - * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FetchFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} FetchFeatureValuesResponse */ - BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest) + FetchFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest(); - if (object.csvReadInstances != null) { - if (typeof object.csvReadInstances !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.csvReadInstances: object expected"); - message.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvReadInstances); - } - if (object.bigqueryReadInstances != null) { - if (typeof object.bigqueryReadInstances !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.bigqueryReadInstances: object expected"); - message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigqueryReadInstances); - } - if (object.featurestore != null) - message.featurestore = String(object.featurestore); - if (object.destination != null) { - if (typeof object.destination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.destination: object expected"); - message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.fromObject(object.destination); - } - if (object.passThroughFields) { - if (!Array.isArray(object.passThroughFields)) - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.passThroughFields: array expected"); - message.passThroughFields = []; - for (var i = 0; i < object.passThroughFields.length; ++i) { - if (typeof object.passThroughFields[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.passThroughFields: object expected"); - message.passThroughFields[i] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.fromObject(object.passThroughFields[i]); - } - } - if (object.entityTypeSpecs) { - if (!Array.isArray(object.entityTypeSpecs)) - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.entityTypeSpecs: array expected"); - message.entityTypeSpecs = []; - for (var i = 0; i < object.entityTypeSpecs.length; ++i) { - if (typeof object.entityTypeSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.entityTypeSpecs: object expected"); - message.entityTypeSpecs[i] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.fromObject(object.entityTypeSpecs[i]); - } + var message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse(); + if (object.keyValues != null) { + if (typeof object.keyValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesResponse.keyValues: object expected"); + message.keyValues = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.fromObject(object.keyValues); } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + if (object.protoStruct != null) { + if (typeof object.protoStruct !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesResponse.protoStruct: object expected"); + message.protoStruct = $root.google.protobuf.Struct.fromObject(object.protoStruct); } return message; }; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a FetchFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse} message FetchFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { + FetchFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entityTypeSpecs = []; - object.passThroughFields = []; - } - if (options.defaults) { - object.featurestore = ""; - object.destination = null; - object.startTime = null; - } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = message.featurestore; - if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { - object.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvReadInstances, options); + if (message.protoStruct != null && message.hasOwnProperty("protoStruct")) { + object.protoStruct = $root.google.protobuf.Struct.toObject(message.protoStruct, options); if (options.oneofs) - object.readOption = "csvReadInstances"; + object.format = "protoStruct"; } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.toObject(message.destination, options); - if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { - object.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigqueryReadInstances, options); + if (message.keyValues != null && message.hasOwnProperty("keyValues")) { + object.keyValues = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.toObject(message.keyValues, options); if (options.oneofs) - object.readOption = "bigqueryReadInstances"; - } - if (message.entityTypeSpecs && message.entityTypeSpecs.length) { - object.entityTypeSpecs = []; - for (var j = 0; j < message.entityTypeSpecs.length; ++j) - object.entityTypeSpecs[j] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.toObject(message.entityTypeSpecs[j], options); - } - if (message.passThroughFields && message.passThroughFields.length) { - object.passThroughFields = []; - for (var j = 0; j < message.passThroughFields.length; ++j) - object.passThroughFields[j] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.toObject(message.passThroughFields[j], options); + object.format = "keyValues"; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); return object; }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this FetchFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + FetchFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchReadFeatureValuesRequest + * Gets the default type url for FetchFeatureValuesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FetchFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FetchFeatureValuesResponse"; }; - BatchReadFeatureValuesRequest.PassThroughField = (function() { + FetchFeatureValuesResponse.FeatureNameValuePairList = (function() { /** - * Properties of a PassThroughField. - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest - * @interface IPassThroughField - * @property {string|null} [fieldName] PassThroughField fieldName + * Properties of a FeatureNameValuePairList. + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse + * @interface IFeatureNameValuePairList + * @property {Array.|null} [features] FeatureNameValuePairList features */ /** - * Constructs a new PassThroughField. - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest - * @classdesc Represents a PassThroughField. - * @implements IPassThroughField + * Constructs a new FeatureNameValuePairList. + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse + * @classdesc Represents a FeatureNameValuePairList. + * @implements IFeatureNameValuePairList * @constructor - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList=} [properties] Properties to set */ - function PassThroughField(properties) { + function FeatureNameValuePairList(properties) { + this.features = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57979,75 +57623,78 @@ } /** - * PassThroughField fieldName. - * @member {string} fieldName - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * FeatureNameValuePairList features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @instance */ - PassThroughField.prototype.fieldName = ""; + FeatureNameValuePairList.prototype.features = $util.emptyArray; /** - * Creates a new PassThroughField instance using the specified properties. + * Creates a new FeatureNameValuePairList instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField instance + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList} FeatureNameValuePairList instance */ - PassThroughField.create = function create(properties) { - return new PassThroughField(properties); + FeatureNameValuePairList.create = function create(properties) { + return new FeatureNameValuePairList(properties); }; /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * Encodes the specified FeatureNameValuePairList message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList} message FeatureNameValuePairList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PassThroughField.encode = function encode(message, writer) { + FeatureNameValuePairList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * Encodes the specified FeatureNameValuePairList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.IFeatureNameValuePairList} message FeatureNameValuePairList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PassThroughField.encodeDelimited = function encodeDelimited(message, writer) { + FeatureNameValuePairList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PassThroughField message from the specified reader or buffer. + * Decodes a FeatureNameValuePairList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList} FeatureNameValuePairList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PassThroughField.decode = function decode(reader, length) { + FeatureNameValuePairList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.fieldName = reader.string(); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.decode(reader, reader.uint32())); break; } default: @@ -58059,571 +57706,622 @@ }; /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. + * Decodes a FeatureNameValuePairList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList} FeatureNameValuePairList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PassThroughField.decodeDelimited = function decodeDelimited(reader) { + FeatureNameValuePairList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PassThroughField message. + * Verifies a FeatureNameValuePairList message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PassThroughField.verify = function verify(message) { + FeatureNameValuePairList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.verify(message.features[i]); + if (error) + return "features." + error; + } + } return null; }; /** - * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureNameValuePairList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList} FeatureNameValuePairList */ - PassThroughField.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField) + FeatureNameValuePairList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField(); - if (object.fieldName != null) - message.fieldName = String(object.fieldName); + var message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.fromObject(object.features[i]); + } + } return message; }; /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * Creates a plain object from a FeatureNameValuePairList message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} message PassThroughField + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList} message FeatureNameValuePairList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PassThroughField.toObject = function toObject(message, options) { + FeatureNameValuePairList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.fieldName = ""; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; + if (options.arrays || options.defaults) + object.features = []; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.toObject(message.features[j], options); + } return object; }; /** - * Converts this PassThroughField to JSON. + * Converts this FeatureNameValuePairList to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @instance * @returns {Object.} JSON object */ - PassThroughField.prototype.toJSON = function toJSON() { + FeatureNameValuePairList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PassThroughField + * Gets the default type url for FeatureNameValuePairList * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PassThroughField.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureNameValuePairList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList"; }; - return PassThroughField; - })(); + FeatureNameValuePairList.FeatureNameValuePair = (function() { - BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { + /** + * Properties of a FeatureNameValuePair. + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList + * @interface IFeatureNameValuePair + * @property {google.cloud.aiplatform.v1.IFeatureValue|null} [value] FeatureNameValuePair value + * @property {string|null} [name] FeatureNameValuePair name + */ - /** - * Properties of an EntityTypeSpec. - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest - * @interface IEntityTypeSpec - * @property {string|null} [entityTypeId] EntityTypeSpec entityTypeId - * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] EntityTypeSpec featureSelector - * @property {Array.|null} [settings] EntityTypeSpec settings - */ + /** + * Constructs a new FeatureNameValuePair. + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList + * @classdesc Represents a FeatureNameValuePair. + * @implements IFeatureNameValuePair + * @constructor + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair=} [properties] Properties to set + */ + function FeatureNameValuePair(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new EntityTypeSpec. - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest - * @classdesc Represents an EntityTypeSpec. - * @implements IEntityTypeSpec - * @constructor - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set - */ - function EntityTypeSpec(properties) { - this.settings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FeatureNameValuePair value. + * @member {google.cloud.aiplatform.v1.IFeatureValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @instance + */ + FeatureNameValuePair.prototype.value = null; - /** - * EntityTypeSpec entityTypeId. - * @member {string} entityTypeId - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.entityTypeId = ""; + /** + * FeatureNameValuePair name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @instance + */ + FeatureNameValuePair.prototype.name = ""; - /** - * EntityTypeSpec featureSelector. - * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.featureSelector = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * EntityTypeSpec settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.settings = $util.emptyArray; + /** + * FeatureNameValuePair data. + * @member {"value"|undefined} data + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @instance + */ + Object.defineProperty(FeatureNameValuePair.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec instance - */ - EntityTypeSpec.create = function create(properties) { - return new EntityTypeSpec(properties); - }; + /** + * Creates a new FeatureNameValuePair instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair} FeatureNameValuePair instance + */ + FeatureNameValuePair.create = function create(properties) { + return new FeatureNameValuePair(properties); + }; - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityTypeSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityTypeId); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.settings != null && message.settings.length) - for (var i = 0; i < message.settings.length; ++i) - $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified FeatureNameValuePair message. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair} message FeatureNameValuePair message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureNameValuePair.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.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityTypeSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FeatureNameValuePair message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.IFeatureNameValuePair} message FeatureNameValuePair message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureNameValuePair.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityTypeSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.entityTypeId = reader.string(); - break; - } - case 2: { - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.settings && message.settings.length)) - message.settings = []; - message.settings.push($root.google.cloud.aiplatform.v1.DestinationFeatureSetting.decode(reader, reader.uint32())); + /** + * Decodes a FeatureNameValuePair message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair} FeatureNameValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureNameValuePair.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.value = $root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32()); + break; + } + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityTypeSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FeatureNameValuePair message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair} FeatureNameValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureNameValuePair.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an EntityTypeSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EntityTypeSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - if (!$util.isString(message.entityTypeId)) - return "entityTypeId: string expected"; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; - } - if (message.settings != null && message.hasOwnProperty("settings")) { - if (!Array.isArray(message.settings)) - return "settings: array expected"; - for (var i = 0; i < message.settings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.verify(message.settings[i]); - if (error) - return "settings." + error; + /** + * Verifies a FeatureNameValuePair message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureNameValuePair.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.data = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.value); + if (error) + return "value." + error; + } } - } - return null; - }; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - */ - EntityTypeSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec(); - if (object.entityTypeId != null) - message.entityTypeId = String(object.entityTypeId); - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); - } - if (object.settings) { - if (!Array.isArray(object.settings)) - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: array expected"); - message.settings = []; - for (var i = 0; i < object.settings.length; ++i) { - if (typeof object.settings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: object expected"); - message.settings[i] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.fromObject(object.settings[i]); + /** + * Creates a FeatureNameValuePair message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair} FeatureNameValuePair + */ + FeatureNameValuePair.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair) + return object; + var message = new $root.google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.value); } - } - return message; - }; + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} message EntityTypeSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EntityTypeSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.settings = []; - if (options.defaults) { - object.entityTypeId = ""; - object.featureSelector = null; - } - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - object.entityTypeId = message.entityTypeId; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); - if (message.settings && message.settings.length) { - object.settings = []; - for (var j = 0; j < message.settings.length; ++j) - object.settings[j] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.toObject(message.settings[j], options); - } - return object; - }; + /** + * Creates a plain object from a FeatureNameValuePair message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair} message FeatureNameValuePair + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureNameValuePair.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.value, options); + if (options.oneofs) + object.data = "value"; + } + return object; + }; - /** - * Converts this EntityTypeSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - * @returns {Object.} JSON object - */ - EntityTypeSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this FeatureNameValuePair to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @instance + * @returns {Object.} JSON object + */ + FeatureNameValuePair.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for EntityTypeSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EntityTypeSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec"; - }; + /** + * Gets the default type url for FeatureNameValuePair + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureNameValuePair.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FetchFeatureValuesResponse.FeatureNameValuePairList.FeatureNameValuePair"; + }; - return EntityTypeSpec; + return FeatureNameValuePair; + })(); + + return FeatureNameValuePairList; })(); - return BatchReadFeatureValuesRequest; + return FetchFeatureValuesResponse; })(); - v1.ExportFeatureValuesRequest = (function() { + v1.FeaturestoreOnlineServingService = (function() { /** - * Properties of an ExportFeatureValuesRequest. + * Constructs a new FeaturestoreOnlineServingService service. * @memberof google.cloud.aiplatform.v1 - * @interface IExportFeatureValuesRequest - * @property {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null} [snapshotExport] ExportFeatureValuesRequest snapshotExport - * @property {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null} [fullExport] ExportFeatureValuesRequest fullExport - * @property {string|null} [entityType] ExportFeatureValuesRequest entityType - * @property {google.cloud.aiplatform.v1.IFeatureValueDestination|null} [destination] ExportFeatureValuesRequest destination - * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] ExportFeatureValuesRequest featureSelector - * @property {Array.|null} [settings] ExportFeatureValuesRequest settings + * @classdesc Represents a FeaturestoreOnlineServingService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeaturestoreOnlineServingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreOnlineServingService; /** - * Constructs a new ExportFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportFeatureValuesRequest. - * @implements IExportFeatureValuesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest=} [properties] Properties to set + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeaturestoreOnlineServingService} RPC service. Useful where requests and/or responses are streamed. */ - function ExportFeatureValuesRequest(properties) { - this.settings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FeaturestoreOnlineServingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ExportFeatureValuesRequest snapshotExport. - * @member {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null|undefined} snapshotExport - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|readFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * @typedef ReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + */ + + /** + * Calls ReadFeatureValues. + * @function readFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @returns {undefined} + * @variation 1 */ - ExportFeatureValuesRequest.prototype.snapshotExport = null; + Object.defineProperty(FeaturestoreOnlineServingService.prototype.readFeatureValues = function readFeatureValues(request, callback) { + return this.rpcCall(readFeatureValues, $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse, request, callback); + }, "name", { value: "ReadFeatureValues" }); /** - * ExportFeatureValuesRequest fullExport. - * @member {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null|undefined} fullExport - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Calls ReadFeatureValues. + * @function readFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFeatureValuesRequest.prototype.fullExport = null; /** - * ExportFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * @typedef StreamingReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + */ + + /** + * Calls StreamingReadFeatureValues. + * @function streamingReadFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @returns {undefined} + * @variation 1 */ - ExportFeatureValuesRequest.prototype.entityType = ""; + Object.defineProperty(FeaturestoreOnlineServingService.prototype.streamingReadFeatureValues = function streamingReadFeatureValues(request, callback) { + return this.rpcCall(streamingReadFeatureValues, $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse, request, callback); + }, "name", { value: "StreamingReadFeatureValues" }); /** - * ExportFeatureValuesRequest destination. - * @member {google.cloud.aiplatform.v1.IFeatureValueDestination|null|undefined} destination - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Calls StreamingReadFeatureValues. + * @function streamingReadFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFeatureValuesRequest.prototype.destination = null; /** - * ExportFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreOnlineServingService|writeFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService + * @typedef WriteFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} [response] WriteFeatureValuesResponse + */ + + /** + * Calls WriteFeatureValues. + * @function writeFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} request WriteFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback} callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse + * @returns {undefined} + * @variation 1 */ - ExportFeatureValuesRequest.prototype.featureSelector = null; + Object.defineProperty(FeaturestoreOnlineServingService.prototype.writeFeatureValues = function writeFeatureValues(request, callback) { + return this.rpcCall(writeFeatureValues, $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse, request, callback); + }, "name", { value: "WriteFeatureValues" }); /** - * ExportFeatureValuesRequest settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Calls WriteFeatureValues. + * @function writeFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreOnlineServingService * @instance + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} request WriteFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return FeaturestoreOnlineServingService; + })(); + + v1.WriteFeatureValuesRequest = (function() { /** - * ExportFeatureValuesRequest mode. - * @member {"snapshotExport"|"fullExport"|undefined} mode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * Properties of a WriteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IWriteFeatureValuesRequest + * @property {string|null} [entityType] WriteFeatureValuesRequest entityType + * @property {Array.|null} [payloads] WriteFeatureValuesRequest payloads + */ + + /** + * Constructs a new WriteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a WriteFeatureValuesRequest. + * @implements IWriteFeatureValuesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest=} [properties] Properties to set + */ + function WriteFeatureValuesRequest(properties) { + this.payloads = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WriteFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @instance */ - Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { - get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), - set: $util.oneOfSetter($oneOfFields) - }); + WriteFeatureValuesRequest.prototype.entityType = ""; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * WriteFeatureValuesRequest payloads. + * @member {Array.} payloads + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest + * @instance + */ + WriteFeatureValuesRequest.prototype.payloads = $util.emptyArray; + + /** + * Creates a new WriteFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest instance */ - ExportFeatureValuesRequest.create = function create(properties) { - return new ExportFeatureValuesRequest(properties); + WriteFeatureValuesRequest.create = function create(properties) { + return new WriteFeatureValuesRequest(properties); }; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. + * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} message WriteFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesRequest.encode = function encode(message, writer) { + WriteFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.snapshotExport != null && Object.hasOwnProperty.call(message, "snapshotExport")) - $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.encode(message.snapshotExport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - $root.google.cloud.aiplatform.v1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.settings != null && message.settings.length) - for (var i = 0; i < message.settings.length; ++i) - $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.fullExport != null && Object.hasOwnProperty.call(message, "fullExport")) - $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.encode(message.fullExport, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.payloads != null && message.payloads.length) + for (var i = 0; i < message.payloads.length; ++i) + $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.encode(message.payloads[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. + * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesRequest} message WriteFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + WriteFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesRequest.decode = function decode(reader, length) { + WriteFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.decode(reader, reader.uint32()); - break; - } - case 7: { - message.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.decode(reader, reader.uint32()); - break; - } case 1: { message.entityType = reader.string(); break; } - case 4: { - message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.decode(reader, reader.uint32()); - break; - } - case 5: { - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.settings && message.settings.length)) - message.settings = []; - message.settings.push($root.google.cloud.aiplatform.v1.DestinationFeatureSetting.decode(reader, reader.uint32())); + case 2: { + if (!(message.payloads && message.payloads.length)) + message.payloads = []; + message.payloads.push($root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.decode(reader, reader.uint32())); break; } default: @@ -58635,779 +58333,262 @@ }; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + WriteFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesRequest message. + * Verifies a WriteFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesRequest.verify = function verify(message) { + WriteFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { - properties.mode = 1; - { - var error = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify(message.snapshotExport); - if (error) - return "snapshotExport." + error; - } - } - if (message.fullExport != null && message.hasOwnProperty("fullExport")) { - if (properties.mode === 1) - return "mode: multiple values"; - properties.mode = 1; - { - var error = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify(message.fullExport); - if (error) - return "fullExport." + error; - } - } if (message.entityType != null && message.hasOwnProperty("entityType")) if (!$util.isString(message.entityType)) return "entityType: string expected"; - if (message.destination != null && message.hasOwnProperty("destination")) { - var error = $root.google.cloud.aiplatform.v1.FeatureValueDestination.verify(message.destination); - if (error) - return "destination." + error; - } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; - } - if (message.settings != null && message.hasOwnProperty("settings")) { - if (!Array.isArray(message.settings)) - return "settings: array expected"; - for (var i = 0; i < message.settings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.verify(message.settings[i]); + if (message.payloads != null && message.hasOwnProperty("payloads")) { + if (!Array.isArray(message.payloads)) + return "payloads: array expected"; + for (var i = 0; i < message.payloads.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify(message.payloads[i]); if (error) - return "settings." + error; + return "payloads." + error; } } return null; }; /** - * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} WriteFeatureValuesRequest */ - ExportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest) + WriteFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest(); - if (object.snapshotExport != null) { - if (typeof object.snapshotExport !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.snapshotExport: object expected"); - message.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.fromObject(object.snapshotExport); - } - if (object.fullExport != null) { - if (typeof object.fullExport !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.fullExport: object expected"); - message.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.fromObject(object.fullExport); - } + var message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(); if (object.entityType != null) message.entityType = String(object.entityType); - if (object.destination != null) { - if (typeof object.destination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.destination: object expected"); - message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.fromObject(object.destination); - } - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); - } - if (object.settings) { - if (!Array.isArray(object.settings)) - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.settings: array expected"); - message.settings = []; - for (var i = 0; i < object.settings.length; ++i) { - if (typeof object.settings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.settings: object expected"); - message.settings[i] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.fromObject(object.settings[i]); + if (object.payloads) { + if (!Array.isArray(object.payloads)) + throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesRequest.payloads: array expected"); + message.payloads = []; + for (var i = 0; i < object.payloads.length; ++i) { + if (typeof object.payloads[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesRequest.payloads: object expected"); + message.payloads[i] = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.fromObject(object.payloads[i]); } } return message; }; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.WriteFeatureValuesRequest} message WriteFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesRequest.toObject = function toObject(message, options) { + WriteFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.settings = []; - if (options.defaults) { + object.payloads = []; + if (options.defaults) object.entityType = ""; - object.destination = null; - object.featureSelector = null; - } if (message.entityType != null && message.hasOwnProperty("entityType")) object.entityType = message.entityType; - if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { - object.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.toObject(message.snapshotExport, options); - if (options.oneofs) - object.mode = "snapshotExport"; - } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.toObject(message.destination, options); - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); - if (message.settings && message.settings.length) { - object.settings = []; - for (var j = 0; j < message.settings.length; ++j) - object.settings[j] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.toObject(message.settings[j], options); - } - if (message.fullExport != null && message.hasOwnProperty("fullExport")) { - object.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.toObject(message.fullExport, options); - if (options.oneofs) - object.mode = "fullExport"; + if (message.payloads && message.payloads.length) { + object.payloads = []; + for (var j = 0; j < message.payloads.length; ++j) + object.payloads[j] = $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.toObject(message.payloads[j], options); } return object; }; /** - * Converts this ExportFeatureValuesRequest to JSON. + * Converts this WriteFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { + WriteFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFeatureValuesRequest + * Gets the default type url for WriteFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WriteFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesRequest"; }; - ExportFeatureValuesRequest.SnapshotExport = (function() { + return WriteFeatureValuesRequest; + })(); - /** - * Properties of a SnapshotExport. - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest - * @interface ISnapshotExport - * @property {google.protobuf.ITimestamp|null} [snapshotTime] SnapshotExport snapshotTime - * @property {google.protobuf.ITimestamp|null} [startTime] SnapshotExport startTime - */ + v1.WriteFeatureValuesPayload = (function() { - /** - * Constructs a new SnapshotExport. - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest - * @classdesc Represents a SnapshotExport. - * @implements ISnapshotExport - * @constructor - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set - */ - function SnapshotExport(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a WriteFeatureValuesPayload. + * @memberof google.cloud.aiplatform.v1 + * @interface IWriteFeatureValuesPayload + * @property {string|null} [entityId] WriteFeatureValuesPayload entityId + * @property {Object.|null} [featureValues] WriteFeatureValuesPayload featureValues + */ - /** - * SnapshotExport snapshotTime. - * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @instance - */ - SnapshotExport.prototype.snapshotTime = null; + /** + * Constructs a new WriteFeatureValuesPayload. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a WriteFeatureValuesPayload. + * @implements IWriteFeatureValuesPayload + * @constructor + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload=} [properties] Properties to set + */ + function WriteFeatureValuesPayload(properties) { + this.featureValues = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SnapshotExport startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @instance - */ - SnapshotExport.prototype.startTime = null; + /** + * WriteFeatureValuesPayload entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @instance + */ + WriteFeatureValuesPayload.prototype.entityId = ""; - /** - * Creates a new SnapshotExport instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport instance - */ - SnapshotExport.create = function create(properties) { - return new SnapshotExport(properties); - }; + /** + * WriteFeatureValuesPayload featureValues. + * @member {Object.} featureValues + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @instance + */ + WriteFeatureValuesPayload.prototype.featureValues = $util.emptyObject; - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotExport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime")) - $root.google.protobuf.Timestamp.encode(message.snapshotTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new WriteFeatureValuesPayload instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @static + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload instance + */ + WriteFeatureValuesPayload.create = function create(properties) { + return new WriteFeatureValuesPayload(properties); + }; - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotExport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotExport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.snapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotExport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnapshotExport message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SnapshotExport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.snapshotTime); - if (error) - return "snapshotTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - return null; - }; - - /** - * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - */ - SnapshotExport.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport(); - if (object.snapshotTime != null) { - if (typeof object.snapshotTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.snapshotTime: object expected"); - message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - return message; - }; - - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} message SnapshotExport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SnapshotExport.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.snapshotTime = null; - object.startTime = null; - } - if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) - object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - return object; - }; - - /** - * Converts this SnapshotExport to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @instance - * @returns {Object.} JSON object - */ - SnapshotExport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SnapshotExport - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SnapshotExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport"; - }; - - return SnapshotExport; - })(); - - ExportFeatureValuesRequest.FullExport = (function() { - - /** - * Properties of a FullExport. - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest - * @interface IFullExport - * @property {google.protobuf.ITimestamp|null} [startTime] FullExport startTime - * @property {google.protobuf.ITimestamp|null} [endTime] FullExport endTime - */ - - /** - * Constructs a new FullExport. - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest - * @classdesc Represents a FullExport. - * @implements IFullExport - * @constructor - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set - */ - function FullExport(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]]; - } - - /** - * FullExport startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @instance - */ - FullExport.prototype.startTime = null; - - /** - * FullExport endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @instance - */ - FullExport.prototype.endTime = null; - - /** - * Creates a new FullExport instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport instance - */ - FullExport.create = function create(properties) { - return new FullExport(properties); - }; - - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FullExport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FullExport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FullExport message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FullExport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 1: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FullExport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FullExport message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FullExport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - return null; - }; - - /** - * Creates a FullExport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport - */ - FullExport.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - return message; - }; - - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} message FullExport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FullExport.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endTime = null; - object.startTime = null; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - return object; - }; - - /** - * Converts this FullExport to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @instance - * @returns {Object.} JSON object - */ - FullExport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FullExport - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FullExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport"; - }; - - return FullExport; - })(); - - return ExportFeatureValuesRequest; - })(); - - v1.DestinationFeatureSetting = (function() { - - /** - * Properties of a DestinationFeatureSetting. - * @memberof google.cloud.aiplatform.v1 - * @interface IDestinationFeatureSetting - * @property {string|null} [featureId] DestinationFeatureSetting featureId - * @property {string|null} [destinationField] DestinationFeatureSetting destinationField - */ - - /** - * Constructs a new DestinationFeatureSetting. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DestinationFeatureSetting. - * @implements IDestinationFeatureSetting - * @constructor - * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting=} [properties] Properties to set - */ - function DestinationFeatureSetting(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]]; - } - - /** - * DestinationFeatureSetting featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting - * @instance - */ - DestinationFeatureSetting.prototype.featureId = ""; - - /** - * DestinationFeatureSetting destinationField. - * @member {string} destinationField - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting - * @instance - */ - DestinationFeatureSetting.prototype.destinationField = ""; - - /** - * Creates a new DestinationFeatureSetting instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting - * @static - * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting instance - */ - DestinationFeatureSetting.create = function create(properties) { - return new DestinationFeatureSetting(properties); - }; - - /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting - * @static - * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DestinationFeatureSetting.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.destinationField != null && Object.hasOwnProperty.call(message, "destinationField")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationField); - return writer; - }; + /** + * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload + * @static + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload} message WriteFeatureValuesPayload message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteFeatureValuesPayload.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); + if (message.featureValues != null && Object.hasOwnProperty.call(message, "featureValues")) + for (var keys = Object.keys(message.featureValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.featureValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. + * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesPayload.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static - * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesPayload} message WriteFeatureValuesPayload message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { + WriteFeatureValuesPayload.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DestinationFeatureSetting.decode = function decode(reader, length) { + WriteFeatureValuesPayload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DestinationFeatureSetting(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.featureId = reader.string(); + message.entityId = reader.string(); break; } case 2: { - message.destinationField = reader.string(); + if (message.featureValues === $util.emptyObject) + message.featureValues = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.featureValues[key] = value; break; } default: @@ -59419,133 +58600,149 @@ }; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DestinationFeatureSetting.decodeDelimited = function decodeDelimited(reader) { + WriteFeatureValuesPayload.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DestinationFeatureSetting message. + * Verifies a WriteFeatureValuesPayload message. * @function verify - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DestinationFeatureSetting.verify = function verify(message) { + WriteFeatureValuesPayload.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.destinationField != null && message.hasOwnProperty("destinationField")) - if (!$util.isString(message.destinationField)) - return "destinationField: string expected"; + if (message.entityId != null && message.hasOwnProperty("entityId")) + if (!$util.isString(message.entityId)) + return "entityId: string expected"; + if (message.featureValues != null && message.hasOwnProperty("featureValues")) { + if (!$util.isObject(message.featureValues)) + return "featureValues: object expected"; + var key = Object.keys(message.featureValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.featureValues[key[i]]); + if (error) + return "featureValues." + error; + } + } return null; }; /** - * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} WriteFeatureValuesPayload */ - DestinationFeatureSetting.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DestinationFeatureSetting) + WriteFeatureValuesPayload.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload) return object; - var message = new $root.google.cloud.aiplatform.v1.DestinationFeatureSetting(); - if (object.featureId != null) - message.featureId = String(object.featureId); - if (object.destinationField != null) - message.destinationField = String(object.destinationField); + var message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(); + if (object.entityId != null) + message.entityId = String(object.entityId); + if (object.featureValues) { + if (typeof object.featureValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesPayload.featureValues: object expected"); + message.featureValues = {}; + for (var keys = Object.keys(object.featureValues), i = 0; i < keys.length; ++i) { + if (typeof object.featureValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.WriteFeatureValuesPayload.featureValues: object expected"); + message.featureValues[keys[i]] = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.featureValues[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static - * @param {google.cloud.aiplatform.v1.DestinationFeatureSetting} message DestinationFeatureSetting + * @param {google.cloud.aiplatform.v1.WriteFeatureValuesPayload} message WriteFeatureValuesPayload * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DestinationFeatureSetting.toObject = function toObject(message, options) { + WriteFeatureValuesPayload.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.featureId = ""; - object.destinationField = ""; + if (options.objects || options.defaults) + object.featureValues = {}; + if (options.defaults) + object.entityId = ""; + if (message.entityId != null && message.hasOwnProperty("entityId")) + object.entityId = message.entityId; + var keys2; + if (message.featureValues && (keys2 = Object.keys(message.featureValues)).length) { + object.featureValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.featureValues[keys2[j]] = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.featureValues[keys2[j]], options); } - if (message.featureId != null && message.hasOwnProperty("featureId")) - object.featureId = message.featureId; - if (message.destinationField != null && message.hasOwnProperty("destinationField")) - object.destinationField = message.destinationField; return object; }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this WriteFeatureValuesPayload to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @instance * @returns {Object.} JSON object */ - DestinationFeatureSetting.prototype.toJSON = function toJSON() { + WriteFeatureValuesPayload.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DestinationFeatureSetting + * Gets the default type url for WriteFeatureValuesPayload * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesPayload * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DestinationFeatureSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WriteFeatureValuesPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DestinationFeatureSetting"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesPayload"; }; - return DestinationFeatureSetting; + return WriteFeatureValuesPayload; })(); - v1.FeatureValueDestination = (function() { + v1.WriteFeatureValuesResponse = (function() { /** - * Properties of a FeatureValueDestination. + * Properties of a WriteFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IFeatureValueDestination - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] FeatureValueDestination bigqueryDestination - * @property {google.cloud.aiplatform.v1.ITFRecordDestination|null} [tfrecordDestination] FeatureValueDestination tfrecordDestination - * @property {google.cloud.aiplatform.v1.ICsvDestination|null} [csvDestination] FeatureValueDestination csvDestination + * @interface IWriteFeatureValuesResponse */ /** - * Constructs a new FeatureValueDestination. + * Constructs a new WriteFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FeatureValueDestination. - * @implements IFeatureValueDestination + * @classdesc Represents a WriteFeatureValuesResponse. + * @implements IWriteFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IFeatureValueDestination=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse=} [properties] Properties to set */ - function FeatureValueDestination(properties) { + function WriteFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59553,119 +58750,63 @@ } /** - * FeatureValueDestination bigqueryDestination. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination - * @instance - */ - FeatureValueDestination.prototype.bigqueryDestination = null; - - /** - * FeatureValueDestination tfrecordDestination. - * @member {google.cloud.aiplatform.v1.ITFRecordDestination|null|undefined} tfrecordDestination - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination - * @instance - */ - FeatureValueDestination.prototype.tfrecordDestination = null; - - /** - * FeatureValueDestination csvDestination. - * @member {google.cloud.aiplatform.v1.ICsvDestination|null|undefined} csvDestination - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination - * @instance - */ - FeatureValueDestination.prototype.csvDestination = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * FeatureValueDestination destination. - * @member {"bigqueryDestination"|"tfrecordDestination"|"csvDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination - * @instance - */ - Object.defineProperty(FeatureValueDestination.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new WriteFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueDestination=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination instance + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse instance */ - FeatureValueDestination.create = function create(properties) { - return new FeatureValueDestination(properties); + WriteFeatureValuesResponse.create = function create(properties) { + return new WriteFeatureValuesResponse(properties); }; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse} message WriteFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueDestination.encode = function encode(message, writer) { + WriteFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tfrecordDestination != null && Object.hasOwnProperty.call(message, "tfrecordDestination")) - $root.google.cloud.aiplatform.v1.TFRecordDestination.encode(message.tfrecordDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.csvDestination != null && Object.hasOwnProperty.call(message, "csvDestination")) - $root.google.cloud.aiplatform.v1.CsvDestination.encode(message.csvDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {google.cloud.aiplatform.v1.IWriteFeatureValuesResponse} message WriteFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { + WriteFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueDestination.decode = function decode(reader, length) { + WriteFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValueDestination(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 2: { - message.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.decode(reader, reader.uint32()); - break; - } - case 3: { - message.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -59675,171 +58816,111 @@ }; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueDestination.decodeDelimited = function decodeDelimited(reader) { + WriteFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValueDestination message. + * Verifies a WriteFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValueDestination.verify = function verify(message) { + WriteFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); - if (error) - return "bigqueryDestination." + error; - } - } - if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.TFRecordDestination.verify(message.tfrecordDestination); - if (error) - return "tfrecordDestination." + error; - } - } - if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.CsvDestination.verify(message.csvDestination); - if (error) - return "csvDestination." + error; - } - } return null; }; /** - * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} WriteFeatureValuesResponse */ - FeatureValueDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValueDestination) + WriteFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.FeatureValueDestination(); - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); - } - if (object.tfrecordDestination != null) { - if (typeof object.tfrecordDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.tfrecordDestination: object expected"); - message.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.fromObject(object.tfrecordDestination); - } - if (object.csvDestination != null) { - if (typeof object.csvDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.csvDestination: object expected"); - message.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.fromObject(object.csvDestination); - } - return message; + return new $root.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(); }; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.FeatureValueDestination} message FeatureValueDestination + * @param {google.cloud.aiplatform.v1.WriteFeatureValuesResponse} message WriteFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; - } - if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { - object.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.toObject(message.tfrecordDestination, options); - if (options.oneofs) - object.destination = "tfrecordDestination"; - } - if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { - object.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.toObject(message.csvDestination, options); - if (options.oneofs) - object.destination = "csvDestination"; - } - return object; + WriteFeatureValuesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this WriteFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - FeatureValueDestination.prototype.toJSON = function toJSON() { + WriteFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FeatureValueDestination + * Gets the default type url for WriteFeatureValuesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1.WriteFeatureValuesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FeatureValueDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WriteFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValueDestination"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.WriteFeatureValuesResponse"; }; - return FeatureValueDestination; + return WriteFeatureValuesResponse; })(); - v1.ExportFeatureValuesResponse = (function() { + v1.ReadFeatureValuesRequest = (function() { /** - * Properties of an ExportFeatureValuesResponse. + * Properties of a ReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportFeatureValuesResponse + * @interface IReadFeatureValuesRequest + * @property {string|null} [entityType] ReadFeatureValuesRequest entityType + * @property {string|null} [entityId] ReadFeatureValuesRequest entityId + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] ReadFeatureValuesRequest featureSelector */ /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new ReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportFeatureValuesResponse. - * @implements IExportFeatureValuesResponse + * @classdesc Represents a ReadFeatureValuesRequest. + * @implements IReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest=} [properties] Properties to set */ - function ExportFeatureValuesResponse(properties) { + function ReadFeatureValuesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59847,63 +58928,105 @@ } /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * ReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @instance + */ + ReadFeatureValuesRequest.prototype.entityType = ""; + + /** + * ReadFeatureValuesRequest entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @instance + */ + ReadFeatureValuesRequest.prototype.entityId = ""; + + /** + * ReadFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest + * @instance + */ + ReadFeatureValuesRequest.prototype.featureSelector = null; + + /** + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance */ - ExportFeatureValuesResponse.create = function create(properties) { - return new ExportFeatureValuesResponse(properties); + ReadFeatureValuesRequest.create = function create(properties) { + return new ReadFeatureValuesRequest(properties); }; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesResponse.encode = function encode(message, writer) { + ReadFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesResponse.decode = function decode(reader, length) { + ReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.entityType = reader.string(); + break; + } + case 2: { + message.entityId = reader.string(); + break; + } + case 3: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -59913,286 +59036,145 @@ }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + ReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a ReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesResponse.verify = function verify(message) { + ReadFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityId != null && message.hasOwnProperty("entityId")) + if (!$util.isString(message.entityId)) + return "entityId: string expected"; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } return null; }; /** - * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} ReadFeatureValuesRequest */ - ExportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse) + ReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest) return object; - return new $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse(); + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesRequest(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityId != null) + message.entityId = String(object.entityId); + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); + } + return message; }; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesResponse.toObject = function toObject() { - return {}; + ReadFeatureValuesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.entityType = ""; + object.entityId = ""; + object.featureSelector = null; + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.entityId != null && message.hasOwnProperty("entityId")) + object.entityId = message.entityId; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + return object; }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { + ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFeatureValuesResponse + * Gets the default type url for ReadFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesRequest"; }; - return ExportFeatureValuesResponse; + return ReadFeatureValuesRequest; })(); - v1.BatchReadFeatureValuesResponse = (function() { + v1.ReadFeatureValuesResponse = (function() { /** - * Properties of a BatchReadFeatureValuesResponse. + * Properties of a ReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchReadFeatureValuesResponse + * @interface IReadFeatureValuesResponse + * @property {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null} [header] ReadFeatureValuesResponse header + * @property {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null} [entityView] ReadFeatureValuesResponse entityView */ /** - * Constructs a new BatchReadFeatureValuesResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchReadFeatureValuesResponse. - * @implements IBatchReadFeatureValuesResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse=} [properties] Properties to set - */ - function BatchReadFeatureValuesResponse(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 BatchReadFeatureValuesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance - */ - BatchReadFeatureValuesResponse.create = function create(properties) { - return new BatchReadFeatureValuesResponse(properties); - }; - - /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchReadFeatureValuesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchReadFeatureValuesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BatchReadFeatureValuesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchReadFeatureValuesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse - */ - BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse) - return object; - return new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse(); - }; - - /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchReadFeatureValuesResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this BatchReadFeatureValuesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @instance - * @returns {Object.} JSON object - */ - BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for BatchReadFeatureValuesResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - BatchReadFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse"; - }; - - return BatchReadFeatureValuesResponse; - })(); - - v1.CreateEntityTypeRequest = (function() { - - /** - * Properties of a CreateEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateEntityTypeRequest - * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.aiplatform.v1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType - * @property {string|null} [entityTypeId] CreateEntityTypeRequest entityTypeId - */ - - /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @classdesc Represents a ReadFeatureValuesResponse. + * @implements IReadFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function ReadFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60200,103 +59182,89 @@ } /** - * CreateEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest - * @instance - */ - CreateEntityTypeRequest.prototype.parent = ""; - - /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.aiplatform.v1.IEntityType|null|undefined} entityType - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * ReadFeatureValuesResponse header. + * @member {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader|null|undefined} header + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + ReadFeatureValuesResponse.prototype.header = null; /** - * CreateEntityTypeRequest entityTypeId. - * @member {string} entityTypeId - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * ReadFeatureValuesResponse entityView. + * @member {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView|null|undefined} entityView + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @instance */ - CreateEntityTypeRequest.prototype.entityTypeId = ""; + ReadFeatureValuesResponse.prototype.entityView = null; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + ReadFeatureValuesResponse.create = function create(properties) { + return new ReadFeatureValuesResponse(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + ReadFeatureValuesResponse.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityTypeId); + if (message.header != null && Object.hasOwnProperty.call(message, "header")) + $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityView != null && Object.hasOwnProperty.call(message, "entityView")) + $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.encode(message.entityView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + ReadFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.decode(reader, reader.uint32()); break; } case 2: { - message.entityType = $root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32()); - break; - } - case 3: { - message.entityTypeId = reader.string(); + message.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); break; } default: @@ -60308,673 +59276,1105 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a ReadFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeRequest.verify = function verify(message) { + ReadFeatureValuesResponse.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.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityType); + if (message.header != null && message.hasOwnProperty("header")) { + var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify(message.header); if (error) - return "entityType." + error; + return "header." + error; + } + if (message.entityView != null && message.hasOwnProperty("entityView")) { + var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify(message.entityView); + if (error) + return "entityView." + error; } - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - if (!$util.isString(message.entityTypeId)) - return "entityTypeId: string expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} ReadFeatureValuesResponse */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest) + ReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityType); + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse(); + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.header: object expected"); + message.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.fromObject(object.header); + } + if (object.entityView != null) { + if (typeof object.entityView !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.entityView: object expected"); + message.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.fromObject(object.entityView); } - if (object.entityTypeId != null) - message.entityTypeId = String(object.entityTypeId); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + ReadFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.entityType = null; - object.entityTypeId = ""; + object.header = null; + object.entityView = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityType, options); - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - object.entityTypeId = message.entityTypeId; + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.toObject(message.header, options); + if (message.entityView != null && message.hasOwnProperty("entityView")) + object.entityView = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.toObject(message.entityView, options); return object; }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ReadFeatureValuesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ReadFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse"; }; - return CreateEntityTypeRequest; - })(); - - v1.GetEntityTypeRequest = (function() { + ReadFeatureValuesResponse.FeatureDescriptor = (function() { - /** - * Properties of a GetEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - */ + /** + * Properties of a FeatureDescriptor. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @interface IFeatureDescriptor + * @property {string|null} [id] FeatureDescriptor id + */ - /** - * Constructs a new GetEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest=} [properties] Properties to set - */ - function GetEntityTypeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new FeatureDescriptor. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @classdesc Represents a FeatureDescriptor. + * @implements IFeatureDescriptor + * @constructor + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + */ + function FeatureDescriptor(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]]; + } - /** - * GetEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.name = ""; + /** + * FeatureDescriptor id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @instance + */ + FeatureDescriptor.prototype.id = ""; - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest instance - */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); - }; + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor instance + */ + FeatureDescriptor.create = function create(properties) { + return new FeatureDescriptor(properties); + }; - /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEntityTypeRequest.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 FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + return writer; + }; - /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEntityTypeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetEntityTypeRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetEntityTypeRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetEntityTypeRequest.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 GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest - */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetEntityTypeRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {google.cloud.aiplatform.v1.GetEntityTypeRequest} message GetEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetEntityTypeRequest.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; - }; + return message; + }; - /** - * Converts this GetEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for GetEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetEntityTypeRequest"; - }; + /** + * Verifies a FeatureDescriptor message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + return null; + }; - return GetEntityTypeRequest; - })(); + /** + * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + */ + FeatureDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor(); + if (object.id != null) + message.id = String(object.id); + return message; + }; - v1.ListEntityTypesRequest = (function() { + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor} message FeatureDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.id = ""; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + return object; + }; - /** - * Properties of a ListEntityTypesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IListEntityTypesRequest - * @property {string|null} [parent] ListEntityTypesRequest parent - * @property {string|null} [filter] ListEntityTypesRequest filter - * @property {number|null} [pageSize] ListEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListEntityTypesRequest pageToken - * @property {string|null} [orderBy] ListEntityTypesRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListEntityTypesRequest readMask - */ + /** + * Converts this FeatureDescriptor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @instance + * @returns {Object.} JSON object + */ + FeatureDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new ListEntityTypesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest=} [properties] Properties to set - */ - function ListEntityTypesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for FeatureDescriptor + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor"; + }; - /** - * ListEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.parent = ""; + return FeatureDescriptor; + })(); - /** - * ListEntityTypesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.filter = ""; + ReadFeatureValuesResponse.Header = (function() { - /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.pageSize = 0; + /** + * Properties of a Header. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @interface IHeader + * @property {string|null} [entityType] Header entityType + * @property {Array.|null} [featureDescriptors] Header featureDescriptors + */ - /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.pageToken = ""; + /** + * Constructs a new Header. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set + */ + function Header(properties) { + this.featureDescriptors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ListEntityTypesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.orderBy = ""; + /** + * Header entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @instance + */ + Header.prototype.entityType = ""; - /** - * ListEntityTypesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.readMask = null; + /** + * Header featureDescriptors. + * @member {Array.} featureDescriptors + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @instance + */ + Header.prototype.featureDescriptors = $util.emptyArray; - /** - * Creates a new ListEntityTypesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest instance - */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); - }; + /** + * Creates a new Header instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header instance + */ + Header.create = function create(properties) { + return new Header(properties); + }; - /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListEntityTypesRequest.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); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.featureDescriptors != null && message.featureDescriptors.length) + for (var i = 0; i < message.featureDescriptors.length; ++i) + $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.encode(message.featureDescriptors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListEntityTypesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListEntityTypesRequest(); - 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; - } - case 6: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityType = reader.string(); + break; + } + case 2: { + if (!(message.featureDescriptors && message.featureDescriptors.length)) + message.featureDescriptors = []; + message.featureDescriptors.push($root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListEntityTypesRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListEntityTypesRequest.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"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; + /** + * Verifies a Header message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.featureDescriptors != null && message.hasOwnProperty("featureDescriptors")) { + if (!Array.isArray(message.featureDescriptors)) + return "featureDescriptors: array expected"; + for (var i = 0; i < message.featureDescriptors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.verify(message.featureDescriptors[i]); + if (error) + return "featureDescriptors." + error; + } + } + return null; + }; - /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest - */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListEntityTypesRequest) + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.featureDescriptors) { + if (!Array.isArray(object.featureDescriptors)) + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.featureDescriptors: array expected"); + message.featureDescriptors = []; + for (var i = 0; i < object.featureDescriptors.length; ++i) { + if (typeof object.featureDescriptors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header.featureDescriptors: object expected"); + message.featureDescriptors[i] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.fromObject(object.featureDescriptors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureDescriptors = []; + if (options.defaults) + object.entityType = ""; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.featureDescriptors && message.featureDescriptors.length) { + object.featureDescriptors = []; + for (var j = 0; j < message.featureDescriptors.length; ++j) + object.featureDescriptors[j] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor.toObject(message.featureDescriptors[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1.ListEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; + }; - /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {google.cloud.aiplatform.v1.ListEntityTypesRequest} message ListEntityTypesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListEntityTypesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListEntityTypesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @instance - * @returns {Object.} JSON object - */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Header + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Header.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.Header"; + }; - /** - * Gets the default type url for ListEntityTypesRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return Header; + })(); + + ReadFeatureValuesResponse.EntityView = (function() { + + /** + * Properties of an EntityView. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @interface IEntityView + * @property {string|null} [entityId] EntityView entityId + * @property {Array.|null} [data] EntityView data + */ + + /** + * Constructs a new EntityView. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse + * @classdesc Represents an EntityView. + * @implements IEntityView + * @constructor + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set + */ + function EntityView(properties) { + this.data = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListEntityTypesRequest"; - }; - return ListEntityTypesRequest; + /** + * EntityView entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @instance + */ + EntityView.prototype.entityId = ""; + + /** + * EntityView data. + * @member {Array.} data + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @instance + */ + EntityView.prototype.data = $util.emptyArray; + + /** + * Creates a new EntityView instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView instance + */ + EntityView.create = function create(properties) { + return new EntityView(properties); + }; + + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityView.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); + if (message.data != null && message.data.length) + for (var i = 0; i < message.data.length; ++i) + $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityView.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityView message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityView.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityId = reader.string(); + break; + } + case 2: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityView.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityView message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityView.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityId != null && message.hasOwnProperty("entityId")) + if (!$util.isString(message.entityId)) + return "entityId: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!Array.isArray(message.data)) + return "data: array expected"; + for (var i = 0; i < message.data.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify(message.data[i]); + if (error) + return "data." + error; + } + } + return null; + }; + + /** + * Creates an EntityView message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} EntityView + */ + EntityView.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView(); + if (object.entityId != null) + message.entityId = String(object.entityId); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.data: array expected"); + message.data = []; + for (var i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.data: object expected"); + message.data[i] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.fromObject(object.data[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView} message EntityView + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityView.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) + object.entityId = ""; + if (message.entityId != null && message.hasOwnProperty("entityId")) + object.entityId = message.entityId; + if (message.data && message.data.length) { + object.data = []; + for (var j = 0; j < message.data.length; ++j) + object.data[j] = $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.toObject(message.data[j], options); + } + return object; + }; + + /** + * Converts this EntityView to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @instance + * @returns {Object.} JSON object + */ + EntityView.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EntityView + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EntityView.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView"; + }; + + EntityView.Data = (function() { + + /** + * Properties of a Data. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @interface IData + * @property {google.cloud.aiplatform.v1.IFeatureValue|null} [value] Data value + * @property {google.cloud.aiplatform.v1.IFeatureValueList|null} [values] Data values + */ + + /** + * Constructs a new Data. + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView + * @classdesc Represents a Data. + * @implements IData + * @constructor + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set + */ + function Data(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]]; + } + + /** + * Data value. + * @member {google.cloud.aiplatform.v1.IFeatureValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Data.prototype.value = null; + + /** + * Data values. + * @member {google.cloud.aiplatform.v1.IFeatureValueList|null|undefined} values + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Data.prototype.values = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Data data. + * @member {"value"|"values"|undefined} data + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Object.defineProperty(Data.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["value", "values"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Data instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data instance + */ + Data.create = function create(properties) { + return new Data(properties); + }; + + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Data.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.values != null && Object.hasOwnProperty.call(message, "values")) + $root.google.cloud.aiplatform.v1.FeatureValueList.encode(message.values, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Data.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Data message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Data.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = $root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32()); + break; + } + case 2: { + message.values = $root.google.cloud.aiplatform.v1.FeatureValueList.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Data.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Data message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Data.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.data = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.values != null && message.hasOwnProperty("values")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.google.cloud.aiplatform.v1.FeatureValueList.verify(message.values); + if (error) + return "values." + error; + } + } + return null; + }; + + /** + * Creates a Data message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} Data + */ + Data.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.value); + } + if (object.values != null) { + if (typeof object.values !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data.values: object expected"); + message.values = $root.google.cloud.aiplatform.v1.FeatureValueList.fromObject(object.values); + } + return message; + }; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data} message Data + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Data.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.value, options); + if (options.oneofs) + object.data = "value"; + } + if (message.values != null && message.hasOwnProperty("values")) { + object.values = $root.google.cloud.aiplatform.v1.FeatureValueList.toObject(message.values, options); + if (options.oneofs) + object.data = "values"; + } + return object; + }; + + /** + * Converts this Data to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @instance + * @returns {Object.} JSON object + */ + Data.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Data + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Data.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data"; + }; + + return Data; + })(); + + return EntityView; + })(); + + return ReadFeatureValuesResponse; })(); - v1.ListEntityTypesResponse = (function() { + v1.StreamingReadFeatureValuesRequest = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of a StreamingReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + * @interface IStreamingReadFeatureValuesRequest + * @property {string|null} [entityType] StreamingReadFeatureValuesRequest entityType + * @property {Array.|null} [entityIds] StreamingReadFeatureValuesRequest entityIds + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] StreamingReadFeatureValuesRequest featureSelector */ /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new StreamingReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents a StreamingReadFeatureValuesRequest. + * @implements IStreamingReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + function StreamingReadFeatureValuesRequest(properties) { + this.entityIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60982,92 +60382,106 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * StreamingReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + StreamingReadFeatureValuesRequest.prototype.entityType = ""; /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * StreamingReadFeatureValuesRequest entityIds. + * @member {Array.} entityIds + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + StreamingReadFeatureValuesRequest.prototype.entityIds = $util.emptyArray; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * StreamingReadFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest + * @instance + */ + StreamingReadFeatureValuesRequest.prototype.featureSelector = null; + + /** + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + StreamingReadFeatureValuesRequest.create = function create(properties) { + return new StreamingReadFeatureValuesRequest(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encode = function encode(message, writer) { + StreamingReadFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityTypes != null && message.entityTypes.length) - for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.entityIds != null && message.entityIds.length) + for (var i = 0; i < message.entityIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIds[i]); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decode = function decode(reader, length) { + StreamingReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.entityTypes && message.entityTypes.length)) - message.entityTypes = []; - message.entityTypes.push($root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32())); + message.entityType = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + if (!(message.entityIds && message.entityIds.length)) + message.entityIds = []; + message.entityIds.push(reader.string()); + break; + } + case 3: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); break; } default: @@ -61079,149 +60493,166 @@ }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a StreamingReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesResponse.verify = function verify(message) { + StreamingReadFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { - if (!Array.isArray(message.entityTypes)) - return "entityTypes: array expected"; - for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityTypes[i]); - if (error) - return "entityTypes." + error; - } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityIds != null && message.hasOwnProperty("entityIds")) { + if (!Array.isArray(message.entityIds)) + return "entityIds: array expected"; + for (var i = 0; i < message.entityIds.length; ++i) + if (!$util.isString(message.entityIds[i])) + return "entityIds: string[] expected"; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListEntityTypesResponse) + StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListEntityTypesResponse(); - if (object.entityTypes) { - if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesResponse.entityTypes: array expected"); - message.entityTypes = []; - for (var i = 0; i < object.entityTypes.length; ++i) { - if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityTypes[i]); - } + var message = new $root.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityIds) { + if (!Array.isArray(object.entityIds)) + throw TypeError(".google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.entityIds: array expected"); + message.entityIds = []; + for (var i = 0; i < object.entityIds.length; ++i) + message.entityIds[i] = String(object.entityIds[i]); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesResponse.toObject = function toObject(message, options) { + StreamingReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.entityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.entityTypes && message.entityTypes.length) { - object.entityTypes = []; - for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityTypes[j], options); + object.entityIds = []; + if (options.defaults) { + object.entityType = ""; + object.featureSelector = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.entityIds && message.entityIds.length) { + object.entityIds = []; + for (var j = 0; j < message.entityIds.length; ++j) + object.entityIds[j] = message.entityIds[j]; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); return object; }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { + StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEntityTypesResponse + * Gets the default type url for StreamingReadFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListEntityTypesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest"; }; - return ListEntityTypesResponse; + return StreamingReadFeatureValuesRequest; })(); - v1.UpdateEntityTypeRequest = (function() { + v1.FeatureValue = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of a FeatureValue. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateEntityTypeRequest - * @property {google.cloud.aiplatform.v1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + * @interface IFeatureValue + * @property {boolean|null} [boolValue] FeatureValue boolValue + * @property {number|null} [doubleValue] FeatureValue doubleValue + * @property {number|Long|null} [int64Value] FeatureValue int64Value + * @property {string|null} [stringValue] FeatureValue stringValue + * @property {google.cloud.aiplatform.v1.IBoolArray|null} [boolArrayValue] FeatureValue boolArrayValue + * @property {google.cloud.aiplatform.v1.IDoubleArray|null} [doubleArrayValue] FeatureValue doubleArrayValue + * @property {google.cloud.aiplatform.v1.IInt64Array|null} [int64ArrayValue] FeatureValue int64ArrayValue + * @property {google.cloud.aiplatform.v1.IStringArray|null} [stringArrayValue] FeatureValue stringArrayValue + * @property {Uint8Array|null} [bytesValue] FeatureValue bytesValue + * @property {google.cloud.aiplatform.v1.FeatureValue.IMetadata|null} [metadata] FeatureValue metadata */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new FeatureValue. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents a FeatureValue. + * @implements IFeatureValue * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureValue=} [properties] Properties to set */ - function UpdateEntityTypeRequest(properties) { + function FeatureValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61229,89 +60660,215 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.aiplatform.v1.IEntityType|null|undefined} entityType - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * FeatureValue boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.cloud.aiplatform.v1.FeatureValue * @instance */ - UpdateEntityTypeRequest.prototype.entityType = null; + FeatureValue.prototype.boolValue = null; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest - * @instance + * FeatureValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + FeatureValue.prototype.doubleValue = null; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * FeatureValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.int64Value = null; + + /** + * FeatureValue stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.stringValue = null; + + /** + * FeatureValue boolArrayValue. + * @member {google.cloud.aiplatform.v1.IBoolArray|null|undefined} boolArrayValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.boolArrayValue = null; + + /** + * FeatureValue doubleArrayValue. + * @member {google.cloud.aiplatform.v1.IDoubleArray|null|undefined} doubleArrayValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.doubleArrayValue = null; + + /** + * FeatureValue int64ArrayValue. + * @member {google.cloud.aiplatform.v1.IInt64Array|null|undefined} int64ArrayValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.int64ArrayValue = null; + + /** + * FeatureValue stringArrayValue. + * @member {google.cloud.aiplatform.v1.IStringArray|null|undefined} stringArrayValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.stringArrayValue = null; + + /** + * FeatureValue bytesValue. + * @member {Uint8Array|null|undefined} bytesValue + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.bytesValue = null; + + /** + * FeatureValue metadata. + * @member {google.cloud.aiplatform.v1.FeatureValue.IMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + FeatureValue.prototype.metadata = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FeatureValue value. + * @member {"boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"|undefined} value + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @instance + */ + Object.defineProperty(FeatureValue.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["boolValue", "doubleValue", "int64Value", "stringValue", "boolArrayValue", "doubleArrayValue", "int64ArrayValue", "stringArrayValue", "bytesValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FeatureValue instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1.IFeatureValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + FeatureValue.create = function create(properties) { + return new FeatureValue(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureValue} message FeatureValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + FeatureValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.boolValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.int64Value); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stringValue); + if (message.boolArrayValue != null && Object.hasOwnProperty.call(message, "boolArrayValue")) + $root.google.cloud.aiplatform.v1.BoolArray.encode(message.boolArrayValue, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.doubleArrayValue != null && Object.hasOwnProperty.call(message, "doubleArrayValue")) + $root.google.cloud.aiplatform.v1.DoubleArray.encode(message.doubleArrayValue, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.int64ArrayValue != null && Object.hasOwnProperty.call(message, "int64ArrayValue")) + $root.google.cloud.aiplatform.v1.Int64Array.encode(message.int64ArrayValue, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.stringArrayValue != null && Object.hasOwnProperty.call(message, "stringArrayValue")) + $root.google.cloud.aiplatform.v1.StringArray.encode(message.stringArrayValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.bytesValue); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.encode(message.metadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureValue} message FeatureValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + FeatureValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.entityType = $root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32()); + message.boolValue = reader.bool(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.doubleValue = reader.double(); + break; + } + case 5: { + message.int64Value = reader.int64(); + break; + } + case 6: { + message.stringValue = reader.string(); + break; + } + case 7: { + message.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.decode(reader, reader.uint32()); + break; + } + case 8: { + message.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.decode(reader, reader.uint32()); + break; + } + case 11: { + message.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.decode(reader, reader.uint32()); + break; + } + case 12: { + message.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.decode(reader, reader.uint32()); + break; + } + case 13: { + message.bytesValue = reader.bytes(); + break; + } + case 14: { + message.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.decode(reader, reader.uint32()); break; } default: @@ -61323,142 +60880,498 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a FeatureValue message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEntityTypeRequest.verify = function verify(message) { + FeatureValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; + var properties = {}; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + properties.value = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) + return "int64Value: integer|Long expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1.BoolArray.verify(message.boolArrayValue); + if (error) + return "boolArrayValue." + error; + } + } + if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1.DoubleArray.verify(message.doubleArrayValue); + if (error) + return "doubleArrayValue." + error; + } + } + if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1.Int64Array.verify(message.int64ArrayValue); + if (error) + return "int64ArrayValue." + error; + } + } + if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1.StringArray.verify(message.stringArrayValue); + if (error) + return "stringArrayValue." + error; + } + } + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) + return "bytesValue: buffer expected"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.verify(message.metadata); if (error) - return "updateMask." + error; + return "metadata." + error; } return null; }; /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValue} FeatureValue */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest) + FeatureValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValue) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest(); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityType); + var message = new $root.google.cloud.aiplatform.v1.FeatureValue(); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.int64Value != null) + if ($util.Long) + (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; + else if (typeof object.int64Value === "string") + message.int64Value = parseInt(object.int64Value, 10); + else if (typeof object.int64Value === "number") + message.int64Value = object.int64Value; + else if (typeof object.int64Value === "object") + message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolArrayValue != null) { + if (typeof object.boolArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.boolArrayValue: object expected"); + message.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.fromObject(object.boolArrayValue); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.doubleArrayValue != null) { + if (typeof object.doubleArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.doubleArrayValue: object expected"); + message.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.fromObject(object.doubleArrayValue); + } + if (object.int64ArrayValue != null) { + if (typeof object.int64ArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.int64ArrayValue: object expected"); + message.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.fromObject(object.int64ArrayValue); + } + if (object.stringArrayValue != null) { + if (typeof object.stringArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.stringArrayValue: object expected"); + message.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.fromObject(object.stringArrayValue); + } + if (object.bytesValue != null) + if (typeof object.bytesValue === "string") + $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); + else if (object.bytesValue.length >= 0) + message.bytesValue = object.bytesValue; + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.fromObject(object.metadata); } return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.aiplatform.v1.FeatureValue} message FeatureValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + FeatureValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.entityType = null; - object.updateMask = null; + if (options.defaults) + object.metadata = null; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.value = "boolValue"; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityType, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (typeof message.int64Value === "number") + object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; + else + object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; + if (options.oneofs) + object.value = "int64Value"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; + } + if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { + object.boolArrayValue = $root.google.cloud.aiplatform.v1.BoolArray.toObject(message.boolArrayValue, options); + if (options.oneofs) + object.value = "boolArrayValue"; + } + if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { + object.doubleArrayValue = $root.google.cloud.aiplatform.v1.DoubleArray.toObject(message.doubleArrayValue, options); + if (options.oneofs) + object.value = "doubleArrayValue"; + } + if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { + object.int64ArrayValue = $root.google.cloud.aiplatform.v1.Int64Array.toObject(message.int64ArrayValue, options); + if (options.oneofs) + object.value = "int64ArrayValue"; + } + if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { + object.stringArrayValue = $root.google.cloud.aiplatform.v1.StringArray.toObject(message.stringArrayValue, options); + if (options.oneofs) + object.value = "stringArrayValue"; + } + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; + if (options.oneofs) + object.value = "bytesValue"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1.FeatureValue.Metadata.toObject(message.metadata, options); return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this FeatureValue to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + FeatureValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for FeatureValue * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValue * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValue"; }; - return UpdateEntityTypeRequest; + FeatureValue.Metadata = (function() { + + /** + * Properties of a Metadata. + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @interface IMetadata + * @property {google.protobuf.ITimestamp|null} [generateTime] Metadata generateTime + */ + + /** + * Constructs a new Metadata. + * @memberof google.cloud.aiplatform.v1.FeatureValue + * @classdesc Represents a Metadata. + * @implements IMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata=} [properties] Properties to set + */ + function Metadata(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]]; + } + + /** + * Metadata generateTime. + * @member {google.protobuf.ITimestamp|null|undefined} generateTime + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @instance + */ + Metadata.prototype.generateTime = null; + + /** + * Creates a new Metadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata instance + */ + Metadata.create = function create(properties) { + return new Metadata(properties); + }; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata} message Metadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.generateTime != null && Object.hasOwnProperty.call(message, "generateTime")) + $root.google.protobuf.Timestamp.encode(message.generateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValue.Metadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1.FeatureValue.IMetadata} message Metadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValue.Metadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.generateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.generateTime != null && message.hasOwnProperty("generateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.generateTime); + if (error) + return "generateTime." + error; + } + return null; + }; + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureValue.Metadata} Metadata + */ + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValue.Metadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureValue.Metadata(); + if (object.generateTime != null) { + if (typeof object.generateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValue.Metadata.generateTime: object expected"); + message.generateTime = $root.google.protobuf.Timestamp.fromObject(object.generateTime); + } + return message; + }; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1.FeatureValue.Metadata} message Metadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.generateTime = null; + if (message.generateTime != null && message.hasOwnProperty("generateTime")) + object.generateTime = $root.google.protobuf.Timestamp.toObject(message.generateTime, options); + return object; + }; + + /** + * Converts this Metadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @instance + * @returns {Object.} JSON object + */ + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Metadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureValue.Metadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValue.Metadata"; + }; + + return Metadata; + })(); + + return FeatureValue; })(); - v1.DeleteEntityTypeRequest = (function() { + v1.FeatureValueList = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a FeatureValueList. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IFeatureValueList + * @property {Array.|null} [values] FeatureValueList values */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new FeatureValueList. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a FeatureValueList. + * @implements IFeatureValueList * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureValueList=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function FeatureValueList(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61466,89 +61379,78 @@ } /** - * DeleteEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; - - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * FeatureValueList values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + FeatureValueList.prototype.values = $util.emptyArray; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1.IFeatureValueList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + FeatureValueList.create = function create(properties) { + return new FeatureValueList(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureValueList} message FeatureValueList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encode = function encode(message, writer) { + FeatureValueList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureValueList} message FeatureValueList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decode = function decode(reader, length) { + FeatureValueList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValueList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.cloud.aiplatform.v1.FeatureValue.decode(reader, reader.uint32())); break; } default: @@ -61560,133 +61462,140 @@ }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureValueList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a FeatureValueList message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEntityTypeRequest.verify = function verify(message) { + FeatureValueList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureValue.verify(message.values[i]); + if (error) + return "values." + error; + } + } return null; }; /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1.FeatureValueList} FeatureValueList */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest) + FeatureValueList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValueList) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1.FeatureValueList(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.FeatureValueList.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValueList.values: object expected"); + message.values[i] = $root.google.cloud.aiplatform.v1.FeatureValue.fromObject(object.values[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.aiplatform.v1.FeatureValueList} message FeatureValueList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { + FeatureValueList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.cloud.aiplatform.v1.FeatureValue.toObject(message.values[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this FeatureValueList to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @instance * @returns {Object.} JSON object */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + FeatureValueList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteEntityTypeRequest + * Gets the default type url for FeatureValueList * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1.FeatureValueList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureValueList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValueList"; }; - return DeleteEntityTypeRequest; + return FeatureValueList; })(); - v1.CreateFeatureRequest = (function() { + v1.IdMatcher = (function() { /** - * Properties of a CreateFeatureRequest. + * Properties of an IdMatcher. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateFeatureRequest - * @property {string|null} [parent] CreateFeatureRequest parent - * @property {google.cloud.aiplatform.v1.IFeature|null} [feature] CreateFeatureRequest feature - * @property {string|null} [featureId] CreateFeatureRequest featureId + * @interface IIdMatcher + * @property {Array.|null} [ids] IdMatcher ids */ /** - * Constructs a new CreateFeatureRequest. + * Constructs a new IdMatcher. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateFeatureRequest. - * @implements ICreateFeatureRequest + * @classdesc Represents an IdMatcher. + * @implements IIdMatcher * @constructor - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IIdMatcher=} [properties] Properties to set */ - function CreateFeatureRequest(properties) { + function IdMatcher(properties) { + this.ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61694,103 +61603,78 @@ } /** - * CreateFeatureRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest - * @instance - */ - CreateFeatureRequest.prototype.parent = ""; - - /** - * CreateFeatureRequest feature. - * @member {google.cloud.aiplatform.v1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest - * @instance - */ - CreateFeatureRequest.prototype.feature = null; - - /** - * CreateFeatureRequest featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * IdMatcher ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1.IdMatcher * @instance */ - CreateFeatureRequest.prototype.featureId = ""; + IdMatcher.prototype.ids = $util.emptyArray; /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest instance + * @param {google.cloud.aiplatform.v1.IIdMatcher=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher instance */ - CreateFeatureRequest.create = function create(properties) { - return new CreateFeatureRequest(properties); + IdMatcher.create = function create(properties) { + return new IdMatcher(properties); }; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IIdMatcher} message IdMatcher message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureRequest.encode = function encode(message, writer) { + IdMatcher.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.feature != null && Object.hasOwnProperty.call(message, "feature")) - $root.google.cloud.aiplatform.v1.Feature.encode(message.feature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureId); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); return writer; }; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IdMatcher.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IIdMatcher} message IdMatcher message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureRequest.decode = function decode(reader, length) { + IdMatcher.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IdMatcher(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.feature = $root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32()); - break; - } - case 3: { - message.featureId = reader.string(); + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); break; } default: @@ -61802,146 +61686,134 @@ }; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + IdMatcher.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeatureRequest message. + * Verifies an IdMatcher message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeatureRequest.verify = function verify(message) { + IdMatcher.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.feature != null && message.hasOwnProperty("feature")) { - var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.feature); - if (error) - return "feature." + error; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; } - if (message.featureId != null && message.hasOwnProperty("featureId")) - if (!$util.isString(message.featureId)) - return "featureId: string expected"; return null; }; /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1.IdMatcher} IdMatcher */ - CreateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureRequest) + IdMatcher.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IdMatcher) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateFeatureRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.feature != null) { - if (typeof object.feature !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureRequest.feature: object expected"); - message.feature = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.feature); + var message = new $root.google.cloud.aiplatform.v1.IdMatcher(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1.IdMatcher.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + message.ids[i] = String(object.ids[i]); } - if (object.featureId != null) - message.featureId = String(object.featureId); return message; }; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1.CreateFeatureRequest} message CreateFeatureRequest + * @param {google.cloud.aiplatform.v1.IdMatcher} message IdMatcher * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeatureRequest.toObject = function toObject(message, options) { + IdMatcher.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.feature = null; - object.featureId = ""; + if (options.arrays || options.defaults) + object.ids = []; + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + object.ids[j] = message.ids[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.feature != null && message.hasOwnProperty("feature")) - object.feature = $root.google.cloud.aiplatform.v1.Feature.toObject(message.feature, options); - if (message.featureId != null && message.hasOwnProperty("featureId")) - object.featureId = message.featureId; return object; }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this IdMatcher to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @instance * @returns {Object.} JSON object */ - CreateFeatureRequest.prototype.toJSON = function toJSON() { + IdMatcher.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFeatureRequest + * Gets the default type url for IdMatcher * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1.IdMatcher * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IdMatcher.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IdMatcher"; }; - return CreateFeatureRequest; + return IdMatcher; })(); - v1.BatchCreateFeaturesRequest = (function() { + v1.FeatureSelector = (function() { /** - * Properties of a BatchCreateFeaturesRequest. + * Properties of a FeatureSelector. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchCreateFeaturesRequest - * @property {string|null} [parent] BatchCreateFeaturesRequest parent - * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests + * @interface IFeatureSelector + * @property {google.cloud.aiplatform.v1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher */ /** - * Constructs a new BatchCreateFeaturesRequest. + * Constructs a new FeatureSelector. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchCreateFeaturesRequest. - * @implements IBatchCreateFeaturesRequest + * @classdesc Represents a FeatureSelector. + * @implements IFeatureSelector * @constructor - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFeatureSelector=} [properties] Properties to set */ - function BatchCreateFeaturesRequest(properties) { - this.requests = []; + function FeatureSelector(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61949,92 +61821,75 @@ } /** - * BatchCreateFeaturesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest - * @instance - */ - BatchCreateFeaturesRequest.prototype.parent = ""; - - /** - * BatchCreateFeaturesRequest requests. - * @member {Array.} requests - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * FeatureSelector idMatcher. + * @member {google.cloud.aiplatform.v1.IIdMatcher|null|undefined} idMatcher + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @instance */ - BatchCreateFeaturesRequest.prototype.requests = $util.emptyArray; + FeatureSelector.prototype.idMatcher = null; /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance + * @param {google.cloud.aiplatform.v1.IFeatureSelector=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector instance */ - BatchCreateFeaturesRequest.create = function create(properties) { - return new BatchCreateFeaturesRequest(properties); + FeatureSelector.create = function create(properties) { + return new FeatureSelector(properties); }; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureSelector} message FeatureSelector message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesRequest.encode = function encode(message, writer) { + FeatureSelector.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.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.cloud.aiplatform.v1.CreateFeatureRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.idMatcher != null && Object.hasOwnProperty.call(message, "idMatcher")) + $root.google.cloud.aiplatform.v1.IdMatcher.encode(message.idMatcher, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureSelector.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFeatureSelector} message FeatureSelector message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesRequest.decode = function decode(reader, length) { + FeatureSelector.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureSelector(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.cloud.aiplatform.v1.CreateFeatureRequest.decode(reader, reader.uint32())); + message.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.decode(reader, reader.uint32()); break; } default: @@ -62046,149 +61901,128 @@ }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureSelector.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesRequest message. + * Verifies a FeatureSelector message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateFeaturesRequest.verify = function verify(message) { + FeatureSelector.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.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.verify(message.requests[i]); - if (error) - return "requests." + error; - } + if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) { + var error = $root.google.cloud.aiplatform.v1.IdMatcher.verify(message.idMatcher); + if (error) + return "idMatcher." + error; } return null; }; /** - * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1.FeatureSelector} FeatureSelector */ - BatchCreateFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest) + FeatureSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureSelector) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.requests: object expected"); - message.requests[i] = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.fromObject(object.requests[i]); - } + var message = new $root.google.cloud.aiplatform.v1.FeatureSelector(); + if (object.idMatcher != null) { + if (typeof object.idMatcher !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureSelector.idMatcher: object expected"); + message.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.fromObject(object.idMatcher); } return message; }; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest + * @param {google.cloud.aiplatform.v1.FeatureSelector} message FeatureSelector * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesRequest.toObject = function toObject(message, options) { + FeatureSelector.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.requests = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.toObject(message.requests[j], options); - } + object.idMatcher = null; + if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) + object.idMatcher = $root.google.cloud.aiplatform.v1.IdMatcher.toObject(message.idMatcher, options); return object; }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this FeatureSelector to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { + FeatureSelector.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchCreateFeaturesRequest + * Gets the default type url for FeatureSelector * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1.FeatureSelector * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchCreateFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureSelector"; }; - return BatchCreateFeaturesRequest; + return FeatureSelector; })(); - v1.BatchCreateFeaturesResponse = (function() { + v1.BoolArray = (function() { /** - * Properties of a BatchCreateFeaturesResponse. + * Properties of a BoolArray. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchCreateFeaturesResponse - * @property {Array.|null} [features] BatchCreateFeaturesResponse features + * @interface IBoolArray + * @property {Array.|null} [values] BoolArray values */ /** - * Constructs a new BatchCreateFeaturesResponse. + * Constructs a new BoolArray. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchCreateFeaturesResponse. - * @implements IBatchCreateFeaturesResponse + * @classdesc Represents a BoolArray. + * @implements IBoolArray * @constructor - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBoolArray=} [properties] Properties to set */ - function BatchCreateFeaturesResponse(properties) { - this.features = []; + function BoolArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62196,78 +62030,86 @@ } /** - * BatchCreateFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * BoolArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.BoolArray * @instance */ - BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; + BoolArray.prototype.values = $util.emptyArray; /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance + * @param {google.cloud.aiplatform.v1.IBoolArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray instance */ - BatchCreateFeaturesResponse.create = function create(properties) { - return new BatchCreateFeaturesResponse(properties); + BoolArray.create = function create(properties) { + return new BoolArray(properties); }; /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBoolArray} message BoolArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesResponse.encode = function encode(message, writer) { + BoolArray.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.bool(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BoolArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBoolArray} message BoolArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + BoolArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesResponse.decode = function decode(reader, length) { + BoolArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BoolArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.bool()); + } else + message.values.push(reader.bool()); break; } default: @@ -62279,139 +62121,135 @@ }; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + BoolArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesResponse message. + * Verifies a BoolArray message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateFeaturesResponse.verify = function verify(message) { + BoolArray.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); - if (error) - return "features." + error; - } + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "boolean") + return "values: boolean[] expected"; } return null; }; /** - * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1.BoolArray} BoolArray */ - BatchCreateFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse) + BoolArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BoolArray) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); - } + var message = new $root.google.cloud.aiplatform.v1.BoolArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.BoolArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Boolean(object.values[i]); } return message; }; /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static - * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse + * @param {google.cloud.aiplatform.v1.BoolArray} message BoolArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesResponse.toObject = function toObject(message, options) { + BoolArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.features = []; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } return object; }; /** - * Converts this BatchCreateFeaturesResponse to JSON. + * Converts this BoolArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { + BoolArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchCreateFeaturesResponse + * Gets the default type url for BoolArray * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1.BoolArray * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchCreateFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BoolArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BoolArray"; }; - return BatchCreateFeaturesResponse; + return BoolArray; })(); - v1.GetFeatureRequest = (function() { + v1.DoubleArray = (function() { /** - * Properties of a GetFeatureRequest. + * Properties of a DoubleArray. * @memberof google.cloud.aiplatform.v1 - * @interface IGetFeatureRequest - * @property {string|null} [name] GetFeatureRequest name + * @interface IDoubleArray + * @property {Array.|null} [values] DoubleArray values */ /** - * Constructs a new GetFeatureRequest. + * Constructs a new DoubleArray. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetFeatureRequest. - * @implements IGetFeatureRequest + * @classdesc Represents a DoubleArray. + * @implements IDoubleArray * @constructor - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDoubleArray=} [properties] Properties to set */ - function GetFeatureRequest(properties) { + function DoubleArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62419,75 +62257,86 @@ } /** - * GetFeatureRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * DoubleArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.DoubleArray * @instance */ - GetFeatureRequest.prototype.name = ""; + DoubleArray.prototype.values = $util.emptyArray; /** - * Creates a new GetFeatureRequest instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest instance + * @param {google.cloud.aiplatform.v1.IDoubleArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray instance */ - GetFeatureRequest.create = function create(properties) { - return new GetFeatureRequest(properties); + DoubleArray.create = function create(properties) { + return new DoubleArray(properties); }; /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDoubleArray} message DoubleArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeatureRequest.encode = function encode(message, writer) { + DoubleArray.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.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DoubleArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDoubleArray} message DoubleArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeatureRequest.decode = function decode(reader, length) { + DoubleArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DoubleArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); break; } default: @@ -62499,128 +62348,135 @@ }; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + DoubleArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFeatureRequest message. + * Verifies a DoubleArray message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFeatureRequest.verify = function verify(message) { + DoubleArray.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.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; + } return null; }; /** - * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1.DoubleArray} DoubleArray */ - GetFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureRequest) + DoubleArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DoubleArray) return object; - var message = new $root.google.cloud.aiplatform.v1.GetFeatureRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.DoubleArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.DoubleArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); + } return message; }; /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1.GetFeatureRequest} message GetFeatureRequest + * @param {google.cloud.aiplatform.v1.DoubleArray} message DoubleArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFeatureRequest.toObject = function toObject(message, options) { + DoubleArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + } return object; }; /** - * Converts this GetFeatureRequest to JSON. + * Converts this DoubleArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @instance * @returns {Object.} JSON object */ - GetFeatureRequest.prototype.toJSON = function toJSON() { + DoubleArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFeatureRequest + * Gets the default type url for DoubleArray * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1.DoubleArray * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DoubleArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DoubleArray"; }; - return GetFeatureRequest; + return DoubleArray; })(); - v1.ListFeaturesRequest = (function() { + v1.Int64Array = (function() { /** - * Properties of a ListFeaturesRequest. + * Properties of an Int64Array. * @memberof google.cloud.aiplatform.v1 - * @interface IListFeaturesRequest - * @property {string|null} [parent] ListFeaturesRequest parent - * @property {string|null} [filter] ListFeaturesRequest filter - * @property {number|null} [pageSize] ListFeaturesRequest pageSize - * @property {string|null} [pageToken] ListFeaturesRequest pageToken - * @property {string|null} [orderBy] ListFeaturesRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturesRequest readMask - * @property {number|null} [latestStatsCount] ListFeaturesRequest latestStatsCount + * @interface IInt64Array + * @property {Array.|null} [values] Int64Array values */ /** - * Constructs a new ListFeaturesRequest. + * Constructs a new Int64Array. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListFeaturesRequest. - * @implements IListFeaturesRequest + * @classdesc Represents an Int64Array. + * @implements IInt64Array * @constructor - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IInt64Array=} [properties] Properties to set */ - function ListFeaturesRequest(properties) { + function Int64Array(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62628,159 +62484,86 @@ } /** - * ListFeaturesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.parent = ""; - - /** - * ListFeaturesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.filter = ""; - - /** - * ListFeaturesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.pageSize = 0; - - /** - * ListFeaturesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.pageToken = ""; - - /** - * ListFeaturesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.orderBy = ""; - - /** - * ListFeaturesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.readMask = null; - - /** - * ListFeaturesRequest latestStatsCount. - * @member {number} latestStatsCount - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * Int64Array values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.Int64Array * @instance */ - ListFeaturesRequest.prototype.latestStatsCount = 0; + Int64Array.prototype.values = $util.emptyArray; /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest instance + * @param {google.cloud.aiplatform.v1.IInt64Array=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array instance */ - ListFeaturesRequest.create = function create(properties) { - return new ListFeaturesRequest(properties); + Int64Array.create = function create(properties) { + return new Int64Array(properties); }; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInt64Array} message Int64Array message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesRequest.encode = function encode(message, writer) { + Int64Array.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); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestStatsCount); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.int64(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Int64Array.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInt64Array} message Int64Array message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Int64Array.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesRequest.decode = function decode(reader, length) { + Int64Array.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Int64Array(); 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; - } - case 6: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 7: { - message.latestStatsCount = reader.int32(); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.int64()); + } else + message.values.push(reader.int64()); break; } default: @@ -62792,178 +62575,145 @@ }; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + Int64Array.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturesRequest message. + * Verifies an Int64Array message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturesRequest.verify = function verify(message) { + Int64Array.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"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; } - if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) - if (!$util.isInteger(message.latestStatsCount)) - return "latestStatsCount: integer expected"; return null; }; /** - * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Int64Array} Int64Array */ - ListFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturesRequest) + Int64Array.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Int64Array) return object; - var message = new $root.google.cloud.aiplatform.v1.ListFeaturesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.Int64Array(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.Int64Array.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); } - if (object.latestStatsCount != null) - message.latestStatsCount = object.latestStatsCount | 0; return message; }; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static - * @param {google.cloud.aiplatform.v1.ListFeaturesRequest} message ListFeaturesRequest + * @param {google.cloud.aiplatform.v1.Int64Array} message Int64Array * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturesRequest.toObject = function toObject(message, options) { + Int64Array.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.readMask = null; - object.latestStatsCount = 0; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) - object.latestStatsCount = message.latestStatsCount; return object; }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this Int64Array to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @instance * @returns {Object.} JSON object */ - ListFeaturesRequest.prototype.toJSON = function toJSON() { + Int64Array.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFeaturesRequest + * Gets the default type url for Int64Array * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Int64Array * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Int64Array.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Int64Array"; }; - return ListFeaturesRequest; + return Int64Array; })(); - v1.ListFeaturesResponse = (function() { + v1.StringArray = (function() { /** - * Properties of a ListFeaturesResponse. + * Properties of a StringArray. * @memberof google.cloud.aiplatform.v1 - * @interface IListFeaturesResponse - * @property {Array.|null} [features] ListFeaturesResponse features - * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken + * @interface IStringArray + * @property {Array.|null} [values] StringArray values */ /** - * Constructs a new ListFeaturesResponse. + * Constructs a new StringArray. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListFeaturesResponse. - * @implements IListFeaturesResponse + * @classdesc Represents a StringArray. + * @implements IStringArray * @constructor - * @param {google.cloud.aiplatform.v1.IListFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IStringArray=} [properties] Properties to set */ - function ListFeaturesResponse(properties) { - this.features = []; + function StringArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62971,92 +62721,78 @@ } /** - * ListFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse - * @instance - */ - ListFeaturesResponse.prototype.features = $util.emptyArray; - - /** - * ListFeaturesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * StringArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StringArray * @instance */ - ListFeaturesResponse.prototype.nextPageToken = ""; + StringArray.prototype.values = $util.emptyArray; /** - * Creates a new ListFeaturesResponse instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse instance + * @param {google.cloud.aiplatform.v1.IStringArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StringArray} StringArray instance */ - ListFeaturesResponse.create = function create(properties) { - return new ListFeaturesResponse(properties); + StringArray.create = function create(properties) { + return new StringArray(properties); }; /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStringArray} message StringArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesResponse.encode = function encode(message, writer) { + StringArray.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); return writer; }; /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StringArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static - * @param {google.cloud.aiplatform.v1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStringArray} message StringArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + StringArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1.StringArray} StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesResponse.decode = function decode(reader, length) { + StringArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StringArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; } default: @@ -63068,151 +62804,159 @@ }; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1.StringArray} StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + StringArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturesResponse message. + * Verifies a StringArray message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturesResponse.verify = function verify(message) { + StringArray.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); - if (error) - return "features." + error; - } + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1.StringArray} StringArray */ - ListFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturesResponse) + StringArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StringArray) return object; - var message = new $root.google.cloud.aiplatform.v1.ListFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); - } + var message = new $root.google.cloud.aiplatform.v1.StringArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StringArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * Creates a plain object from a StringArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static - * @param {google.cloud.aiplatform.v1.ListFeaturesResponse} message ListFeaturesResponse + * @param {google.cloud.aiplatform.v1.StringArray} message StringArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturesResponse.toObject = function toObject(message, options) { + StringArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.features = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListFeaturesResponse to JSON. + * Converts this StringArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @instance * @returns {Object.} JSON object */ - ListFeaturesResponse.prototype.toJSON = function toJSON() { + StringArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFeaturesResponse + * Gets the default type url for StringArray * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1.StringArray * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StringArray.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StringArray"; }; - return ListFeaturesResponse; + return StringArray; })(); - v1.SearchFeaturesRequest = (function() { - - /** - * Properties of a SearchFeaturesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ISearchFeaturesRequest - * @property {string|null} [location] SearchFeaturesRequest location - * @property {string|null} [query] SearchFeaturesRequest query - * @property {number|null} [pageSize] SearchFeaturesRequest pageSize - * @property {string|null} [pageToken] SearchFeaturesRequest pageToken - */ + v1.Tensor = (function() { /** - * Constructs a new SearchFeaturesRequest. + * Properties of a Tensor. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchFeaturesRequest. - * @implements ISearchFeaturesRequest + * @interface ITensor + * @property {google.cloud.aiplatform.v1.Tensor.DataType|null} [dtype] Tensor dtype + * @property {Array.|null} [shape] Tensor shape + * @property {Array.|null} [boolVal] Tensor boolVal + * @property {Array.|null} [stringVal] Tensor stringVal + * @property {Array.|null} [bytesVal] Tensor bytesVal + * @property {Array.|null} [floatVal] Tensor floatVal + * @property {Array.|null} [doubleVal] Tensor doubleVal + * @property {Array.|null} [intVal] Tensor intVal + * @property {Array.|null} [int64Val] Tensor int64Val + * @property {Array.|null} [uintVal] Tensor uintVal + * @property {Array.|null} [uint64Val] Tensor uint64Val + * @property {Array.|null} [listVal] Tensor listVal + * @property {Object.|null} [structVal] Tensor structVal + * @property {Uint8Array|null} [tensorVal] Tensor tensorVal + */ + + /** + * Constructs a new Tensor. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Tensor. + * @implements ITensor * @constructor - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITensor=} [properties] Properties to set */ - function SearchFeaturesRequest(properties) { + function Tensor(properties) { + this.shape = []; + this.boolVal = []; + this.stringVal = []; + this.bytesVal = []; + this.floatVal = []; + this.doubleVal = []; + this.intVal = []; + this.int64Val = []; + this.uintVal = []; + this.uint64Val = []; + this.listVal = []; + this.structVal = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63220,117 +62964,376 @@ } /** - * SearchFeaturesRequest location. - * @member {string} location - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * Tensor dtype. + * @member {google.cloud.aiplatform.v1.Tensor.DataType} dtype + * @memberof google.cloud.aiplatform.v1.Tensor * @instance */ - SearchFeaturesRequest.prototype.location = ""; + Tensor.prototype.dtype = 0; /** - * SearchFeaturesRequest query. - * @member {string} query - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * Tensor shape. + * @member {Array.} shape + * @memberof google.cloud.aiplatform.v1.Tensor * @instance */ - SearchFeaturesRequest.prototype.query = ""; + Tensor.prototype.shape = $util.emptyArray; /** - * SearchFeaturesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * Tensor boolVal. + * @member {Array.} boolVal + * @memberof google.cloud.aiplatform.v1.Tensor * @instance */ - SearchFeaturesRequest.prototype.pageSize = 0; + Tensor.prototype.boolVal = $util.emptyArray; /** - * SearchFeaturesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * Tensor stringVal. + * @member {Array.} stringVal + * @memberof google.cloud.aiplatform.v1.Tensor * @instance */ - SearchFeaturesRequest.prototype.pageToken = ""; + Tensor.prototype.stringVal = $util.emptyArray; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Tensor bytesVal. + * @member {Array.} bytesVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.bytesVal = $util.emptyArray; + + /** + * Tensor floatVal. + * @member {Array.} floatVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.floatVal = $util.emptyArray; + + /** + * Tensor doubleVal. + * @member {Array.} doubleVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.doubleVal = $util.emptyArray; + + /** + * Tensor intVal. + * @member {Array.} intVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.intVal = $util.emptyArray; + + /** + * Tensor int64Val. + * @member {Array.} int64Val + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.int64Val = $util.emptyArray; + + /** + * Tensor uintVal. + * @member {Array.} uintVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.uintVal = $util.emptyArray; + + /** + * Tensor uint64Val. + * @member {Array.} uint64Val + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.uint64Val = $util.emptyArray; + + /** + * Tensor listVal. + * @member {Array.} listVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.listVal = $util.emptyArray; + + /** + * Tensor structVal. + * @member {Object.} structVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.structVal = $util.emptyObject; + + /** + * Tensor tensorVal. + * @member {Uint8Array} tensorVal + * @memberof google.cloud.aiplatform.v1.Tensor + * @instance + */ + Tensor.prototype.tensorVal = $util.newBuffer([]); + + /** + * Creates a new Tensor instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest instance + * @param {google.cloud.aiplatform.v1.ITensor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Tensor} Tensor instance */ - SearchFeaturesRequest.create = function create(properties) { - return new SearchFeaturesRequest(properties); + Tensor.create = function create(properties) { + return new Tensor(properties); }; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * Encodes the specified Tensor message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITensor} message Tensor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesRequest.encode = function encode(message, writer) { + Tensor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); + if (message.dtype != null && Object.hasOwnProperty.call(message, "dtype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dtype); + if (message.shape != null && message.shape.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.shape.length; ++i) + writer.int64(message.shape[i]); + writer.ldelim(); + } + if (message.boolVal != null && message.boolVal.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.boolVal.length; ++i) + writer.bool(message.boolVal[i]); + writer.ldelim(); + } + if (message.floatVal != null && message.floatVal.length) { + writer.uint32(/* id 5, wireType 2 =*/42).fork(); + for (var i = 0; i < message.floatVal.length; ++i) + writer.float(message.floatVal[i]); + writer.ldelim(); + } + if (message.doubleVal != null && message.doubleVal.length) { + writer.uint32(/* id 6, wireType 2 =*/50).fork(); + for (var i = 0; i < message.doubleVal.length; ++i) + writer.double(message.doubleVal[i]); + writer.ldelim(); + } + if (message.intVal != null && message.intVal.length) { + writer.uint32(/* id 7, wireType 2 =*/58).fork(); + for (var i = 0; i < message.intVal.length; ++i) + writer.int32(message.intVal[i]); + writer.ldelim(); + } + if (message.int64Val != null && message.int64Val.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.int64Val.length; ++i) + writer.int64(message.int64Val[i]); + writer.ldelim(); + } + if (message.uintVal != null && message.uintVal.length) { + writer.uint32(/* id 9, wireType 2 =*/74).fork(); + for (var i = 0; i < message.uintVal.length; ++i) + writer.uint32(message.uintVal[i]); + writer.ldelim(); + } + if (message.uint64Val != null && message.uint64Val.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.uint64Val.length; ++i) + writer.uint64(message.uint64Val[i]); + writer.ldelim(); + } + if (message.listVal != null && message.listVal.length) + for (var i = 0; i < message.listVal.length; ++i) + $root.google.cloud.aiplatform.v1.Tensor.encode(message.listVal[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.structVal != null && Object.hasOwnProperty.call(message, "structVal")) + for (var keys = Object.keys(message.structVal), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.Tensor.encode(message.structVal[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tensorVal != null && Object.hasOwnProperty.call(message, "tensorVal")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.tensorVal); + if (message.stringVal != null && message.stringVal.length) + for (var i = 0; i < message.stringVal.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.stringVal[i]); + if (message.bytesVal != null && message.bytesVal.length) + for (var i = 0; i < message.bytesVal.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.bytesVal[i]); return writer; }; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * Encodes the specified Tensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensor.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITensor} message Tensor message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Tensor.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes a Tensor message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Tensor} Tensor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesRequest.decode = function decode(reader, length) { + Tensor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Tensor(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.location = reader.string(); + message.dtype = reader.int32(); + break; + } + case 2: { + if (!(message.shape && message.shape.length)) + message.shape = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.shape.push(reader.int64()); + } else + message.shape.push(reader.int64()); break; } case 3: { - message.query = reader.string(); + if (!(message.boolVal && message.boolVal.length)) + message.boolVal = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.boolVal.push(reader.bool()); + } else + message.boolVal.push(reader.bool()); break; } - case 4: { - message.pageSize = reader.int32(); + case 14: { + if (!(message.stringVal && message.stringVal.length)) + message.stringVal = []; + message.stringVal.push(reader.string()); + break; + } + case 15: { + if (!(message.bytesVal && message.bytesVal.length)) + message.bytesVal = []; + message.bytesVal.push(reader.bytes()); break; } case 5: { - message.pageToken = reader.string(); + if (!(message.floatVal && message.floatVal.length)) + message.floatVal = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.floatVal.push(reader.float()); + } else + message.floatVal.push(reader.float()); + break; + } + case 6: { + if (!(message.doubleVal && message.doubleVal.length)) + message.doubleVal = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.doubleVal.push(reader.double()); + } else + message.doubleVal.push(reader.double()); + break; + } + case 7: { + if (!(message.intVal && message.intVal.length)) + message.intVal = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.intVal.push(reader.int32()); + } else + message.intVal.push(reader.int32()); + break; + } + case 8: { + if (!(message.int64Val && message.int64Val.length)) + message.int64Val = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.int64Val.push(reader.int64()); + } else + message.int64Val.push(reader.int64()); + break; + } + case 9: { + if (!(message.uintVal && message.uintVal.length)) + message.uintVal = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.uintVal.push(reader.uint32()); + } else + message.uintVal.push(reader.uint32()); + break; + } + case 10: { + if (!(message.uint64Val && message.uint64Val.length)) + message.uint64Val = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.uint64Val.push(reader.uint64()); + } else + message.uint64Val.push(reader.uint64()); + break; + } + case 11: { + if (!(message.listVal && message.listVal.length)) + message.listVal = []; + message.listVal.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); + break; + } + case 12: { + if (message.structVal === $util.emptyObject) + message.structVal = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.structVal[key] = value; + break; + } + case 13: { + message.tensorVal = reader.bytes(); break; } default: @@ -63342,396 +63345,905 @@ }; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a Tensor message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Tensor} Tensor * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + Tensor.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchFeaturesRequest message. + * Verifies a Tensor message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchFeaturesRequest.verify = function verify(message) { + Tensor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: 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.dtype != null && message.hasOwnProperty("dtype")) + switch (message.dtype) { + default: + return "dtype: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + break; + } + if (message.shape != null && message.hasOwnProperty("shape")) { + if (!Array.isArray(message.shape)) + return "shape: array expected"; + for (var i = 0; i < message.shape.length; ++i) + if (!$util.isInteger(message.shape[i]) && !(message.shape[i] && $util.isInteger(message.shape[i].low) && $util.isInteger(message.shape[i].high))) + return "shape: integer|Long[] expected"; + } + if (message.boolVal != null && message.hasOwnProperty("boolVal")) { + if (!Array.isArray(message.boolVal)) + return "boolVal: array expected"; + for (var i = 0; i < message.boolVal.length; ++i) + if (typeof message.boolVal[i] !== "boolean") + return "boolVal: boolean[] expected"; + } + if (message.stringVal != null && message.hasOwnProperty("stringVal")) { + if (!Array.isArray(message.stringVal)) + return "stringVal: array expected"; + for (var i = 0; i < message.stringVal.length; ++i) + if (!$util.isString(message.stringVal[i])) + return "stringVal: string[] expected"; + } + if (message.bytesVal != null && message.hasOwnProperty("bytesVal")) { + if (!Array.isArray(message.bytesVal)) + return "bytesVal: array expected"; + for (var i = 0; i < message.bytesVal.length; ++i) + if (!(message.bytesVal[i] && typeof message.bytesVal[i].length === "number" || $util.isString(message.bytesVal[i]))) + return "bytesVal: buffer[] expected"; + } + if (message.floatVal != null && message.hasOwnProperty("floatVal")) { + if (!Array.isArray(message.floatVal)) + return "floatVal: array expected"; + for (var i = 0; i < message.floatVal.length; ++i) + if (typeof message.floatVal[i] !== "number") + return "floatVal: number[] expected"; + } + if (message.doubleVal != null && message.hasOwnProperty("doubleVal")) { + if (!Array.isArray(message.doubleVal)) + return "doubleVal: array expected"; + for (var i = 0; i < message.doubleVal.length; ++i) + if (typeof message.doubleVal[i] !== "number") + return "doubleVal: number[] expected"; + } + if (message.intVal != null && message.hasOwnProperty("intVal")) { + if (!Array.isArray(message.intVal)) + return "intVal: array expected"; + for (var i = 0; i < message.intVal.length; ++i) + if (!$util.isInteger(message.intVal[i])) + return "intVal: integer[] expected"; + } + if (message.int64Val != null && message.hasOwnProperty("int64Val")) { + if (!Array.isArray(message.int64Val)) + return "int64Val: array expected"; + for (var i = 0; i < message.int64Val.length; ++i) + if (!$util.isInteger(message.int64Val[i]) && !(message.int64Val[i] && $util.isInteger(message.int64Val[i].low) && $util.isInteger(message.int64Val[i].high))) + return "int64Val: integer|Long[] expected"; + } + if (message.uintVal != null && message.hasOwnProperty("uintVal")) { + if (!Array.isArray(message.uintVal)) + return "uintVal: array expected"; + for (var i = 0; i < message.uintVal.length; ++i) + if (!$util.isInteger(message.uintVal[i])) + return "uintVal: integer[] expected"; + } + if (message.uint64Val != null && message.hasOwnProperty("uint64Val")) { + if (!Array.isArray(message.uint64Val)) + return "uint64Val: array expected"; + for (var i = 0; i < message.uint64Val.length; ++i) + if (!$util.isInteger(message.uint64Val[i]) && !(message.uint64Val[i] && $util.isInteger(message.uint64Val[i].low) && $util.isInteger(message.uint64Val[i].high))) + return "uint64Val: integer|Long[] expected"; + } + if (message.listVal != null && message.hasOwnProperty("listVal")) { + if (!Array.isArray(message.listVal)) + return "listVal: array expected"; + for (var i = 0; i < message.listVal.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.listVal[i]); + if (error) + return "listVal." + error; + } + } + if (message.structVal != null && message.hasOwnProperty("structVal")) { + if (!$util.isObject(message.structVal)) + return "structVal: object expected"; + var key = Object.keys(message.structVal); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.structVal[key[i]]); + if (error) + return "structVal." + error; + } + } + if (message.tensorVal != null && message.hasOwnProperty("tensorVal")) + if (!(message.tensorVal && typeof message.tensorVal.length === "number" || $util.isString(message.tensorVal))) + return "tensorVal: buffer expected"; return null; }; /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Tensor message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1.Tensor} Tensor */ - SearchFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchFeaturesRequest) + Tensor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Tensor) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchFeaturesRequest(); - if (object.location != null) - message.location = String(object.location); - if (object.query != null) - message.query = String(object.query); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1.Tensor(); + switch (object.dtype) { + default: + if (typeof object.dtype === "number") { + message.dtype = object.dtype; + break; + } + break; + case "DATA_TYPE_UNSPECIFIED": + case 0: + message.dtype = 0; + break; + case "BOOL": + case 1: + message.dtype = 1; + break; + case "STRING": + case 2: + message.dtype = 2; + break; + case "FLOAT": + case 3: + message.dtype = 3; + break; + case "DOUBLE": + case 4: + message.dtype = 4; + break; + case "INT8": + case 5: + message.dtype = 5; + break; + case "INT16": + case 6: + message.dtype = 6; + break; + case "INT32": + case 7: + message.dtype = 7; + break; + case "INT64": + case 8: + message.dtype = 8; + break; + case "UINT8": + case 9: + message.dtype = 9; + break; + case "UINT16": + case 10: + message.dtype = 10; + break; + case "UINT32": + case 11: + message.dtype = 11; + break; + case "UINT64": + case 12: + message.dtype = 12; + break; + } + if (object.shape) { + if (!Array.isArray(object.shape)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.shape: array expected"); + message.shape = []; + for (var i = 0; i < object.shape.length; ++i) + if ($util.Long) + (message.shape[i] = $util.Long.fromValue(object.shape[i])).unsigned = false; + else if (typeof object.shape[i] === "string") + message.shape[i] = parseInt(object.shape[i], 10); + else if (typeof object.shape[i] === "number") + message.shape[i] = object.shape[i]; + else if (typeof object.shape[i] === "object") + message.shape[i] = new $util.LongBits(object.shape[i].low >>> 0, object.shape[i].high >>> 0).toNumber(); + } + if (object.boolVal) { + if (!Array.isArray(object.boolVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.boolVal: array expected"); + message.boolVal = []; + for (var i = 0; i < object.boolVal.length; ++i) + message.boolVal[i] = Boolean(object.boolVal[i]); + } + if (object.stringVal) { + if (!Array.isArray(object.stringVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.stringVal: array expected"); + message.stringVal = []; + for (var i = 0; i < object.stringVal.length; ++i) + message.stringVal[i] = String(object.stringVal[i]); + } + if (object.bytesVal) { + if (!Array.isArray(object.bytesVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.bytesVal: array expected"); + message.bytesVal = []; + for (var i = 0; i < object.bytesVal.length; ++i) + if (typeof object.bytesVal[i] === "string") + $util.base64.decode(object.bytesVal[i], message.bytesVal[i] = $util.newBuffer($util.base64.length(object.bytesVal[i])), 0); + else if (object.bytesVal[i].length >= 0) + message.bytesVal[i] = object.bytesVal[i]; + } + if (object.floatVal) { + if (!Array.isArray(object.floatVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.floatVal: array expected"); + message.floatVal = []; + for (var i = 0; i < object.floatVal.length; ++i) + message.floatVal[i] = Number(object.floatVal[i]); + } + if (object.doubleVal) { + if (!Array.isArray(object.doubleVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.doubleVal: array expected"); + message.doubleVal = []; + for (var i = 0; i < object.doubleVal.length; ++i) + message.doubleVal[i] = Number(object.doubleVal[i]); + } + if (object.intVal) { + if (!Array.isArray(object.intVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.intVal: array expected"); + message.intVal = []; + for (var i = 0; i < object.intVal.length; ++i) + message.intVal[i] = object.intVal[i] | 0; + } + if (object.int64Val) { + if (!Array.isArray(object.int64Val)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.int64Val: array expected"); + message.int64Val = []; + for (var i = 0; i < object.int64Val.length; ++i) + if ($util.Long) + (message.int64Val[i] = $util.Long.fromValue(object.int64Val[i])).unsigned = false; + else if (typeof object.int64Val[i] === "string") + message.int64Val[i] = parseInt(object.int64Val[i], 10); + else if (typeof object.int64Val[i] === "number") + message.int64Val[i] = object.int64Val[i]; + else if (typeof object.int64Val[i] === "object") + message.int64Val[i] = new $util.LongBits(object.int64Val[i].low >>> 0, object.int64Val[i].high >>> 0).toNumber(); + } + if (object.uintVal) { + if (!Array.isArray(object.uintVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.uintVal: array expected"); + message.uintVal = []; + for (var i = 0; i < object.uintVal.length; ++i) + message.uintVal[i] = object.uintVal[i] >>> 0; + } + if (object.uint64Val) { + if (!Array.isArray(object.uint64Val)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.uint64Val: array expected"); + message.uint64Val = []; + for (var i = 0; i < object.uint64Val.length; ++i) + if ($util.Long) + (message.uint64Val[i] = $util.Long.fromValue(object.uint64Val[i])).unsigned = true; + else if (typeof object.uint64Val[i] === "string") + message.uint64Val[i] = parseInt(object.uint64Val[i], 10); + else if (typeof object.uint64Val[i] === "number") + message.uint64Val[i] = object.uint64Val[i]; + else if (typeof object.uint64Val[i] === "object") + message.uint64Val[i] = new $util.LongBits(object.uint64Val[i].low >>> 0, object.uint64Val[i].high >>> 0).toNumber(true); + } + if (object.listVal) { + if (!Array.isArray(object.listVal)) + throw TypeError(".google.cloud.aiplatform.v1.Tensor.listVal: array expected"); + message.listVal = []; + for (var i = 0; i < object.listVal.length; ++i) { + if (typeof object.listVal[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Tensor.listVal: object expected"); + message.listVal[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.listVal[i]); + } + } + if (object.structVal) { + if (typeof object.structVal !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Tensor.structVal: object expected"); + message.structVal = {}; + for (var keys = Object.keys(object.structVal), i = 0; i < keys.length; ++i) { + if (typeof object.structVal[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Tensor.structVal: object expected"); + message.structVal[keys[i]] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.structVal[keys[i]]); + } + } + if (object.tensorVal != null) + if (typeof object.tensorVal === "string") + $util.base64.decode(object.tensorVal, message.tensorVal = $util.newBuffer($util.base64.length(object.tensorVal)), 0); + else if (object.tensorVal.length >= 0) + message.tensorVal = object.tensorVal; return message; }; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from a Tensor message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static - * @param {google.cloud.aiplatform.v1.SearchFeaturesRequest} message SearchFeaturesRequest + * @param {google.cloud.aiplatform.v1.Tensor} message Tensor * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchFeaturesRequest.toObject = function toObject(message, options) { + Tensor.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.shape = []; + object.boolVal = []; + object.floatVal = []; + object.doubleVal = []; + object.intVal = []; + object.int64Val = []; + object.uintVal = []; + object.uint64Val = []; + object.listVal = []; + object.stringVal = []; + object.bytesVal = []; + } + if (options.objects || options.defaults) + object.structVal = {}; if (options.defaults) { - object.location = ""; - object.query = ""; - object.pageSize = 0; - object.pageToken = ""; + object.dtype = options.enums === String ? "DATA_TYPE_UNSPECIFIED" : 0; + if (options.bytes === String) + object.tensorVal = ""; + else { + object.tensorVal = []; + if (options.bytes !== Array) + object.tensorVal = $util.newBuffer(object.tensorVal); + } + } + if (message.dtype != null && message.hasOwnProperty("dtype")) + object.dtype = options.enums === String ? $root.google.cloud.aiplatform.v1.Tensor.DataType[message.dtype] === undefined ? message.dtype : $root.google.cloud.aiplatform.v1.Tensor.DataType[message.dtype] : message.dtype; + if (message.shape && message.shape.length) { + object.shape = []; + for (var j = 0; j < message.shape.length; ++j) + if (typeof message.shape[j] === "number") + object.shape[j] = options.longs === String ? String(message.shape[j]) : message.shape[j]; + else + object.shape[j] = options.longs === String ? $util.Long.prototype.toString.call(message.shape[j]) : options.longs === Number ? new $util.LongBits(message.shape[j].low >>> 0, message.shape[j].high >>> 0).toNumber() : message.shape[j]; + } + if (message.boolVal && message.boolVal.length) { + object.boolVal = []; + for (var j = 0; j < message.boolVal.length; ++j) + object.boolVal[j] = message.boolVal[j]; + } + if (message.floatVal && message.floatVal.length) { + object.floatVal = []; + for (var j = 0; j < message.floatVal.length; ++j) + object.floatVal[j] = options.json && !isFinite(message.floatVal[j]) ? String(message.floatVal[j]) : message.floatVal[j]; + } + if (message.doubleVal && message.doubleVal.length) { + object.doubleVal = []; + for (var j = 0; j < message.doubleVal.length; ++j) + object.doubleVal[j] = options.json && !isFinite(message.doubleVal[j]) ? String(message.doubleVal[j]) : message.doubleVal[j]; + } + if (message.intVal && message.intVal.length) { + object.intVal = []; + for (var j = 0; j < message.intVal.length; ++j) + object.intVal[j] = message.intVal[j]; + } + if (message.int64Val && message.int64Val.length) { + object.int64Val = []; + for (var j = 0; j < message.int64Val.length; ++j) + if (typeof message.int64Val[j] === "number") + object.int64Val[j] = options.longs === String ? String(message.int64Val[j]) : message.int64Val[j]; + else + object.int64Val[j] = options.longs === String ? $util.Long.prototype.toString.call(message.int64Val[j]) : options.longs === Number ? new $util.LongBits(message.int64Val[j].low >>> 0, message.int64Val[j].high >>> 0).toNumber() : message.int64Val[j]; + } + if (message.uintVal && message.uintVal.length) { + object.uintVal = []; + for (var j = 0; j < message.uintVal.length; ++j) + object.uintVal[j] = message.uintVal[j]; + } + if (message.uint64Val && message.uint64Val.length) { + object.uint64Val = []; + for (var j = 0; j < message.uint64Val.length; ++j) + if (typeof message.uint64Val[j] === "number") + object.uint64Val[j] = options.longs === String ? String(message.uint64Val[j]) : message.uint64Val[j]; + else + object.uint64Val[j] = options.longs === String ? $util.Long.prototype.toString.call(message.uint64Val[j]) : options.longs === Number ? new $util.LongBits(message.uint64Val[j].low >>> 0, message.uint64Val[j].high >>> 0).toNumber(true) : message.uint64Val[j]; + } + if (message.listVal && message.listVal.length) { + object.listVal = []; + for (var j = 0; j < message.listVal.length; ++j) + object.listVal[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.listVal[j], options); + } + var keys2; + if (message.structVal && (keys2 = Object.keys(message.structVal)).length) { + object.structVal = {}; + for (var j = 0; j < keys2.length; ++j) + object.structVal[keys2[j]] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.structVal[keys2[j]], options); + } + if (message.tensorVal != null && message.hasOwnProperty("tensorVal")) + object.tensorVal = options.bytes === String ? $util.base64.encode(message.tensorVal, 0, message.tensorVal.length) : options.bytes === Array ? Array.prototype.slice.call(message.tensorVal) : message.tensorVal; + if (message.stringVal && message.stringVal.length) { + object.stringVal = []; + for (var j = 0; j < message.stringVal.length; ++j) + object.stringVal[j] = message.stringVal[j]; + } + if (message.bytesVal && message.bytesVal.length) { + object.bytesVal = []; + for (var j = 0; j < message.bytesVal.length; ++j) + object.bytesVal[j] = options.bytes === String ? $util.base64.encode(message.bytesVal[j], 0, message.bytesVal[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesVal[j]) : message.bytesVal[j]; } - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this Tensor to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @instance * @returns {Object.} JSON object */ - SearchFeaturesRequest.prototype.toJSON = function toJSON() { + Tensor.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchFeaturesRequest + * Gets the default type url for Tensor * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1.Tensor * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Tensor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchFeaturesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Tensor"; }; - return SearchFeaturesRequest; + /** + * DataType enum. + * @name google.cloud.aiplatform.v1.Tensor.DataType + * @enum {number} + * @property {number} DATA_TYPE_UNSPECIFIED=0 DATA_TYPE_UNSPECIFIED value + * @property {number} BOOL=1 BOOL value + * @property {number} STRING=2 STRING value + * @property {number} FLOAT=3 FLOAT value + * @property {number} DOUBLE=4 DOUBLE value + * @property {number} INT8=5 INT8 value + * @property {number} INT16=6 INT16 value + * @property {number} INT32=7 INT32 value + * @property {number} INT64=8 INT64 value + * @property {number} UINT8=9 UINT8 value + * @property {number} UINT16=10 UINT16 value + * @property {number} UINT32=11 UINT32 value + * @property {number} UINT64=12 UINT64 value + */ + Tensor.DataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "BOOL"] = 1; + values[valuesById[2] = "STRING"] = 2; + values[valuesById[3] = "FLOAT"] = 3; + values[valuesById[4] = "DOUBLE"] = 4; + values[valuesById[5] = "INT8"] = 5; + values[valuesById[6] = "INT16"] = 6; + values[valuesById[7] = "INT32"] = 7; + values[valuesById[8] = "INT64"] = 8; + values[valuesById[9] = "UINT8"] = 9; + values[valuesById[10] = "UINT16"] = 10; + values[valuesById[11] = "UINT32"] = 11; + values[valuesById[12] = "UINT64"] = 12; + return values; + })(); + + return Tensor; })(); - v1.SearchFeaturesResponse = (function() { + v1.FeatureRegistryService = (function() { /** - * Properties of a SearchFeaturesResponse. + * Constructs a new FeatureRegistryService service. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchFeaturesResponse - * @property {Array.|null} [features] SearchFeaturesResponse features - * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken + * @classdesc Represents a FeatureRegistryService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function FeatureRegistryService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeatureRegistryService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeatureRegistryService; /** - * Constructs a new SearchFeaturesResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchFeaturesResponse. - * @implements ISearchFeaturesResponse - * @constructor - * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse=} [properties] Properties to set + * Creates new FeatureRegistryService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeatureRegistryService} RPC service. Useful where requests and/or responses are streamed. */ - function SearchFeaturesResponse(properties) { - this.features = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FeatureRegistryService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * SearchFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|createFeatureGroup}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef CreateFeatureGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - SearchFeaturesResponse.prototype.features = $util.emptyArray; /** - * SearchFeaturesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * Calls CreateFeatureGroup. + * @function createFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest} request CreateFeatureGroupRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroupCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchFeaturesResponse.prototype.nextPageToken = ""; + Object.defineProperty(FeatureRegistryService.prototype.createFeatureGroup = function createFeatureGroup(request, callback) { + return this.rpcCall(createFeatureGroup, $root.google.cloud.aiplatform.v1.CreateFeatureGroupRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeatureGroup" }); /** - * Creates a new SearchFeaturesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse instance + * Calls CreateFeatureGroup. + * @function createFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest} request CreateFeatureGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchFeaturesResponse.create = function create(properties) { - return new SearchFeaturesResponse(properties); - }; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|getFeatureGroup}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef GetFeatureGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.FeatureGroup} [response] FeatureGroup */ - SearchFeaturesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1.Feature.encode(message.features[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 SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetFeatureGroup. + * @function getFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest} request GetFeatureGroupRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroupCallback} callback Node-style callback called with the error, if any, and FeatureGroup + * @returns {undefined} + * @variation 1 */ - SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(FeatureRegistryService.prototype.getFeatureGroup = function getFeatureGroup(request, callback) { + return this.rpcCall(getFeatureGroup, $root.google.cloud.aiplatform.v1.GetFeatureGroupRequest, $root.google.cloud.aiplatform.v1.FeatureGroup, request, callback); + }, "name", { value: "GetFeatureGroup" }); /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetFeatureGroup. + * @function getFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest} request GetFeatureGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchFeaturesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchFeaturesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|listFeatureGroups}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef ListFeatureGroupsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} [response] ListFeatureGroupsResponse */ - SearchFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a SearchFeaturesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListFeatureGroups. + * @function listFeatureGroups + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest} request ListFeatureGroupsRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroupsCallback} callback Node-style callback called with the error, if any, and ListFeatureGroupsResponse + * @returns {undefined} + * @variation 1 */ - SearchFeaturesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); - if (error) - return "features." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Object.defineProperty(FeatureRegistryService.prototype.listFeatureGroups = function listFeatureGroups(request, callback) { + return this.rpcCall(listFeatureGroups, $root.google.cloud.aiplatform.v1.ListFeatureGroupsRequest, $root.google.cloud.aiplatform.v1.ListFeatureGroupsResponse, request, callback); + }, "name", { value: "ListFeatureGroups" }); /** - * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse + * Calls ListFeatureGroups. + * @function listFeatureGroups + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest} request ListFeatureGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchFeaturesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.SearchFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1.SearchFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {google.cloud.aiplatform.v1.SearchFeaturesResponse} message SearchFeaturesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|updateFeatureGroup}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef UpdateFeatureGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - SearchFeaturesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.features = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this SearchFeaturesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * Calls UpdateFeatureGroup. + * @function updateFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest} request UpdateFeatureGroupRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroupCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - SearchFeaturesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(FeatureRegistryService.prototype.updateFeatureGroup = function updateFeatureGroup(request, callback) { + return this.rpcCall(updateFeatureGroup, $root.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeatureGroup" }); /** - * Gets the default type url for SearchFeaturesResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UpdateFeatureGroup. + * @function updateFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest} request UpdateFeatureGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SearchFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchFeaturesResponse"; - }; - return SearchFeaturesResponse; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|deleteFeatureGroup}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef DeleteFeatureGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureGroup. + * @function deleteFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest} request DeleteFeatureGroupRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroupCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.deleteFeatureGroup = function deleteFeatureGroup(request, callback) { + return this.rpcCall(deleteFeatureGroup, $root.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureGroup" }); + + /** + * Calls DeleteFeatureGroup. + * @function deleteFeatureGroup + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest} request DeleteFeatureGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|createFeature}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef CreateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.createFeature = function createFeature(request, callback) { + return this.rpcCall(createFeature, $root.google.cloud.aiplatform.v1.CreateFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeature" }); + + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest 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 + * @typedef GetFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Feature} [response] Feature + */ + + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureCallback} callback Node-style callback called with the error, if any, and Feature + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.getFeature = function getFeature(request, callback) { + return this.rpcCall(getFeature, $root.google.cloud.aiplatform.v1.GetFeatureRequest, $root.google.cloud.aiplatform.v1.Feature, request, callback); + }, "name", { value: "GetFeature" }); + + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|listFeatures}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef ListFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeaturesResponse} [response] ListFeaturesResponse + */ + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.ListFeaturesCallback} callback Node-style callback called with the error, if any, and ListFeaturesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.listFeatures = function listFeatures(request, callback) { + return this.rpcCall(listFeatures, $root.google.cloud.aiplatform.v1.ListFeaturesRequest, $root.google.cloud.aiplatform.v1.ListFeaturesResponse, request, callback); + }, "name", { value: "ListFeatures" }); + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|updateFeature}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef UpdateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.updateFeature = function updateFeature(request, callback) { + return this.rpcCall(updateFeature, $root.google.cloud.aiplatform.v1.UpdateFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeature" }); + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|deleteFeature}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef DeleteFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.deleteFeature = function deleteFeature(request, callback) { + return this.rpcCall(deleteFeature, $root.google.cloud.aiplatform.v1.DeleteFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeature" }); + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeatureRegistryService; })(); - v1.UpdateFeatureRequest = (function() { + v1.CreateFeatureGroupRequest = (function() { /** - * Properties of an UpdateFeatureRequest. + * Properties of a CreateFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateFeatureRequest - * @property {google.cloud.aiplatform.v1.IFeature|null} [feature] UpdateFeatureRequest feature - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureRequest updateMask + * @interface ICreateFeatureGroupRequest + * @property {string|null} [parent] CreateFeatureGroupRequest parent + * @property {google.cloud.aiplatform.v1.IFeatureGroup|null} [featureGroup] CreateFeatureGroupRequest featureGroup + * @property {string|null} [featureGroupId] CreateFeatureGroupRequest featureGroupId */ /** - * Constructs a new UpdateFeatureRequest. + * Constructs a new CreateFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateFeatureRequest. - * @implements IUpdateFeatureRequest + * @classdesc Represents a CreateFeatureGroupRequest. + * @implements ICreateFeatureGroupRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest=} [properties] Properties to set */ - function UpdateFeatureRequest(properties) { + function CreateFeatureGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63739,89 +64251,103 @@ } /** - * UpdateFeatureRequest feature. - * @member {google.cloud.aiplatform.v1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * CreateFeatureGroupRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @instance */ - UpdateFeatureRequest.prototype.feature = null; + CreateFeatureGroupRequest.prototype.parent = ""; /** - * UpdateFeatureRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * CreateFeatureGroupRequest featureGroup. + * @member {google.cloud.aiplatform.v1.IFeatureGroup|null|undefined} featureGroup + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @instance */ - UpdateFeatureRequest.prototype.updateMask = null; + CreateFeatureGroupRequest.prototype.featureGroup = null; /** - * Creates a new UpdateFeatureRequest instance using the specified properties. + * CreateFeatureGroupRequest featureGroupId. + * @member {string} featureGroupId + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest + * @instance + */ + CreateFeatureGroupRequest.prototype.featureGroupId = ""; + + /** + * Creates a new CreateFeatureGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupRequest} CreateFeatureGroupRequest instance */ - UpdateFeatureRequest.create = function create(properties) { - return new UpdateFeatureRequest(properties); + CreateFeatureGroupRequest.create = function create(properties) { + return new CreateFeatureGroupRequest(properties); }; /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * Encodes the specified CreateFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest} message CreateFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeatureRequest.encode = function encode(message, writer) { + CreateFeatureGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) - $root.google.cloud.aiplatform.v1.Feature.encode(message.feature, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.featureGroup != null && Object.hasOwnProperty.call(message, "featureGroup")) + $root.google.cloud.aiplatform.v1.FeatureGroup.encode(message.featureGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureGroupId != null && Object.hasOwnProperty.call(message, "featureGroupId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureGroupId); return writer; }; /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * Encodes the specified CreateFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupRequest} message CreateFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * Decodes a CreateFeatureGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupRequest} CreateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeatureRequest.decode = function decode(reader, length) { + CreateFeatureGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.feature = $root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureGroupId = reader.string(); break; } default: @@ -63833,141 +64359,144 @@ }; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupRequest} CreateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeatureRequest message. + * Verifies a CreateFeatureGroupRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFeatureRequest.verify = function verify(message) { + CreateFeatureGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.feature != null && message.hasOwnProperty("feature")) { - var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.feature); - if (error) - return "feature." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.featureGroup != null && message.hasOwnProperty("featureGroup")) { + var error = $root.google.cloud.aiplatform.v1.FeatureGroup.verify(message.featureGroup); if (error) - return "updateMask." + error; + return "featureGroup." + error; } + if (message.featureGroupId != null && message.hasOwnProperty("featureGroupId")) + if (!$util.isString(message.featureGroupId)) + return "featureGroupId: string expected"; return null; }; /** - * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupRequest} CreateFeatureGroupRequest */ - UpdateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureRequest) + CreateFeatureGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureGroupRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureRequest(); - if (object.feature != null) { - if (typeof object.feature !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureRequest.feature: object expected"); - message.feature = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.feature); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureGroupRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featureGroup != null) { + if (typeof object.featureGroup !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureGroupRequest.featureGroup: object expected"); + message.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.fromObject(object.featureGroup); } + if (object.featureGroupId != null) + message.featureGroupId = String(object.featureGroupId); return message; }; /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateFeatureRequest} message UpdateFeatureRequest + * @param {google.cloud.aiplatform.v1.CreateFeatureGroupRequest} message CreateFeatureGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeatureRequest.toObject = function toObject(message, options) { + CreateFeatureGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.feature = null; - object.updateMask = null; + object.parent = ""; + object.featureGroup = null; + object.featureGroupId = ""; } - if (message.feature != null && message.hasOwnProperty("feature")) - object.feature = $root.google.cloud.aiplatform.v1.Feature.toObject(message.feature, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featureGroup != null && message.hasOwnProperty("featureGroup")) + object.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.toObject(message.featureGroup, options); + if (message.featureGroupId != null && message.hasOwnProperty("featureGroupId")) + object.featureGroupId = message.featureGroupId; return object; }; /** - * Converts this UpdateFeatureRequest to JSON. + * Converts this CreateFeatureGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @instance * @returns {Object.} JSON object */ - UpdateFeatureRequest.prototype.toJSON = function toJSON() { + CreateFeatureGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateFeatureRequest + * Gets the default type url for CreateFeatureGroupRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeatureGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureGroupRequest"; }; - return UpdateFeatureRequest; + return CreateFeatureGroupRequest; })(); - v1.DeleteFeatureRequest = (function() { + v1.GetFeatureGroupRequest = (function() { /** - * Properties of a DeleteFeatureRequest. + * Properties of a GetFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteFeatureRequest - * @property {string|null} [name] DeleteFeatureRequest name + * @interface IGetFeatureGroupRequest + * @property {string|null} [name] GetFeatureGroupRequest name */ /** - * Constructs a new DeleteFeatureRequest. + * Constructs a new GetFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteFeatureRequest. - * @implements IDeleteFeatureRequest + * @classdesc Represents a GetFeatureGroupRequest. + * @implements IGetFeatureGroupRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest=} [properties] Properties to set */ - function DeleteFeatureRequest(properties) { + function GetFeatureGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63975,35 +64504,35 @@ } /** - * DeleteFeatureRequest name. + * GetFeatureGroupRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @instance */ - DeleteFeatureRequest.prototype.name = ""; + GetFeatureGroupRequest.prototype.name = ""; /** - * Creates a new DeleteFeatureRequest instance using the specified properties. + * Creates a new GetFeatureGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest instance + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeatureGroupRequest} GetFeatureGroupRequest instance */ - DeleteFeatureRequest.create = function create(properties) { - return new DeleteFeatureRequest(properties); + GetFeatureGroupRequest.create = function create(properties) { + return new GetFeatureGroupRequest(properties); }; /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * Encodes the specified GetFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest} message GetFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureRequest.encode = function encode(message, writer) { + GetFeatureGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -64012,33 +64541,33 @@ }; /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * Encodes the specified GetFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetFeatureGroupRequest} message GetFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetFeatureGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * Decodes a GetFeatureGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureGroupRequest} GetFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureRequest.decode = function decode(reader, length) { + GetFeatureGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -64055,30 +64584,30 @@ }; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureGroupRequest} GetFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + GetFeatureGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeatureRequest message. + * Verifies a GetFeatureGroupRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeatureRequest.verify = function verify(message) { + GetFeatureGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -64088,32 +64617,32 @@ }; /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1.GetFeatureGroupRequest} GetFeatureGroupRequest */ - DeleteFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureRequest) + GetFeatureGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureGroupRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetFeatureGroupRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetFeatureGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureRequest} message DeleteFeatureRequest + * @param {google.cloud.aiplatform.v1.GetFeatureGroupRequest} message GetFeatureGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureRequest.toObject = function toObject(message, options) { + GetFeatureGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -64125,52 +64654,56 @@ }; /** - * Converts this DeleteFeatureRequest to JSON. + * Converts this GetFeatureGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @instance * @returns {Object.} JSON object */ - DeleteFeatureRequest.prototype.toJSON = function toJSON() { + GetFeatureGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFeatureRequest + * Gets the default type url for GetFeatureGroupRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1.GetFeatureGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFeatureGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureGroupRequest"; }; - return DeleteFeatureRequest; + return GetFeatureGroupRequest; })(); - v1.CreateFeaturestoreOperationMetadata = (function() { + v1.ListFeatureGroupsRequest = (function() { /** - * Properties of a CreateFeaturestoreOperationMetadata. + * Properties of a ListFeatureGroupsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata + * @interface IListFeatureGroupsRequest + * @property {string|null} [parent] ListFeatureGroupsRequest parent + * @property {string|null} [filter] ListFeatureGroupsRequest filter + * @property {number|null} [pageSize] ListFeatureGroupsRequest pageSize + * @property {string|null} [pageToken] ListFeatureGroupsRequest pageToken + * @property {string|null} [orderBy] ListFeatureGroupsRequest orderBy */ /** - * Constructs a new CreateFeaturestoreOperationMetadata. + * Constructs a new ListFeatureGroupsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateFeaturestoreOperationMetadata. - * @implements ICreateFeaturestoreOperationMetadata + * @classdesc Represents a ListFeatureGroupsRequest. + * @implements IListFeatureGroupsRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest=} [properties] Properties to set */ - function CreateFeaturestoreOperationMetadata(properties) { + function ListFeatureGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64178,75 +64711,131 @@ } /** - * CreateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * ListFeatureGroupsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @instance */ - CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + ListFeatureGroupsRequest.prototype.parent = ""; /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * ListFeatureGroupsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest + * @instance + */ + ListFeatureGroupsRequest.prototype.filter = ""; + + /** + * ListFeatureGroupsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest + * @instance + */ + ListFeatureGroupsRequest.prototype.pageSize = 0; + + /** + * ListFeatureGroupsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest + * @instance + */ + ListFeatureGroupsRequest.prototype.pageToken = ""; + + /** + * ListFeatureGroupsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest + * @instance + */ + ListFeatureGroupsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFeatureGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsRequest} ListFeatureGroupsRequest instance */ - CreateFeaturestoreOperationMetadata.create = function create(properties) { - return new CreateFeaturestoreOperationMetadata(properties); + ListFeatureGroupsRequest.create = function create(properties) { + return new ListFeatureGroupsRequest(properties); }; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeatureGroupsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest} message ListFeatureGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + ListFeatureGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.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 CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeatureGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsRequest} message ListFeatureGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a ListFeatureGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsRequest} ListFeatureGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + ListFeatureGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + 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: @@ -64258,127 +64847,157 @@ }; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsRequest} ListFeatureGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListFeatureGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeaturestoreOperationMetadata message. + * Verifies a ListFeatureGroupsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeaturestoreOperationMetadata.verify = function verify(message) { + ListFeatureGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.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 CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsRequest} ListFeatureGroupsRequest */ - CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata) + ListFeatureGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureGroupsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1.ListFeatureGroupsRequest(); + 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 CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static - * @param {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1.ListFeatureGroupsRequest} message ListFeatureGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + ListFeatureGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.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 CreateFeaturestoreOperationMetadata to JSON. + * Converts this ListFeatureGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + ListFeatureGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFeaturestoreOperationMetadata + * Gets the default type url for ListFeatureGroupsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFeaturestoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureGroupsRequest"; }; - return CreateFeaturestoreOperationMetadata; + return ListFeatureGroupsRequest; })(); - v1.UpdateFeaturestoreOperationMetadata = (function() { + v1.ListFeatureGroupsResponse = (function() { /** - * Properties of an UpdateFeaturestoreOperationMetadata. + * Properties of a ListFeatureGroupsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata + * @interface IListFeatureGroupsResponse + * @property {Array.|null} [featureGroups] ListFeatureGroupsResponse featureGroups + * @property {string|null} [nextPageToken] ListFeatureGroupsResponse nextPageToken */ /** - * Constructs a new UpdateFeaturestoreOperationMetadata. + * Constructs a new ListFeatureGroupsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateFeaturestoreOperationMetadata. - * @implements IUpdateFeaturestoreOperationMetadata + * @classdesc Represents a ListFeatureGroupsResponse. + * @implements IListFeatureGroupsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsResponse=} [properties] Properties to set */ - function UpdateFeaturestoreOperationMetadata(properties) { + function ListFeatureGroupsResponse(properties) { + this.featureGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64386,75 +65005,92 @@ } /** - * UpdateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * ListFeatureGroupsResponse featureGroups. + * @member {Array.} featureGroups + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @instance */ - UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + ListFeatureGroupsResponse.prototype.featureGroups = $util.emptyArray; /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * ListFeatureGroupsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse + * @instance + */ + ListFeatureGroupsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFeatureGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} ListFeatureGroupsResponse instance */ - UpdateFeaturestoreOperationMetadata.create = function create(properties) { - return new UpdateFeaturestoreOperationMetadata(properties); + ListFeatureGroupsResponse.create = function create(properties) { + return new ListFeatureGroupsResponse(properties); }; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeatureGroupsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsResponse} message ListFeatureGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + ListFeatureGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureGroups != null && message.featureGroups.length) + for (var i = 0; i < message.featureGroups.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureGroup.encode(message.featureGroups[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 UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeatureGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeatureGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeatureGroupsResponse} message ListFeatureGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListFeatureGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a ListFeatureGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} ListFeatureGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + ListFeatureGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeatureGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.featureGroups && message.featureGroups.length)) + message.featureGroups = []; + message.featureGroups.push($root.google.cloud.aiplatform.v1.FeatureGroup.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -64466,135 +65102,149 @@ }; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListFeatureGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} ListFeatureGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListFeatureGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeaturestoreOperationMetadata message. + * Verifies a ListFeatureGroupsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFeaturestoreOperationMetadata.verify = function verify(message) { + ListFeatureGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.featureGroups != null && message.hasOwnProperty("featureGroups")) { + if (!Array.isArray(message.featureGroups)) + return "featureGroups: array expected"; + for (var i = 0; i < message.featureGroups.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureGroup.verify(message.featureGroups[i]); + if (error) + return "featureGroups." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeatureGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} ListFeatureGroupsResponse */ - UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata) + ListFeatureGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeatureGroupsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.ListFeatureGroupsResponse(); + if (object.featureGroups) { + if (!Array.isArray(object.featureGroups)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureGroupsResponse.featureGroups: array expected"); + message.featureGroups = []; + for (var i = 0; i < object.featureGroups.length; ++i) { + if (typeof object.featureGroups[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeatureGroupsResponse.featureGroups: object expected"); + message.featureGroups[i] = $root.google.cloud.aiplatform.v1.FeatureGroup.fromObject(object.featureGroups[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListFeatureGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static - * @param {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1.ListFeatureGroupsResponse} message ListFeatureGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + ListFeatureGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.featureGroups = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.featureGroups && message.featureGroups.length) { + object.featureGroups = []; + for (var j = 0; j < message.featureGroups.length; ++j) + object.featureGroups[j] = $root.google.cloud.aiplatform.v1.FeatureGroup.toObject(message.featureGroups[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * Converts this ListFeatureGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @instance * @returns {Object.} JSON object */ - UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + ListFeatureGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateFeaturestoreOperationMetadata + * Gets the default type url for ListFeatureGroupsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListFeatureGroupsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateFeaturestoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeatureGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeatureGroupsResponse"; }; - return UpdateFeaturestoreOperationMetadata; + return ListFeatureGroupsResponse; })(); - v1.ImportFeatureValuesOperationMetadata = (function() { + v1.UpdateFeatureGroupRequest = (function() { /** - * Properties of an ImportFeatureValuesOperationMetadata. + * Properties of an UpdateFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IImportFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ImportFeatureValuesOperationMetadata genericMetadata - * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount - * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount - * @property {Array.|null} [sourceUris] ImportFeatureValuesOperationMetadata sourceUris - * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount - * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount - * @property {Array.|null} [blockingOperationIds] ImportFeatureValuesOperationMetadata blockingOperationIds + * @interface IUpdateFeatureGroupRequest + * @property {google.cloud.aiplatform.v1.IFeatureGroup|null} [featureGroup] UpdateFeatureGroupRequest featureGroup + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureGroupRequest updateMask */ /** - * Constructs a new ImportFeatureValuesOperationMetadata. + * Constructs a new UpdateFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ImportFeatureValuesOperationMetadata. - * @implements IImportFeatureValuesOperationMetadata + * @classdesc Represents an UpdateFeatureGroupRequest. + * @implements IUpdateFeatureGroupRequest * @constructor - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest=} [properties] Properties to set */ - function ImportFeatureValuesOperationMetadata(properties) { - this.sourceUris = []; - this.blockingOperationIds = []; + function UpdateFeatureGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64602,173 +65252,89 @@ } /** - * ImportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata - * @instance - */ - ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; - - /** - * ImportFeatureValuesOperationMetadata importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata - * @instance - */ - ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ImportFeatureValuesOperationMetadata importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata - * @instance - */ - ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ImportFeatureValuesOperationMetadata sourceUris. - * @member {Array.} sourceUris - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata - * @instance - */ - ImportFeatureValuesOperationMetadata.prototype.sourceUris = $util.emptyArray; - - /** - * ImportFeatureValuesOperationMetadata invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata - * @instance - */ - ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. - * @member {number|Long} timestampOutsideRetentionRowsCount - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * UpdateFeatureGroupRequest featureGroup. + * @member {google.cloud.aiplatform.v1.IFeatureGroup|null|undefined} featureGroup + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateFeatureGroupRequest.prototype.featureGroup = null; /** - * ImportFeatureValuesOperationMetadata blockingOperationIds. - * @member {Array.} blockingOperationIds - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * UpdateFeatureGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.blockingOperationIds = $util.emptyArray; + UpdateFeatureGroupRequest.prototype.updateMask = null; /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupRequest} UpdateFeatureGroupRequest instance */ - ImportFeatureValuesOperationMetadata.create = function create(properties) { - return new ImportFeatureValuesOperationMetadata(properties); + UpdateFeatureGroupRequest.create = function create(properties) { + return new UpdateFeatureGroupRequest(properties); }; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest} message UpdateFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + UpdateFeatureGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedEntityCount); - if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); - if (message.sourceUris != null && message.sourceUris.length) - for (var i = 0; i < message.sourceUris.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceUris[i]); - if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); - if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.timestampOutsideRetentionRowsCount); - if (message.blockingOperationIds != null && message.blockingOperationIds.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.blockingOperationIds.length; ++i) - writer.int64(message.blockingOperationIds[i]); - writer.ldelim(); - } + if (message.featureGroup != null && Object.hasOwnProperty.call(message, "featureGroup")) + $root.google.cloud.aiplatform.v1.FeatureGroup.encode(message.featureGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest} message UpdateFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupRequest} UpdateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + UpdateFeatureGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.decode(reader, reader.uint32()); break; } case 2: { - message.importedEntityCount = reader.int64(); - break; - } - case 3: { - message.importedFeatureValueCount = reader.int64(); - break; - } - case 4: { - if (!(message.sourceUris && message.sourceUris.length)) - message.sourceUris = []; - message.sourceUris.push(reader.string()); - break; - } - case 6: { - message.invalidRowCount = reader.int64(); - break; - } - case 7: { - message.timestampOutsideRetentionRowsCount = reader.int64(); - break; - } - case 8: { - if (!(message.blockingOperationIds && message.blockingOperationIds.length)) - message.blockingOperationIds = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.blockingOperationIds.push(reader.int64()); - } else - message.blockingOperationIds.push(reader.int64()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -64780,268 +65346,142 @@ }; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupRequest} UpdateFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesOperationMetadata message. + * Verifies an UpdateFeatureGroupRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFeatureValuesOperationMetadata.verify = function verify(message) { + UpdateFeatureGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.featureGroup != null && message.hasOwnProperty("featureGroup")) { + var error = $root.google.cloud.aiplatform.v1.FeatureGroup.verify(message.featureGroup); if (error) - return "genericMetadata." + error; - } - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) - return "importedEntityCount: integer|Long expected"; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) - return "importedFeatureValueCount: integer|Long expected"; - if (message.sourceUris != null && message.hasOwnProperty("sourceUris")) { - if (!Array.isArray(message.sourceUris)) - return "sourceUris: array expected"; - for (var i = 0; i < message.sourceUris.length; ++i) - if (!$util.isString(message.sourceUris[i])) - return "sourceUris: string[] expected"; + return "featureGroup." + error; } - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) - return "invalidRowCount: integer|Long expected"; - if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) - if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) - return "timestampOutsideRetentionRowsCount: integer|Long expected"; - if (message.blockingOperationIds != null && message.hasOwnProperty("blockingOperationIds")) { - if (!Array.isArray(message.blockingOperationIds)) - return "blockingOperationIds: array expected"; - for (var i = 0; i < message.blockingOperationIds.length; ++i) - if (!$util.isInteger(message.blockingOperationIds[i]) && !(message.blockingOperationIds[i] && $util.isInteger(message.blockingOperationIds[i].low) && $util.isInteger(message.blockingOperationIds[i].high))) - return "blockingOperationIds: integer|Long[] expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupRequest} UpdateFeatureGroupRequest */ - ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata) + UpdateFeatureGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.importedEntityCount != null) - if ($util.Long) - (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; - else if (typeof object.importedEntityCount === "string") - message.importedEntityCount = parseInt(object.importedEntityCount, 10); - else if (typeof object.importedEntityCount === "number") - message.importedEntityCount = object.importedEntityCount; - else if (typeof object.importedEntityCount === "object") - message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); - if (object.importedFeatureValueCount != null) - if ($util.Long) - (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; - else if (typeof object.importedFeatureValueCount === "string") - message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); - else if (typeof object.importedFeatureValueCount === "number") - message.importedFeatureValueCount = object.importedFeatureValueCount; - else if (typeof object.importedFeatureValueCount === "object") - message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); - if (object.sourceUris) { - if (!Array.isArray(object.sourceUris)) - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.sourceUris: array expected"); - message.sourceUris = []; - for (var i = 0; i < object.sourceUris.length; ++i) - message.sourceUris[i] = String(object.sourceUris[i]); + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest(); + if (object.featureGroup != null) { + if (typeof object.featureGroup !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.featureGroup: object expected"); + message.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.fromObject(object.featureGroup); } - if (object.invalidRowCount != null) - if ($util.Long) - (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; - else if (typeof object.invalidRowCount === "string") - message.invalidRowCount = parseInt(object.invalidRowCount, 10); - else if (typeof object.invalidRowCount === "number") - message.invalidRowCount = object.invalidRowCount; - else if (typeof object.invalidRowCount === "object") - message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); - if (object.timestampOutsideRetentionRowsCount != null) - if ($util.Long) - (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; - else if (typeof object.timestampOutsideRetentionRowsCount === "string") - message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); - else if (typeof object.timestampOutsideRetentionRowsCount === "number") - message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; - else if (typeof object.timestampOutsideRetentionRowsCount === "object") - message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); - if (object.blockingOperationIds) { - if (!Array.isArray(object.blockingOperationIds)) - throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.blockingOperationIds: array expected"); - message.blockingOperationIds = []; - for (var i = 0; i < object.blockingOperationIds.length; ++i) - if ($util.Long) - (message.blockingOperationIds[i] = $util.Long.fromValue(object.blockingOperationIds[i])).unsigned = false; - else if (typeof object.blockingOperationIds[i] === "string") - message.blockingOperationIds[i] = parseInt(object.blockingOperationIds[i], 10); - else if (typeof object.blockingOperationIds[i] === "number") - message.blockingOperationIds[i] = object.blockingOperationIds[i]; - else if (typeof object.blockingOperationIds[i] === "object") - message.blockingOperationIds[i] = new $util.LongBits(object.blockingOperationIds[i].low >>> 0, object.blockingOperationIds[i].high >>> 0).toNumber(); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureGroupRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1.UpdateFeatureGroupRequest} message UpdateFeatureGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + UpdateFeatureGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sourceUris = []; - object.blockingOperationIds = []; - } if (options.defaults) { - object.genericMetadata = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedEntityCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedFeatureValueCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRowCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (typeof message.importedEntityCount === "number") - object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; - else - object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (typeof message.importedFeatureValueCount === "number") - object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; - else - object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; - if (message.sourceUris && message.sourceUris.length) { - object.sourceUris = []; - for (var j = 0; j < message.sourceUris.length; ++j) - object.sourceUris[j] = message.sourceUris[j]; - } - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (typeof message.invalidRowCount === "number") - object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; - else - object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; - if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) - if (typeof message.timestampOutsideRetentionRowsCount === "number") - object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; - else - object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; - if (message.blockingOperationIds && message.blockingOperationIds.length) { - object.blockingOperationIds = []; - for (var j = 0; j < message.blockingOperationIds.length; ++j) - if (typeof message.blockingOperationIds[j] === "number") - object.blockingOperationIds[j] = options.longs === String ? String(message.blockingOperationIds[j]) : message.blockingOperationIds[j]; - else - object.blockingOperationIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.blockingOperationIds[j]) : options.longs === Number ? new $util.LongBits(message.blockingOperationIds[j].low >>> 0, message.blockingOperationIds[j].high >>> 0).toNumber() : message.blockingOperationIds[j]; + object.featureGroup = null; + object.updateMask = null; } + if (message.featureGroup != null && message.hasOwnProperty("featureGroup")) + object.featureGroup = $root.google.cloud.aiplatform.v1.FeatureGroup.toObject(message.featureGroup, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. + * Converts this UpdateFeatureGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + UpdateFeatureGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFeatureValuesOperationMetadata + * Gets the default type url for UpdateFeatureGroupRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureGroupRequest"; }; - return ImportFeatureValuesOperationMetadata; + return UpdateFeatureGroupRequest; })(); - v1.ExportFeatureValuesOperationMetadata = (function() { + v1.DeleteFeatureGroupRequest = (function() { /** - * Properties of an ExportFeatureValuesOperationMetadata. + * Properties of a DeleteFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata + * @interface IDeleteFeatureGroupRequest + * @property {string|null} [name] DeleteFeatureGroupRequest name + * @property {boolean|null} [force] DeleteFeatureGroupRequest force */ /** - * Constructs a new ExportFeatureValuesOperationMetadata. + * Constructs a new DeleteFeatureGroupRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportFeatureValuesOperationMetadata. - * @implements IExportFeatureValuesOperationMetadata + * @classdesc Represents a DeleteFeatureGroupRequest. + * @implements IDeleteFeatureGroupRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest=} [properties] Properties to set */ - function ExportFeatureValuesOperationMetadata(properties) { + function DeleteFeatureGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65049,75 +65489,89 @@ } /** - * ExportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * DeleteFeatureGroupRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @instance */ - ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + DeleteFeatureGroupRequest.prototype.name = ""; /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * DeleteFeatureGroupRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest + * @instance + */ + DeleteFeatureGroupRequest.prototype.force = false; + + /** + * Creates a new DeleteFeatureGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureGroupRequest} DeleteFeatureGroupRequest instance */ - ExportFeatureValuesOperationMetadata.create = function create(properties) { - return new ExportFeatureValuesOperationMetadata(properties); + DeleteFeatureGroupRequest.create = function create(properties) { + return new DeleteFeatureGroupRequest(properties); }; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteFeatureGroupRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest} message DeleteFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + DeleteFeatureGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteFeatureGroupRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest} message DeleteFeatureGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeatureGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteFeatureGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteFeatureGroupRequest} DeleteFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + DeleteFeatureGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); break; } default: @@ -65129,127 +65583,131 @@ }; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteFeatureGroupRequest} DeleteFeatureGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteFeatureGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesOperationMetadata message. + * Verifies a DeleteFeatureGroupRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesOperationMetadata.verify = function verify(message) { + DeleteFeatureGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteFeatureGroupRequest} DeleteFeatureGroupRequest */ - ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata) + DeleteFeatureGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFeatureGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static - * @param {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1.DeleteFeatureGroupRequest} message DeleteFeatureGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + DeleteFeatureGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. + * Converts this DeleteFeatureGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + DeleteFeatureGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFeatureValuesOperationMetadata + * Gets the default type url for DeleteFeatureGroupRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFeatureGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureGroupRequest"; }; - return ExportFeatureValuesOperationMetadata; + return DeleteFeatureGroupRequest; })(); - v1.BatchReadFeatureValuesOperationMetadata = (function() { + v1.CreateFeatureGroupOperationMetadata = (function() { /** - * Properties of a BatchReadFeatureValuesOperationMetadata. + * Properties of a CreateFeatureGroupOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchReadFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata + * @interface ICreateFeatureGroupOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureGroupOperationMetadata genericMetadata */ /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. + * Constructs a new CreateFeatureGroupOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. - * @implements IBatchReadFeatureValuesOperationMetadata + * @classdesc Represents a CreateFeatureGroupOperationMetadata. + * @implements ICreateFeatureGroupOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata=} [properties] Properties to set */ - function BatchReadFeatureValuesOperationMetadata(properties) { + function CreateFeatureGroupOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65257,35 +65715,35 @@ } /** - * BatchReadFeatureValuesOperationMetadata genericMetadata. + * CreateFeatureGroupOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @instance */ - BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; + CreateFeatureGroupOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new CreateFeatureGroupOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata} CreateFeatureGroupOperationMetadata instance */ - BatchReadFeatureValuesOperationMetadata.create = function create(properties) { - return new BatchReadFeatureValuesOperationMetadata(properties); + CreateFeatureGroupOperationMetadata.create = function create(properties) { + return new CreateFeatureGroupOperationMetadata(properties); }; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified CreateFeatureGroupOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata} message CreateFeatureGroupOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesOperationMetadata.encode = function encode(message, writer) { + CreateFeatureGroupOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -65294,33 +65752,33 @@ }; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified CreateFeatureGroupOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata} message CreateFeatureGroupOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureGroupOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a CreateFeatureGroupOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata} CreateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesOperationMetadata.decode = function decode(reader, length) { + CreateFeatureGroupOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65337,30 +65795,30 @@ }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureGroupOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata} CreateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureGroupOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchReadFeatureValuesOperationMetadata message. + * Verifies a CreateFeatureGroupOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchReadFeatureValuesOperationMetadata.verify = function verify(message) { + CreateFeatureGroupOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -65372,35 +65830,35 @@ }; /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureGroupOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata} CreateFeatureGroupOperationMetadata */ - BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata) + CreateFeatureGroupOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureGroupOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata} message CreateFeatureGroupOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + CreateFeatureGroupOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -65412,52 +65870,52 @@ }; /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * Converts this CreateFeatureGroupOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + CreateFeatureGroupOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchReadFeatureValuesOperationMetadata + * Gets the default type url for CreateFeatureGroupOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchReadFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeatureGroupOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata"; }; - return BatchReadFeatureValuesOperationMetadata; + return CreateFeatureGroupOperationMetadata; })(); - v1.DeleteFeatureValuesOperationMetadata = (function() { + v1.UpdateFeatureGroupOperationMetadata = (function() { /** - * Properties of a DeleteFeatureValuesOperationMetadata. + * Properties of an UpdateFeatureGroupOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteFeatureValuesOperationMetadata genericMetadata + * @interface IUpdateFeatureGroupOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeatureGroupOperationMetadata genericMetadata */ /** - * Constructs a new DeleteFeatureValuesOperationMetadata. + * Constructs a new UpdateFeatureGroupOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteFeatureValuesOperationMetadata. - * @implements IDeleteFeatureValuesOperationMetadata + * @classdesc Represents an UpdateFeatureGroupOperationMetadata. + * @implements IUpdateFeatureGroupOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata=} [properties] Properties to set */ - function DeleteFeatureValuesOperationMetadata(properties) { + function UpdateFeatureGroupOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65465,35 +65923,35 @@ } /** - * DeleteFeatureValuesOperationMetadata genericMetadata. + * UpdateFeatureGroupOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @instance */ - DeleteFeatureValuesOperationMetadata.prototype.genericMetadata = null; + UpdateFeatureGroupOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureGroupOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata} UpdateFeatureGroupOperationMetadata instance */ - DeleteFeatureValuesOperationMetadata.create = function create(properties) { - return new DeleteFeatureValuesOperationMetadata(properties); + UpdateFeatureGroupOperationMetadata.create = function create(properties) { + return new UpdateFeatureGroupOperationMetadata(properties); }; /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureGroupOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata} message UpdateFeatureGroupOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesOperationMetadata.encode = function encode(message, writer) { + UpdateFeatureGroupOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -65502,33 +65960,33 @@ }; /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureGroupOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata} message UpdateFeatureGroupOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureGroupOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureGroupOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata} UpdateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesOperationMetadata.decode = function decode(reader, length) { + UpdateFeatureGroupOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65545,30 +66003,30 @@ }; /** - * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureGroupOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata} UpdateFeatureGroupOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureGroupOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeatureValuesOperationMetadata message. + * Verifies an UpdateFeatureGroupOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeatureValuesOperationMetadata.verify = function verify(message) { + UpdateFeatureGroupOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -65580,35 +66038,35 @@ }; /** - * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureGroupOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata} UpdateFeatureGroupOperationMetadata */ - DeleteFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata) + UpdateFeatureGroupOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureGroupOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata} message UpdateFeatureGroupOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + UpdateFeatureGroupOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -65620,52 +66078,52 @@ }; /** - * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * Converts this UpdateFeatureGroupOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @instance * @returns {Object.} JSON object */ - DeleteFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + UpdateFeatureGroupOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFeatureValuesOperationMetadata + * Gets the default type url for UpdateFeatureGroupOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureGroupOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata"; }; - return DeleteFeatureValuesOperationMetadata; + return UpdateFeatureGroupOperationMetadata; })(); - v1.CreateEntityTypeOperationMetadata = (function() { + v1.CreateRegistryFeatureOperationMetadata = (function() { /** - * Properties of a CreateEntityTypeOperationMetadata. + * Properties of a CreateRegistryFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateEntityTypeOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata + * @interface ICreateRegistryFeatureOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateRegistryFeatureOperationMetadata genericMetadata */ /** - * Constructs a new CreateEntityTypeOperationMetadata. + * Constructs a new CreateRegistryFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateEntityTypeOperationMetadata. - * @implements ICreateEntityTypeOperationMetadata + * @classdesc Represents a CreateRegistryFeatureOperationMetadata. + * @implements ICreateRegistryFeatureOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata=} [properties] Properties to set */ - function CreateEntityTypeOperationMetadata(properties) { + function CreateRegistryFeatureOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65673,35 +66131,35 @@ } /** - * CreateEntityTypeOperationMetadata genericMetadata. + * CreateRegistryFeatureOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @instance */ - CreateEntityTypeOperationMetadata.prototype.genericMetadata = null; + CreateRegistryFeatureOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * Creates a new CreateRegistryFeatureOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata} CreateRegistryFeatureOperationMetadata instance */ - CreateEntityTypeOperationMetadata.create = function create(properties) { - return new CreateEntityTypeOperationMetadata(properties); + CreateRegistryFeatureOperationMetadata.create = function create(properties) { + return new CreateRegistryFeatureOperationMetadata(properties); }; /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * Encodes the specified CreateRegistryFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata} message CreateRegistryFeatureOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeOperationMetadata.encode = function encode(message, writer) { + CreateRegistryFeatureOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -65710,33 +66168,33 @@ }; /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * Encodes the specified CreateRegistryFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateRegistryFeatureOperationMetadata} message CreateRegistryFeatureOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateRegistryFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * Decodes a CreateRegistryFeatureOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata} CreateRegistryFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeOperationMetadata.decode = function decode(reader, length) { + CreateRegistryFeatureOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65753,30 +66211,30 @@ }; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateRegistryFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata} CreateRegistryFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateRegistryFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeOperationMetadata message. + * Verifies a CreateRegistryFeatureOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeOperationMetadata.verify = function verify(message) { + CreateRegistryFeatureOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -65788,35 +66246,35 @@ }; /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateRegistryFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata} CreateRegistryFeatureOperationMetadata */ - CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata) + CreateRegistryFeatureOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateRegistryFeatureOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata + * @param {google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata} message CreateRegistryFeatureOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeOperationMetadata.toObject = function toObject(message, options) { + CreateRegistryFeatureOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -65828,52 +66286,52 @@ }; /** - * Converts this CreateEntityTypeOperationMetadata to JSON. + * Converts this CreateRegistryFeatureOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { + CreateRegistryFeatureOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateEntityTypeOperationMetadata + * Gets the default type url for CreateRegistryFeatureOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateEntityTypeOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateRegistryFeatureOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata"; }; - return CreateEntityTypeOperationMetadata; + return CreateRegistryFeatureOperationMetadata; })(); - v1.CreateFeatureOperationMetadata = (function() { + v1.UpdateFeatureOperationMetadata = (function() { /** - * Properties of a CreateFeatureOperationMetadata. + * Properties of an UpdateFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateFeatureOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata + * @interface IUpdateFeatureOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeatureOperationMetadata genericMetadata */ /** - * Constructs a new CreateFeatureOperationMetadata. + * Constructs a new UpdateFeatureOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateFeatureOperationMetadata. - * @implements ICreateFeatureOperationMetadata + * @classdesc Represents an UpdateFeatureOperationMetadata. + * @implements IUpdateFeatureOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata=} [properties] Properties to set */ - function CreateFeatureOperationMetadata(properties) { + function UpdateFeatureOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65881,35 +66339,35 @@ } /** - * CreateFeatureOperationMetadata genericMetadata. + * UpdateFeatureOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @instance */ - CreateFeatureOperationMetadata.prototype.genericMetadata = null; + UpdateFeatureOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * Creates a new UpdateFeatureOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata} UpdateFeatureOperationMetadata instance */ - CreateFeatureOperationMetadata.create = function create(properties) { - return new CreateFeatureOperationMetadata(properties); + UpdateFeatureOperationMetadata.create = function create(properties) { + return new UpdateFeatureOperationMetadata(properties); }; /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata} message UpdateFeatureOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureOperationMetadata.encode = function encode(message, writer) { + UpdateFeatureOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -65918,33 +66376,33 @@ }; /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata} message UpdateFeatureOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata} UpdateFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureOperationMetadata.decode = function decode(reader, length) { + UpdateFeatureOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65961,30 +66419,30 @@ }; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata} UpdateFeatureOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeatureOperationMetadata message. + * Verifies an UpdateFeatureOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeatureOperationMetadata.verify = function verify(message) { + UpdateFeatureOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -65996,35 +66454,35 @@ }; /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata} UpdateFeatureOperationMetadata */ - CreateFeatureOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata) + UpdateFeatureOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata + * @param {google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata} message UpdateFeatureOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeatureOperationMetadata.toObject = function toObject(message, options) { + UpdateFeatureOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -66036,380 +66494,886 @@ }; /** - * Converts this CreateFeatureOperationMetadata to JSON. + * Converts this UpdateFeatureOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { + UpdateFeatureOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFeatureOperationMetadata + * Gets the default type url for UpdateFeatureOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFeatureOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFeatureOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata"; }; - return CreateFeatureOperationMetadata; + return UpdateFeatureOperationMetadata; })(); - v1.BatchCreateFeaturesOperationMetadata = (function() { - - /** - * Properties of a BatchCreateFeaturesOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IBatchCreateFeaturesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata - */ + v1.FeaturestoreService = (function() { /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new FeaturestoreService service. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchCreateFeaturesOperationMetadata. - * @implements IBatchCreateFeaturesOperationMetadata + * @classdesc Represents a FeaturestoreService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function BatchCreateFeaturesOperationMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function FeaturestoreService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * BatchCreateFeaturesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @instance - */ - BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; + (FeaturestoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreService; /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates new FeaturestoreService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeaturestoreService} RPC service. Useful where requests and/or responses are streamed. */ - BatchCreateFeaturesOperationMetadata.create = function create(properties) { - return new BatchCreateFeaturesOperationMetadata(properties); + FeaturestoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeaturestore}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef CreateFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - BatchCreateFeaturesOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateFeaturestore. + * @function createFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(FeaturestoreService.prototype.createFeaturestore = function createFeaturestore(request, callback) { + return this.rpcCall(createFeaturestore, $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeaturestore" }); /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateFeaturestore. + * @function createFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchCreateFeaturesOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getFeaturestore}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef GetFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Featurestore} [response] Featurestore */ - BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a BatchCreateFeaturesOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetFeaturestore. + * @function getFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestoreCallback} callback Node-style callback called with the error, if any, and Featurestore + * @returns {undefined} + * @variation 1 */ - BatchCreateFeaturesOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + Object.defineProperty(FeaturestoreService.prototype.getFeaturestore = function getFeaturestore(request, callback) { + return this.rpcCall(getFeaturestore, $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest, $root.google.cloud.aiplatform.v1.Featurestore, request, callback); + }, "name", { value: "GetFeaturestore" }); /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * Calls GetFeaturestore. + * @function getFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeaturestores}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef ListFeaturestoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeaturestoresResponse} [response] ListFeaturestoresResponse */ - BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * Calls ListFeaturestores. + * @function listFeaturestores + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestoresCallback} callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + * @returns {undefined} + * @variation 1 */ - BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(FeaturestoreService.prototype.listFeaturestores = function listFeaturestores(request, callback) { + return this.rpcCall(listFeaturestores, $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest, $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse, request, callback); + }, "name", { value: "ListFeaturestores" }); /** - * Gets the default type url for BatchCreateFeaturesOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListFeaturestores. + * @function listFeaturestores + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - BatchCreateFeaturesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata"; - }; - - return BatchCreateFeaturesOperationMetadata; - })(); - - v1.DeleteFeatureValuesRequest = (function() { /** - * Properties of a DeleteFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteFeatureValuesRequest - * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null} [selectEntity] DeleteFeatureValuesRequest selectEntity - * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesRequest selectTimeRangeAndFeature - * @property {string|null} [entityType] DeleteFeatureValuesRequest entityType + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeaturestore}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef UpdateFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new DeleteFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteFeatureValuesRequest. - * @implements IDeleteFeatureValuesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set + * Calls UpdateFeaturestore. + * @function updateFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function DeleteFeatureValuesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(FeaturestoreService.prototype.updateFeaturestore = function updateFeaturestore(request, callback) { + return this.rpcCall(updateFeaturestore, $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeaturestore" }); /** - * DeleteFeatureValuesRequest selectEntity. - * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null|undefined} selectEntity - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * Calls UpdateFeaturestore. + * @function updateFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteFeatureValuesRequest.prototype.selectEntity = null; /** - * DeleteFeatureValuesRequest selectTimeRangeAndFeature. - * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeaturestore}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef DeleteFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeaturestore. + * @function deleteFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteFeatureValuesRequest.prototype.selectTimeRangeAndFeature = null; + Object.defineProperty(FeaturestoreService.prototype.deleteFeaturestore = function deleteFeaturestore(request, callback) { + return this.rpcCall(deleteFeaturestore, $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeaturestore" }); /** - * DeleteFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * Calls DeleteFeaturestore. + * @function deleteFeaturestore + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteFeatureValuesRequest.prototype.entityType = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createEntityType}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef CreateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ /** - * DeleteFeatureValuesRequest DeleteOption. - * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} DeleteOption - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - Object.defineProperty(DeleteFeatureValuesRequest.prototype, "DeleteOption", { - get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), - set: $util.oneOfSetter($oneOfFields) - }); + Object.defineProperty(FeaturestoreService.prototype.createEntityType = function createEntityType(request, callback) { + return this.rpcCall(createEntityType, $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEntityType" }); /** - * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|getEntityType}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef GetEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.EntityType} [response] EntityType + */ + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.getEntityType = function getEntityType(request, callback) { + return this.rpcCall(getEntityType, $root.google.cloud.aiplatform.v1.GetEntityTypeRequest, $root.google.cloud.aiplatform.v1.EntityType, request, callback); + }, "name", { value: "GetEntityType" }); + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listEntityTypes}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef ListEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListEntityTypesResponse} [response] ListEntityTypesResponse + */ + + /** + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.listEntityTypes = function listEntityTypes(request, callback) { + return this.rpcCall(listEntityTypes, $root.google.cloud.aiplatform.v1.ListEntityTypesRequest, $root.google.cloud.aiplatform.v1.ListEntityTypesResponse, request, callback); + }, "name", { value: "ListEntityTypes" }); + + /** + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateEntityType}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef UpdateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.EntityType} [response] EntityType + */ + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.updateEntityType = function updateEntityType(request, callback) { + return this.rpcCall(updateEntityType, $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest, $root.google.cloud.aiplatform.v1.EntityType, request, callback); + }, "name", { value: "UpdateEntityType" }); + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteEntityType}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef DeleteEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteEntityType = function deleteEntityType(request, callback) { + return this.rpcCall(deleteEntityType, $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteEntityType" }); + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|createFeature}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef CreateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.CreateFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.createFeature = function createFeature(request, callback) { + return this.rpcCall(createFeature, $root.google.cloud.aiplatform.v1.CreateFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeature" }); + + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchCreateFeatures}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @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.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.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.FeaturestoreService + * @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.FeaturestoreService|getFeature}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef GetFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Feature} [response] Feature + */ + + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.GetFeatureCallback} callback Node-style callback called with the error, if any, and Feature + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.getFeature = function getFeature(request, callback) { + return this.rpcCall(getFeature, $root.google.cloud.aiplatform.v1.GetFeatureRequest, $root.google.cloud.aiplatform.v1.Feature, request, callback); + }, "name", { value: "GetFeature" }); + + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|listFeatures}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef ListFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListFeaturesResponse} [response] ListFeaturesResponse + */ + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturesCallback} callback Node-style callback called with the error, if any, and ListFeaturesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.listFeatures = function listFeatures(request, callback) { + return this.rpcCall(listFeatures, $root.google.cloud.aiplatform.v1.ListFeaturesRequest, $root.google.cloud.aiplatform.v1.ListFeaturesResponse, request, callback); + }, "name", { value: "ListFeatures" }); + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|updateFeature}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef UpdateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Feature} [response] Feature + */ + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeatureCallback} callback Node-style callback called with the error, if any, and Feature + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.updateFeature = function updateFeature(request, callback) { + return this.rpcCall(updateFeature, $root.google.cloud.aiplatform.v1.UpdateFeatureRequest, $root.google.cloud.aiplatform.v1.Feature, request, callback); + }, "name", { value: "UpdateFeature" }); + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeature}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef DeleteFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteFeature = function deleteFeature(request, callback) { + return this.rpcCall(deleteFeature, $root.google.cloud.aiplatform.v1.DeleteFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeature" }); + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|importFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef ImportFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportFeatureValues. + * @function importFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.importFeatureValues = function importFeatureValues(request, callback) { + return this.rpcCall(importFeatureValues, $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportFeatureValues" }); + + /** + * Calls ImportFeatureValues. + * @function importFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|batchReadFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef BatchReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchReadFeatureValues. + * @function batchReadFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.batchReadFeatureValues = function batchReadFeatureValues(request, callback) { + return this.rpcCall(batchReadFeatureValues, $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchReadFeatureValues" }); + + /** + * Calls BatchReadFeatureValues. + * @function batchReadFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|exportFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef ExportFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportFeatureValues. + * @function exportFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.exportFeatureValues = function exportFeatureValues(request, callback) { + return this.rpcCall(exportFeatureValues, $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportFeatureValues" }); + + /** + * Calls ExportFeatureValues. + * @function exportFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|deleteFeatureValues}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef DeleteFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureValues. + * @function deleteFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteFeatureValues = function deleteFeatureValues(request, callback) { + return this.rpcCall(deleteFeatureValues, $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureValues" }); + + /** + * Calls DeleteFeatureValues. + * @function deleteFeatureValues + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} request DeleteFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeaturestoreService|searchFeatures}. + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @typedef SearchFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.SearchFeaturesResponse} [response] SearchFeaturesResponse + */ + + /** + * Calls SearchFeatures. + * @function searchFeatures + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeaturestoreService.SearchFeaturesCallback} callback Node-style callback called with the error, if any, and SearchFeaturesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.searchFeatures = function searchFeatures(request, callback) { + return this.rpcCall(searchFeatures, $root.google.cloud.aiplatform.v1.SearchFeaturesRequest, $root.google.cloud.aiplatform.v1.SearchFeaturesResponse, request, callback); + }, "name", { value: "SearchFeatures" }); + + /** + * Calls SearchFeatures. + * @function searchFeatures + * @memberof google.cloud.aiplatform.v1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeaturestoreService; + })(); + + v1.CreateFeaturestoreRequest = (function() { + + /** + * Properties of a CreateFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeaturestoreRequest + * @property {string|null} [parent] CreateFeaturestoreRequest parent + * @property {google.cloud.aiplatform.v1.IFeaturestore|null} [featurestore] CreateFeaturestoreRequest featurestore + * @property {string|null} [featurestoreId] CreateFeaturestoreRequest featurestoreId + */ + + /** + * Constructs a new CreateFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeaturestoreRequest. + * @implements ICreateFeaturestoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest=} [properties] Properties to set + */ + function CreateFeaturestoreRequest(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]]; + } + + /** + * CreateFeaturestoreRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.parent = ""; + + /** + * CreateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.featurestore = null; + + /** + * CreateFeaturestoreRequest featurestoreId. + * @member {string} featurestoreId + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest + * @instance + */ + CreateFeaturestoreRequest.prototype.featurestoreId = ""; + + /** + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance */ - DeleteFeatureValuesRequest.create = function create(properties) { - return new DeleteFeatureValuesRequest(properties); + CreateFeaturestoreRequest.create = function create(properties) { + return new CreateFeaturestoreRequest(properties); }; /** - * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesRequest.encode = function encode(message, writer) { + CreateFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) - $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) - $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featurestoreId != null && Object.hasOwnProperty.call(message, "featurestoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featurestoreId); return writer; }; /** - * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesRequest.decode = function decode(reader, length) { + CreateFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.decode(reader, reader.uint32()); + case 1: { + message.parent = reader.string(); break; } - case 3: { - message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + case 2: { + message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32()); break; } - case 1: { - message.entityType = reader.string(); + case 3: { + message.featurestoreId = reader.string(); break; } default: @@ -66421,630 +67385,673 @@ }; /** - * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeatureValuesRequest message. + * Verifies a CreateFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeatureValuesRequest.verify = function verify(message) { + CreateFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { - properties.DeleteOption = 1; - { - var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify(message.selectEntity); - if (error) - return "selectEntity." + error; - } - } - if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { - if (properties.DeleteOption === 1) - return "DeleteOption: multiple values"; - properties.DeleteOption = 1; - { - var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); - if (error) - return "selectTimeRangeAndFeature." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.featurestore != null && message.hasOwnProperty("featurestore")) { + var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestore); + if (error) + return "featurestore." + error; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; + if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) + if (!$util.isString(message.featurestoreId)) + return "featurestoreId: string expected"; return null; }; /** - * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} CreateFeaturestoreRequest */ - DeleteFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest) + CreateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); - if (object.selectEntity != null) { - if (typeof object.selectEntity !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectEntity: object expected"); - message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.fromObject(object.selectEntity); - } - if (object.selectTimeRangeAndFeature != null) { - if (typeof object.selectTimeRangeAndFeature !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectTimeRangeAndFeature: object expected"); - message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + var message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featurestore != null) { + if (typeof object.featurestore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeaturestoreRequest.featurestore: object expected"); + message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestore); } - if (object.entityType != null) - message.entityType = String(object.entityType); + if (object.featurestoreId != null) + message.featurestoreId = String(object.featurestoreId); return message; }; /** - * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} message DeleteFeatureValuesRequest + * @param {google.cloud.aiplatform.v1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureValuesRequest.toObject = function toObject(message, options) { + CreateFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.entityType = ""; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { - object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.toObject(message.selectEntity, options); - if (options.oneofs) - object.DeleteOption = "selectEntity"; - } - if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { - object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); - if (options.oneofs) - object.DeleteOption = "selectTimeRangeAndFeature"; + if (options.defaults) { + object.parent = ""; + object.featurestore = null; + object.featurestoreId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestore, options); + if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) + object.featurestoreId = message.featurestoreId; return object; }; /** - * Converts this DeleteFeatureValuesRequest to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - DeleteFeatureValuesRequest.prototype.toJSON = function toJSON() { + CreateFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFeatureValuesRequest + * Gets the default type url for CreateFeaturestoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeaturestoreRequest"; }; - DeleteFeatureValuesRequest.SelectEntity = (function() { + return CreateFeaturestoreRequest; + })(); - /** - * Properties of a SelectEntity. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest - * @interface ISelectEntity - * @property {google.cloud.aiplatform.v1.IEntityIdSelector|null} [entityIdSelector] SelectEntity entityIdSelector - */ + v1.GetFeaturestoreRequest = (function() { - /** - * Constructs a new SelectEntity. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest - * @classdesc Represents a SelectEntity. - * @implements ISelectEntity - * @constructor - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set - */ - function SelectEntity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a GetFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetFeaturestoreRequest + * @property {string|null} [name] GetFeaturestoreRequest name + */ - /** - * SelectEntity entityIdSelector. - * @member {google.cloud.aiplatform.v1.IEntityIdSelector|null|undefined} entityIdSelector - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @instance - */ - SelectEntity.prototype.entityIdSelector = null; + /** + * Constructs a new GetFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetFeaturestoreRequest. + * @implements IGetFeaturestoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest=} [properties] Properties to set + */ + function GetFeaturestoreRequest(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 SelectEntity instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity instance - */ - SelectEntity.create = function create(properties) { - return new SelectEntity(properties); - }; + /** + * GetFeaturestoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @instance + */ + GetFeaturestoreRequest.prototype.name = ""; - /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityIdSelector != null && Object.hasOwnProperty.call(message, "entityIdSelector")) - $root.google.cloud.aiplatform.v1.EntityIdSelector.encode(message.entityIdSelector, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Creates a new GetFeaturestoreRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest instance + */ + GetFeaturestoreRequest.create = function create(properties) { + return new GetFeaturestoreRequest(properties); + }; - /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeaturestoreRequest.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; + }; - /** - * Decodes a SelectEntity message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeaturestoreRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeaturestoreRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest(); + 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 SelectEntity message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectEntity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SelectEntity message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SelectEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) { - var error = $root.google.cloud.aiplatform.v1.EntityIdSelector.verify(message.entityIdSelector); - if (error) - return "entityIdSelector." + error; - } - return null; - }; + /** + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity - */ - SelectEntity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); - if (object.entityIdSelector != null) { - if (typeof object.entityIdSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.entityIdSelector: object expected"); - message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.fromObject(object.entityIdSelector); - } - return message; - }; + /** + * Verifies a GetFeaturestoreRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFeaturestoreRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} message SelectEntity - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SelectEntity.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.entityIdSelector = null; - if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) - object.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.toObject(message.entityIdSelector, options); + /** + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetFeaturestoreRequest} GetFeaturestoreRequest + */ + GetFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.GetFeaturestoreRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this SelectEntity to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @instance - * @returns {Object.} JSON object - */ - SelectEntity.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.GetFeaturestoreRequest} message GetFeaturestoreRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeaturestoreRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for SelectEntity - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity"; - }; + /** + * Converts this GetFeaturestoreRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @instance + * @returns {Object.} JSON object + */ + GetFeaturestoreRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SelectEntity; - })(); + /** + * Gets the default type url for GetFeaturestoreRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetFeaturestoreRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeaturestoreRequest"; + }; - DeleteFeatureValuesRequest.SelectTimeRangeAndFeature = (function() { + return GetFeaturestoreRequest; + })(); - /** - * Properties of a SelectTimeRangeAndFeature. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest - * @interface ISelectTimeRangeAndFeature - * @property {google.type.IInterval|null} [timeRange] SelectTimeRangeAndFeature timeRange - * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] SelectTimeRangeAndFeature featureSelector - * @property {boolean|null} [skipOnlineStorageDelete] SelectTimeRangeAndFeature skipOnlineStorageDelete - */ + v1.ListFeaturestoresRequest = (function() { - /** - * Constructs a new SelectTimeRangeAndFeature. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest - * @classdesc Represents a SelectTimeRangeAndFeature. - * @implements ISelectTimeRangeAndFeature - * @constructor - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set - */ - function SelectTimeRangeAndFeature(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListFeaturestoresRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListFeaturestoresRequest + * @property {string|null} [parent] ListFeaturestoresRequest parent + * @property {string|null} [filter] ListFeaturestoresRequest filter + * @property {number|null} [pageSize] ListFeaturestoresRequest pageSize + * @property {string|null} [pageToken] ListFeaturestoresRequest pageToken + * @property {string|null} [orderBy] ListFeaturestoresRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturestoresRequest readMask + */ - /** - * SelectTimeRangeAndFeature timeRange. - * @member {google.type.IInterval|null|undefined} timeRange - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.timeRange = null; + /** + * Constructs a new ListFeaturestoresRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListFeaturestoresRequest. + * @implements IListFeaturestoresRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest=} [properties] Properties to set + */ + function ListFeaturestoresRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SelectTimeRangeAndFeature featureSelector. - * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.featureSelector = null; + /** + * ListFeaturestoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.parent = ""; - /** - * SelectTimeRangeAndFeature skipOnlineStorageDelete. - * @member {boolean} skipOnlineStorageDelete - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.skipOnlineStorageDelete = false; + /** + * ListFeaturestoresRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.filter = ""; - /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance - */ - SelectTimeRangeAndFeature.create = function create(properties) { - return new SelectTimeRangeAndFeature(properties); - }; + /** + * ListFeaturestoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.pageSize = 0; - /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectTimeRangeAndFeature.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) - $root.google.type.Interval.encode(message.timeRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.skipOnlineStorageDelete != null && Object.hasOwnProperty.call(message, "skipOnlineStorageDelete")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipOnlineStorageDelete); - return writer; - }; + /** + * ListFeaturestoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.pageToken = ""; - /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListFeaturestoresRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.orderBy = ""; - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectTimeRangeAndFeature.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.timeRange = $root.google.type.Interval.decode(reader, reader.uint32()); - break; - } - case 2: { - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); - break; - } - case 3: { - message.skipOnlineStorageDelete = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * ListFeaturestoresRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + */ + ListFeaturestoresRequest.prototype.readMask = null; + + /** + * Creates a new ListFeaturestoresRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest instance + */ + ListFeaturestoresRequest.create = function create(properties) { + return new ListFeaturestoresRequest(properties); + }; + + /** + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturestoresRequest.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); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturestoresRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest(); + 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; + } + case 6: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SelectTimeRangeAndFeature message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SelectTimeRangeAndFeature.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.timeRange != null && message.hasOwnProperty("timeRange")) { - var error = $root.google.type.Interval.verify(message.timeRange); - if (error) - return "timeRange." + error; - } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; - } - if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) - if (typeof message.skipOnlineStorageDelete !== "boolean") - return "skipOnlineStorageDelete: boolean expected"; - return null; - }; + /** + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturestoresRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - */ - SelectTimeRangeAndFeature.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); - if (object.timeRange != null) { - if (typeof object.timeRange !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.timeRange: object expected"); - message.timeRange = $root.google.type.Interval.fromObject(object.timeRange); - } - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); - } - if (object.skipOnlineStorageDelete != null) - message.skipOnlineStorageDelete = Boolean(object.skipOnlineStorageDelete); - return message; - }; + /** + * Verifies a ListFeaturestoresRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeaturestoresRequest.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"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SelectTimeRangeAndFeature.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.timeRange = null; - object.featureSelector = null; - object.skipOnlineStorageDelete = false; - } - if (message.timeRange != null && message.hasOwnProperty("timeRange")) - object.timeRange = $root.google.type.Interval.toObject(message.timeRange, options); - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); - if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) - object.skipOnlineStorageDelete = message.skipOnlineStorageDelete; + /** + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresRequest} ListFeaturestoresRequest + */ + ListFeaturestoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Converts this SelectTimeRangeAndFeature to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @instance - * @returns {Object.} JSON object - */ - SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {google.cloud.aiplatform.v1.ListFeaturestoresRequest} message ListFeaturestoresRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeaturestoresRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; - /** - * Gets the default type url for SelectTimeRangeAndFeature - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature"; - }; + /** + * Converts this ListFeaturestoresRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @instance + * @returns {Object.} JSON object + */ + ListFeaturestoresRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SelectTimeRangeAndFeature; - })(); + /** + * Gets the default type url for ListFeaturestoresRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeaturestoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturestoresRequest"; + }; - return DeleteFeatureValuesRequest; + return ListFeaturestoresRequest; })(); - v1.DeleteFeatureValuesResponse = (function() { + v1.ListFeaturestoresResponse = (function() { /** - * Properties of a DeleteFeatureValuesResponse. + * Properties of a ListFeaturestoresResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteFeatureValuesResponse - * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null} [selectEntity] DeleteFeatureValuesResponse selectEntity - * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesResponse selectTimeRangeAndFeature + * @interface IListFeaturestoresResponse + * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores + * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken */ /** - * Constructs a new DeleteFeatureValuesResponse. + * Constructs a new ListFeaturestoresResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteFeatureValuesResponse. - * @implements IDeleteFeatureValuesResponse + * @classdesc Represents a ListFeaturestoresResponse. + * @implements IListFeaturestoresResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse=} [properties] Properties to set */ - function DeleteFeatureValuesResponse(properties) { + function ListFeaturestoresResponse(properties) { + this.featurestores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67052,103 +68059,92 @@ } /** - * DeleteFeatureValuesResponse selectEntity. - * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null|undefined} selectEntity - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse - * @instance - */ - DeleteFeatureValuesResponse.prototype.selectEntity = null; - - /** - * DeleteFeatureValuesResponse selectTimeRangeAndFeature. - * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * ListFeaturestoresResponse featurestores. + * @member {Array.} featurestores + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @instance */ - DeleteFeatureValuesResponse.prototype.selectTimeRangeAndFeature = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListFeaturestoresResponse.prototype.featurestores = $util.emptyArray; /** - * DeleteFeatureValuesResponse response. - * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} response - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * ListFeaturestoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @instance */ - Object.defineProperty(DeleteFeatureValuesResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListFeaturestoresResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeaturestoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse instance */ - DeleteFeatureValuesResponse.create = function create(properties) { - return new DeleteFeatureValuesResponse(properties); + ListFeaturestoresResponse.create = function create(properties) { + return new ListFeaturestoresResponse(properties); }; /** - * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesResponse.encode = function encode(message, writer) { + ListFeaturestoresResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) - $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) - $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featurestores != null && message.featurestores.length) + for (var i = 0; i < message.featurestores.length; ++i) + $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestores[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 DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturestoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturestoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesResponse.decode = function decode(reader, length) { + ListFeaturestoresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.decode(reader, reader.uint32()); + if (!(message.featurestores && message.featurestores.length)) + message.featurestores = []; + message.featurestores.push($root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32())); break; } case 2: { - message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -67160,700 +68156,386 @@ }; /** - * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + ListFeaturestoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeatureValuesResponse message. + * Verifies a ListFeaturestoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeatureValuesResponse.verify = function verify(message) { + ListFeaturestoresResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { - properties.response = 1; - { - var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify(message.selectEntity); - if (error) - return "selectEntity." + error; - } - } - if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (message.featurestores != null && message.hasOwnProperty("featurestores")) { + if (!Array.isArray(message.featurestores)) + return "featurestores: array expected"; + for (var i = 0; i < message.featurestores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestores[i]); if (error) - return "selectTimeRangeAndFeature." + error; + return "featurestores." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1.ListFeaturestoresResponse} ListFeaturestoresResponse */ - DeleteFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse) + ListFeaturestoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); - if (object.selectEntity != null) { - if (typeof object.selectEntity !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectEntity: object expected"); - message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.fromObject(object.selectEntity); - } - if (object.selectTimeRangeAndFeature != null) { - if (typeof object.selectTimeRangeAndFeature !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectTimeRangeAndFeature: object expected"); - message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + var message = new $root.google.cloud.aiplatform.v1.ListFeaturestoresResponse(); + if (object.featurestores) { + if (!Array.isArray(object.featurestores)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresResponse.featurestores: array expected"); + message.featurestores = []; + for (var i = 0; i < object.featurestores.length; ++i) { + if (typeof object.featurestores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturestoresResponse.featurestores: object expected"); + message.featurestores[i] = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestores[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} message DeleteFeatureValuesResponse + * @param {google.cloud.aiplatform.v1.ListFeaturestoresResponse} message ListFeaturestoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureValuesResponse.toObject = function toObject(message, options) { + ListFeaturestoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { - object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.toObject(message.selectEntity, options); - if (options.oneofs) - object.response = "selectEntity"; - } - if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { - object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); - if (options.oneofs) - object.response = "selectTimeRangeAndFeature"; + if (options.arrays || options.defaults) + object.featurestores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.featurestores && message.featurestores.length) { + object.featurestores = []; + for (var j = 0; j < message.featurestores.length; ++j) + object.featurestores[j] = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestores[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteFeatureValuesResponse to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @instance * @returns {Object.} JSON object */ - DeleteFeatureValuesResponse.prototype.toJSON = function toJSON() { + ListFeaturestoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFeatureValuesResponse + * Gets the default type url for ListFeaturestoresResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1.ListFeaturestoresResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFeaturestoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturestoresResponse"; }; - DeleteFeatureValuesResponse.SelectEntity = (function() { + return ListFeaturestoresResponse; + })(); - /** - * Properties of a SelectEntity. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse - * @interface ISelectEntity - * @property {number|Long|null} [offlineStorageDeletedEntityRowCount] SelectEntity offlineStorageDeletedEntityRowCount - * @property {number|Long|null} [onlineStorageDeletedEntityCount] SelectEntity onlineStorageDeletedEntityCount - */ + v1.UpdateFeaturestoreRequest = (function() { - /** - * Constructs a new SelectEntity. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse - * @classdesc Represents a SelectEntity. - * @implements ISelectEntity - * @constructor - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set - */ - function SelectEntity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UpdateFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpdateFeaturestoreRequest + * @property {google.cloud.aiplatform.v1.IFeaturestore|null} [featurestore] UpdateFeaturestoreRequest featurestore + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeaturestoreRequest updateMask + */ - /** - * SelectEntity offlineStorageDeletedEntityRowCount. - * @member {number|Long} offlineStorageDeletedEntityRowCount - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @instance - */ - SelectEntity.prototype.offlineStorageDeletedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new UpdateFeaturestoreRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpdateFeaturestoreRequest. + * @implements IUpdateFeaturestoreRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest=} [properties] Properties to set + */ + function UpdateFeaturestoreRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SelectEntity onlineStorageDeletedEntityCount. - * @member {number|Long} onlineStorageDeletedEntityCount - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @instance - */ - SelectEntity.prototype.onlineStorageDeletedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * UpdateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @instance + */ + UpdateFeaturestoreRequest.prototype.featurestore = null; - /** - * Creates a new SelectEntity instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity instance - */ - SelectEntity.create = function create(properties) { - return new SelectEntity(properties); - }; + /** + * UpdateFeaturestoreRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @instance + */ + UpdateFeaturestoreRequest.prototype.updateMask = null; - /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.offlineStorageDeletedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageDeletedEntityRowCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.offlineStorageDeletedEntityRowCount); - if (message.onlineStorageDeletedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageDeletedEntityCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.onlineStorageDeletedEntityCount); - return writer; - }; + /** + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance + */ + UpdateFeaturestoreRequest.create = function create(properties) { + return new UpdateFeaturestoreRequest(properties); + }; - /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeaturestoreRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + $root.google.cloud.aiplatform.v1.Featurestore.encode(message.featurestore, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a SelectEntity message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.offlineStorageDeletedEntityRowCount = reader.int64(); - break; - } - case 2: { - message.onlineStorageDeletedEntityCount = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeaturestoreRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.decode(reader, reader.uint32()); break; } - } - return message; - }; - - /** - * Decodes a SelectEntity message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectEntity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SelectEntity message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SelectEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) - if (!$util.isInteger(message.offlineStorageDeletedEntityRowCount) && !(message.offlineStorageDeletedEntityRowCount && $util.isInteger(message.offlineStorageDeletedEntityRowCount.low) && $util.isInteger(message.offlineStorageDeletedEntityRowCount.high))) - return "offlineStorageDeletedEntityRowCount: integer|Long expected"; - if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) - if (!$util.isInteger(message.onlineStorageDeletedEntityCount) && !(message.onlineStorageDeletedEntityCount && $util.isInteger(message.onlineStorageDeletedEntityCount.low) && $util.isInteger(message.onlineStorageDeletedEntityCount.high))) - return "onlineStorageDeletedEntityCount: integer|Long expected"; - return null; - }; - - /** - * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity - */ - SelectEntity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); - if (object.offlineStorageDeletedEntityRowCount != null) - if ($util.Long) - (message.offlineStorageDeletedEntityRowCount = $util.Long.fromValue(object.offlineStorageDeletedEntityRowCount)).unsigned = false; - else if (typeof object.offlineStorageDeletedEntityRowCount === "string") - message.offlineStorageDeletedEntityRowCount = parseInt(object.offlineStorageDeletedEntityRowCount, 10); - else if (typeof object.offlineStorageDeletedEntityRowCount === "number") - message.offlineStorageDeletedEntityRowCount = object.offlineStorageDeletedEntityRowCount; - else if (typeof object.offlineStorageDeletedEntityRowCount === "object") - message.offlineStorageDeletedEntityRowCount = new $util.LongBits(object.offlineStorageDeletedEntityRowCount.low >>> 0, object.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber(); - if (object.onlineStorageDeletedEntityCount != null) - if ($util.Long) - (message.onlineStorageDeletedEntityCount = $util.Long.fromValue(object.onlineStorageDeletedEntityCount)).unsigned = false; - else if (typeof object.onlineStorageDeletedEntityCount === "string") - message.onlineStorageDeletedEntityCount = parseInt(object.onlineStorageDeletedEntityCount, 10); - else if (typeof object.onlineStorageDeletedEntityCount === "number") - message.onlineStorageDeletedEntityCount = object.onlineStorageDeletedEntityCount; - else if (typeof object.onlineStorageDeletedEntityCount === "object") - message.onlineStorageDeletedEntityCount = new $util.LongBits(object.onlineStorageDeletedEntityCount.low >>> 0, object.onlineStorageDeletedEntityCount.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} message SelectEntity - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SelectEntity.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.offlineStorageDeletedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.offlineStorageDeletedEntityRowCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.onlineStorageDeletedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.onlineStorageDeletedEntityCount = options.longs === String ? "0" : 0; - } - if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) - if (typeof message.offlineStorageDeletedEntityRowCount === "number") - object.offlineStorageDeletedEntityRowCount = options.longs === String ? String(message.offlineStorageDeletedEntityRowCount) : message.offlineStorageDeletedEntityRowCount; - else - object.offlineStorageDeletedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageDeletedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageDeletedEntityRowCount.low >>> 0, message.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageDeletedEntityRowCount; - if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) - if (typeof message.onlineStorageDeletedEntityCount === "number") - object.onlineStorageDeletedEntityCount = options.longs === String ? String(message.onlineStorageDeletedEntityCount) : message.onlineStorageDeletedEntityCount; - else - object.onlineStorageDeletedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageDeletedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageDeletedEntityCount.low >>> 0, message.onlineStorageDeletedEntityCount.high >>> 0).toNumber() : message.onlineStorageDeletedEntityCount; - return object; - }; - - /** - * Converts this SelectEntity to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @instance - * @returns {Object.} JSON object - */ - SelectEntity.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SelectEntity - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity"; - }; - - return SelectEntity; - })(); - - DeleteFeatureValuesResponse.SelectTimeRangeAndFeature = (function() { - - /** - * Properties of a SelectTimeRangeAndFeature. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse - * @interface ISelectTimeRangeAndFeature - * @property {number|Long|null} [impactedFeatureCount] SelectTimeRangeAndFeature impactedFeatureCount - * @property {number|Long|null} [offlineStorageModifiedEntityRowCount] SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount - * @property {number|Long|null} [onlineStorageModifiedEntityCount] SelectTimeRangeAndFeature onlineStorageModifiedEntityCount - */ - - /** - * Constructs a new SelectTimeRangeAndFeature. - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse - * @classdesc Represents a SelectTimeRangeAndFeature. - * @implements ISelectTimeRangeAndFeature - * @constructor - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set - */ - function SelectTimeRangeAndFeature(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SelectTimeRangeAndFeature impactedFeatureCount. - * @member {number|Long} impactedFeatureCount - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.impactedFeatureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. - * @member {number|Long} offlineStorageModifiedEntityRowCount - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.offlineStorageModifiedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. - * @member {number|Long} onlineStorageModifiedEntityCount - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @instance - */ - SelectTimeRangeAndFeature.prototype.onlineStorageModifiedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance - */ - SelectTimeRangeAndFeature.create = function create(properties) { - return new SelectTimeRangeAndFeature(properties); - }; - - /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectTimeRangeAndFeature.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.impactedFeatureCount != null && Object.hasOwnProperty.call(message, "impactedFeatureCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.impactedFeatureCount); - if (message.offlineStorageModifiedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageModifiedEntityRowCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offlineStorageModifiedEntityRowCount); - if (message.onlineStorageModifiedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageModifiedEntityCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.onlineStorageModifiedEntityCount); - return writer; - }; - - /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectTimeRangeAndFeature.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.impactedFeatureCount = reader.int64(); - break; - } - case 2: { - message.offlineStorageModifiedEntityRowCount = reader.int64(); - break; - } - case 3: { - message.onlineStorageModifiedEntityCount = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SelectTimeRangeAndFeature message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SelectTimeRangeAndFeature.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) - if (!$util.isInteger(message.impactedFeatureCount) && !(message.impactedFeatureCount && $util.isInteger(message.impactedFeatureCount.low) && $util.isInteger(message.impactedFeatureCount.high))) - return "impactedFeatureCount: integer|Long expected"; - if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) - if (!$util.isInteger(message.offlineStorageModifiedEntityRowCount) && !(message.offlineStorageModifiedEntityRowCount && $util.isInteger(message.offlineStorageModifiedEntityRowCount.low) && $util.isInteger(message.offlineStorageModifiedEntityRowCount.high))) - return "offlineStorageModifiedEntityRowCount: integer|Long expected"; - if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) - if (!$util.isInteger(message.onlineStorageModifiedEntityCount) && !(message.onlineStorageModifiedEntityCount && $util.isInteger(message.onlineStorageModifiedEntityCount.low) && $util.isInteger(message.onlineStorageModifiedEntityCount.high))) - return "onlineStorageModifiedEntityCount: integer|Long expected"; - return null; - }; + /** + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature - */ - SelectTimeRangeAndFeature.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); - if (object.impactedFeatureCount != null) - if ($util.Long) - (message.impactedFeatureCount = $util.Long.fromValue(object.impactedFeatureCount)).unsigned = false; - else if (typeof object.impactedFeatureCount === "string") - message.impactedFeatureCount = parseInt(object.impactedFeatureCount, 10); - else if (typeof object.impactedFeatureCount === "number") - message.impactedFeatureCount = object.impactedFeatureCount; - else if (typeof object.impactedFeatureCount === "object") - message.impactedFeatureCount = new $util.LongBits(object.impactedFeatureCount.low >>> 0, object.impactedFeatureCount.high >>> 0).toNumber(); - if (object.offlineStorageModifiedEntityRowCount != null) - if ($util.Long) - (message.offlineStorageModifiedEntityRowCount = $util.Long.fromValue(object.offlineStorageModifiedEntityRowCount)).unsigned = false; - else if (typeof object.offlineStorageModifiedEntityRowCount === "string") - message.offlineStorageModifiedEntityRowCount = parseInt(object.offlineStorageModifiedEntityRowCount, 10); - else if (typeof object.offlineStorageModifiedEntityRowCount === "number") - message.offlineStorageModifiedEntityRowCount = object.offlineStorageModifiedEntityRowCount; - else if (typeof object.offlineStorageModifiedEntityRowCount === "object") - message.offlineStorageModifiedEntityRowCount = new $util.LongBits(object.offlineStorageModifiedEntityRowCount.low >>> 0, object.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber(); - if (object.onlineStorageModifiedEntityCount != null) - if ($util.Long) - (message.onlineStorageModifiedEntityCount = $util.Long.fromValue(object.onlineStorageModifiedEntityCount)).unsigned = false; - else if (typeof object.onlineStorageModifiedEntityCount === "string") - message.onlineStorageModifiedEntityCount = parseInt(object.onlineStorageModifiedEntityCount, 10); - else if (typeof object.onlineStorageModifiedEntityCount === "number") - message.onlineStorageModifiedEntityCount = object.onlineStorageModifiedEntityCount; - else if (typeof object.onlineStorageModifiedEntityCount === "object") - message.onlineStorageModifiedEntityCount = new $util.LongBits(object.onlineStorageModifiedEntityCount.low >>> 0, object.onlineStorageModifiedEntityCount.high >>> 0).toNumber(); - return message; - }; + /** + * Verifies an UpdateFeaturestoreRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateFeaturestoreRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featurestore != null && message.hasOwnProperty("featurestore")) { + var error = $root.google.cloud.aiplatform.v1.Featurestore.verify(message.featurestore); + if (error) + return "featurestore." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SelectTimeRangeAndFeature.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.impactedFeatureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.impactedFeatureCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.offlineStorageModifiedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.offlineStorageModifiedEntityRowCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.onlineStorageModifiedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.onlineStorageModifiedEntityCount = options.longs === String ? "0" : 0; - } - if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) - if (typeof message.impactedFeatureCount === "number") - object.impactedFeatureCount = options.longs === String ? String(message.impactedFeatureCount) : message.impactedFeatureCount; - else - object.impactedFeatureCount = options.longs === String ? $util.Long.prototype.toString.call(message.impactedFeatureCount) : options.longs === Number ? new $util.LongBits(message.impactedFeatureCount.low >>> 0, message.impactedFeatureCount.high >>> 0).toNumber() : message.impactedFeatureCount; - if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) - if (typeof message.offlineStorageModifiedEntityRowCount === "number") - object.offlineStorageModifiedEntityRowCount = options.longs === String ? String(message.offlineStorageModifiedEntityRowCount) : message.offlineStorageModifiedEntityRowCount; - else - object.offlineStorageModifiedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageModifiedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageModifiedEntityRowCount.low >>> 0, message.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageModifiedEntityRowCount; - if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) - if (typeof message.onlineStorageModifiedEntityCount === "number") - object.onlineStorageModifiedEntityCount = options.longs === String ? String(message.onlineStorageModifiedEntityCount) : message.onlineStorageModifiedEntityCount; - else - object.onlineStorageModifiedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageModifiedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageModifiedEntityCount.low >>> 0, message.onlineStorageModifiedEntityCount.high >>> 0).toNumber() : message.onlineStorageModifiedEntityCount; + /** + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + */ + UpdateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest(); + if (object.featurestore != null) { + if (typeof object.featurestore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.featurestore: object expected"); + message.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.fromObject(object.featurestore); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * Converts this SelectTimeRangeAndFeature to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @instance - * @returns {Object.} JSON object - */ - SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {google.cloud.aiplatform.v1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateFeaturestoreRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.featurestore = null; + object.updateMask = null; + } + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = $root.google.cloud.aiplatform.v1.Featurestore.toObject(message.featurestore, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * Gets the default type url for SelectTimeRangeAndFeature - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature"; - }; + /** + * Converts this UpdateFeaturestoreRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateFeaturestoreRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SelectTimeRangeAndFeature; - })(); + /** + * Gets the default type url for UpdateFeaturestoreRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeaturestoreRequest"; + }; - return DeleteFeatureValuesResponse; + return UpdateFeaturestoreRequest; })(); - v1.EntityIdSelector = (function() { + v1.DeleteFeaturestoreRequest = (function() { /** - * Properties of an EntityIdSelector. + * Properties of a DeleteFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IEntityIdSelector - * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvSource] EntityIdSelector csvSource - * @property {string|null} [entityIdField] EntityIdSelector entityIdField + * @interface IDeleteFeaturestoreRequest + * @property {string|null} [name] DeleteFeaturestoreRequest name + * @property {boolean|null} [force] DeleteFeaturestoreRequest force */ /** - * Constructs a new EntityIdSelector. + * Constructs a new DeleteFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an EntityIdSelector. - * @implements IEntityIdSelector + * @classdesc Represents a DeleteFeaturestoreRequest. + * @implements IDeleteFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest=} [properties] Properties to set */ - function EntityIdSelector(properties) { + function DeleteFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67861,103 +68543,89 @@ } /** - * EntityIdSelector csvSource. - * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvSource - * @memberof google.cloud.aiplatform.v1.EntityIdSelector - * @instance - */ - EntityIdSelector.prototype.csvSource = null; - - /** - * EntityIdSelector entityIdField. - * @member {string} entityIdField - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * DeleteFeaturestoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @instance */ - EntityIdSelector.prototype.entityIdField = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + DeleteFeaturestoreRequest.prototype.name = ""; /** - * EntityIdSelector EntityIdsSource. - * @member {"csvSource"|undefined} EntityIdsSource - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * DeleteFeaturestoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @instance */ - Object.defineProperty(EntityIdSelector.prototype, "EntityIdsSource", { - get: $util.oneOfGetter($oneOfFields = ["csvSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteFeaturestoreRequest.prototype.force = false; /** - * Creates a new EntityIdSelector instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector instance + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance */ - EntityIdSelector.create = function create(properties) { - return new EntityIdSelector(properties); + DeleteFeaturestoreRequest.create = function create(properties) { + return new DeleteFeaturestoreRequest(properties); }; /** - * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityIdSelector.encode = function encode(message, writer) { + DeleteFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) - $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvSource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityIdSelector.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityIdSelector message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityIdSelector.decode = function decode(reader, length) { + DeleteFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); + case 1: { + message.name = reader.string(); break; } - case 5: { - message.entityIdField = reader.string(); + case 2: { + message.force = reader.bool(); break; } default: @@ -67969,158 +68637,142 @@ }; /** - * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityIdSelector.decodeDelimited = function decodeDelimited(reader) { + DeleteFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityIdSelector message. + * Verifies a DeleteFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EntityIdSelector.verify = function verify(message) { + DeleteFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - properties.EntityIdsSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvSource); - if (error) - return "csvSource." + error; - } - } - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - if (!$util.isString(message.entityIdField)) - return "entityIdField: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @returns {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest */ - EntityIdSelector.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.EntityIdSelector) + DeleteFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); - if (object.csvSource != null) { - if (typeof object.csvSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.EntityIdSelector.csvSource: object expected"); - message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvSource); - } - if (object.entityIdField != null) - message.entityIdField = String(object.entityIdField); + var message = new $root.google.cloud.aiplatform.v1.DeleteFeaturestoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1.EntityIdSelector} message EntityIdSelector + * @param {google.cloud.aiplatform.v1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityIdSelector.toObject = function toObject(message, options) { + DeleteFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.entityIdField = ""; - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - object.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvSource, options); - if (options.oneofs) - object.EntityIdsSource = "csvSource"; + if (options.defaults) { + object.name = ""; + object.force = false; } - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - object.entityIdField = message.entityIdField; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this EntityIdSelector to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - EntityIdSelector.prototype.toJSON = function toJSON() { + DeleteFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EntityIdSelector + * Gets the default type url for DeleteFeaturestoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeaturestoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EntityIdSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFeaturestoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.EntityIdSelector"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeaturestoreRequest"; }; - return EntityIdSelector; + return DeleteFeaturestoreRequest; })(); - v1.HyperparameterTuningJob = (function() { + v1.ImportFeatureValuesRequest = (function() { /** - * Properties of a HyperparameterTuningJob. + * Properties of an ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IHyperparameterTuningJob - * @property {string|null} [name] HyperparameterTuningJob name - * @property {string|null} [displayName] HyperparameterTuningJob displayName - * @property {google.cloud.aiplatform.v1.IStudySpec|null} [studySpec] HyperparameterTuningJob studySpec - * @property {number|null} [maxTrialCount] HyperparameterTuningJob maxTrialCount - * @property {number|null} [parallelTrialCount] HyperparameterTuningJob parallelTrialCount - * @property {number|null} [maxFailedTrialCount] HyperparameterTuningJob maxFailedTrialCount - * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trialJobSpec] HyperparameterTuningJob trialJobSpec - * @property {Array.|null} [trials] HyperparameterTuningJob trials - * @property {google.cloud.aiplatform.v1.JobState|null} [state] HyperparameterTuningJob state - * @property {google.protobuf.ITimestamp|null} [createTime] HyperparameterTuningJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] HyperparameterTuningJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] HyperparameterTuningJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] HyperparameterTuningJob updateTime - * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error - * @property {Object.|null} [labels] HyperparameterTuningJob labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + * @interface IImportFeatureValuesRequest + * @property {google.cloud.aiplatform.v1.IAvroSource|null} [avroSource] ImportFeatureValuesRequest avroSource + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] ImportFeatureValuesRequest bigquerySource + * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvSource] ImportFeatureValuesRequest csvSource + * @property {string|null} [featureTimeField] ImportFeatureValuesRequest featureTimeField + * @property {google.protobuf.ITimestamp|null} [featureTime] ImportFeatureValuesRequest featureTime + * @property {string|null} [entityType] ImportFeatureValuesRequest entityType + * @property {string|null} [entityIdField] ImportFeatureValuesRequest entityIdField + * @property {Array.|null} [featureSpecs] ImportFeatureValuesRequest featureSpecs + * @property {boolean|null} [disableOnlineServing] ImportFeatureValuesRequest disableOnlineServing + * @property {number|null} [workerCount] ImportFeatureValuesRequest workerCount + * @property {boolean|null} [disableIngestionAnalysis] ImportFeatureValuesRequest disableIngestionAnalysis */ /** - * Constructs a new HyperparameterTuningJob. + * Constructs a new ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a HyperparameterTuningJob. - * @implements IHyperparameterTuningJob + * @classdesc Represents an ImportFeatureValuesRequest. + * @implements IImportFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest=} [properties] Properties to set */ - function HyperparameterTuningJob(properties) { - this.trials = []; - this.labels = {}; + function ImportFeatureValuesRequest(properties) { + this.featureSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68128,308 +68780,243 @@ } /** - * HyperparameterTuningJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest avroSource. + * @member {google.cloud.aiplatform.v1.IAvroSource|null|undefined} avroSource + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.name = ""; + ImportFeatureValuesRequest.prototype.avroSource = null; /** - * HyperparameterTuningJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest bigquerySource. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.displayName = ""; + ImportFeatureValuesRequest.prototype.bigquerySource = null; /** - * HyperparameterTuningJob studySpec. - * @member {google.cloud.aiplatform.v1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest csvSource. + * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvSource + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.studySpec = null; + ImportFeatureValuesRequest.prototype.csvSource = null; /** - * HyperparameterTuningJob maxTrialCount. - * @member {number} maxTrialCount - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest featureTimeField. + * @member {string|null|undefined} featureTimeField + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.maxTrialCount = 0; + ImportFeatureValuesRequest.prototype.featureTimeField = null; /** - * HyperparameterTuningJob parallelTrialCount. - * @member {number} parallelTrialCount - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest featureTime. + * @member {google.protobuf.ITimestamp|null|undefined} featureTime + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.parallelTrialCount = 0; + ImportFeatureValuesRequest.prototype.featureTime = null; /** - * HyperparameterTuningJob maxFailedTrialCount. - * @member {number} maxFailedTrialCount - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; + ImportFeatureValuesRequest.prototype.entityType = ""; /** - * HyperparameterTuningJob trialJobSpec. - * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trialJobSpec - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest entityIdField. + * @member {string} entityIdField + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.trialJobSpec = null; + ImportFeatureValuesRequest.prototype.entityIdField = ""; /** - * HyperparameterTuningJob trials. - * @member {Array.} trials - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest featureSpecs. + * @member {Array.} featureSpecs + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.trials = $util.emptyArray; + ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; /** - * HyperparameterTuningJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest disableOnlineServing. + * @member {boolean} disableOnlineServing + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.state = 0; + ImportFeatureValuesRequest.prototype.disableOnlineServing = false; /** - * HyperparameterTuningJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest workerCount. + * @member {number} workerCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.createTime = null; + ImportFeatureValuesRequest.prototype.workerCount = 0; /** - * HyperparameterTuningJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest disableIngestionAnalysis. + * @member {boolean} disableIngestionAnalysis + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.startTime = null; + ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; - /** - * HyperparameterTuningJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.endTime = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * HyperparameterTuningJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest source. + * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.updateTime = null; + Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * HyperparameterTuningJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * ImportFeatureValuesRequest featureTimeSource. + * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance */ - HyperparameterTuningJob.prototype.error = null; + Object.defineProperty(ImportFeatureValuesRequest.prototype, "featureTimeSource", { + get: $util.oneOfGetter($oneOfFields = ["featureTimeField", "featureTime"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * HyperparameterTuningJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob - * @instance + * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance */ - HyperparameterTuningJob.prototype.labels = $util.emptyObject; + ImportFeatureValuesRequest.create = function create(properties) { + return new ImportFeatureValuesRequest(properties); + }; /** - * HyperparameterTuningJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.encryptionSpec = null; - - /** - * Creates a new HyperparameterTuningJob instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob - * @static - * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob instance - */ - HyperparameterTuningJob.create = function create(properties) { - return new HyperparameterTuningJob(properties); - }; - - /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.encode = function encode(message, writer) { + ImportFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) - $root.google.cloud.aiplatform.v1.StudySpec.encode(message.studySpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxTrialCount); - if (message.parallelTrialCount != null && Object.hasOwnProperty.call(message, "parallelTrialCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.parallelTrialCount); - if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxFailedTrialCount); - if (message.trialJobSpec != null && Object.hasOwnProperty.call(message, "trialJobSpec")) - $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trialJobSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.trials != null && message.trials.length) - for (var i = 0; i < message.trials.length; ++i) - $root.google.cloud.aiplatform.v1.Trial.encode(message.trials[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).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 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.avroSource != null && Object.hasOwnProperty.call(message, "avroSource")) + $root.google.cloud.aiplatform.v1.AvroSource.encode(message.avroSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) + $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); + if (message.featureTimeField != null && Object.hasOwnProperty.call(message, "featureTimeField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.featureTimeField); + if (message.featureTime != null && Object.hasOwnProperty.call(message, "featureTime")) + $root.google.protobuf.Timestamp.encode(message.featureTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.featureSpecs != null && message.featureSpecs.length) + for (var i = 0; i < message.featureSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.encode(message.featureSpecs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.disableOnlineServing != null && Object.hasOwnProperty.call(message, "disableOnlineServing")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disableOnlineServing); + if (message.workerCount != null && Object.hasOwnProperty.call(message, "workerCount")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.workerCount); + if (message.disableIngestionAnalysis != null && Object.hasOwnProperty.call(message, "disableIngestionAnalysis")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableIngestionAnalysis); return writer; }; /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.decode = function decode(reader, length) { + ImportFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.HyperparameterTuningJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.displayName = reader.string(); + message.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.decode(reader, reader.uint32()); break; } - case 4: { - message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.decode(reader, reader.uint32()); + case 3: { + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); break; } - case 5: { - message.maxTrialCount = reader.int32(); + case 4: { + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); break; } case 6: { - message.parallelTrialCount = reader.int32(); + message.featureTimeField = reader.string(); break; } case 7: { - message.maxFailedTrialCount = reader.int32(); - break; - } - case 8: { - message.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.trials && message.trials.length)) - message.trials = []; - message.trials.push($root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32())); - break; - } - case 10: { - message.state = reader.int32(); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.featureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 12: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 1: { + message.entityType = reader.string(); break; } - case 13: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: { + message.entityIdField = reader.string(); break; } - case 14: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 8: { + if (!(message.featureSpecs && message.featureSpecs.length)) + message.featureSpecs = []; + message.featureSpecs.push($root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.decode(reader, reader.uint32())); break; } - case 15: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + case 9: { + message.disableOnlineServing = reader.bool(); break; } - case 16: { - 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; + case 11: { + message.workerCount = reader.int32(); break; } - case 17: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + case 12: { + message.disableIngestionAnalysis = reader.bool(); break; } default: @@ -68441,390 +69028,502 @@ }; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HyperparameterTuningJob message. + * Verifies an ImportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HyperparameterTuningJob.verify = function verify(message) { + ImportFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.verify(message.studySpec); - if (error) - return "studySpec." + error; - } - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - if (!$util.isInteger(message.maxTrialCount)) - return "maxTrialCount: integer expected"; - if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) - if (!$util.isInteger(message.parallelTrialCount)) - return "parallelTrialCount: integer expected"; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - if (!$util.isInteger(message.maxFailedTrialCount)) - return "maxFailedTrialCount: integer expected"; - if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) { - var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trialJobSpec); - if (error) - return "trialJobSpec." + error; - } - if (message.trials != null && message.hasOwnProperty("trials")) { - if (!Array.isArray(message.trials)) - return "trials: array expected"; - for (var i = 0; i < message.trials.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.trials[i]); + var properties = {}; + if (message.avroSource != null && message.hasOwnProperty("avroSource")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.AvroSource.verify(message.avroSource); if (error) - return "trials." + error; + return "avroSource." + error; } } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvSource); + if (error) + return "csvSource." + error; + } } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; + if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { + properties.featureTimeSource = 1; + if (!$util.isString(message.featureTimeField)) + return "featureTimeField: 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.featureTime != null && message.hasOwnProperty("featureTime")) { + if (properties.featureTimeSource === 1) + return "featureTimeSource: multiple values"; + properties.featureTimeSource = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.featureTime); + if (error) + return "featureTime." + error; + } } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + if (!$util.isString(message.entityIdField)) + return "entityIdField: string expected"; + if (message.featureSpecs != null && message.hasOwnProperty("featureSpecs")) { + if (!Array.isArray(message.featureSpecs)) + return "featureSpecs: array expected"; + for (var i = 0; i < message.featureSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify(message.featureSpecs[i]); + if (error) + return "featureSpecs." + error; + } } + if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) + if (typeof message.disableOnlineServing !== "boolean") + return "disableOnlineServing: boolean expected"; + if (message.workerCount != null && message.hasOwnProperty("workerCount")) + if (!$util.isInteger(message.workerCount)) + return "workerCount: integer expected"; + if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) + if (typeof message.disableIngestionAnalysis !== "boolean") + return "disableIngestionAnalysis: boolean expected"; return null; }; /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} ImportFeatureValuesRequest */ - HyperparameterTuningJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.HyperparameterTuningJob) + ImportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.HyperparameterTuningJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.studySpec != null) { - if (typeof object.studySpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.studySpec: object expected"); - message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.fromObject(object.studySpec); - } - if (object.maxTrialCount != null) - message.maxTrialCount = object.maxTrialCount | 0; - if (object.parallelTrialCount != null) - message.parallelTrialCount = object.parallelTrialCount | 0; - if (object.maxFailedTrialCount != null) - message.maxFailedTrialCount = object.maxFailedTrialCount | 0; - if (object.trialJobSpec != null) { - if (typeof object.trialJobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trialJobSpec: object expected"); - message.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trialJobSpec); - } - if (object.trials) { - if (!Array.isArray(object.trials)) - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trials: array expected"); - message.trials = []; - for (var i = 0; i < object.trials.length; ++i) { - if (typeof object.trials[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trials: object expected"); - message.trials[i] = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.trials[i]); - } - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - case "JOB_STATE_PARTIALLY_SUCCEEDED": - case 11: - message.state = 11; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest(); + if (object.avroSource != null) { + if (typeof object.avroSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.avroSource: object expected"); + message.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.fromObject(object.avroSource); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.csvSource != null) { + if (typeof object.csvSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.csvSource: object expected"); + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvSource); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.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.featureTimeField != null) + message.featureTimeField = String(object.featureTimeField); + if (object.featureTime != null) { + if (typeof object.featureTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureTime: object expected"); + message.featureTime = $root.google.protobuf.Timestamp.fromObject(object.featureTime); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityIdField != null) + message.entityIdField = String(object.entityIdField); + if (object.featureSpecs) { + if (!Array.isArray(object.featureSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureSpecs: array expected"); + message.featureSpecs = []; + for (var i = 0; i < object.featureSpecs.length; ++i) { + if (typeof object.featureSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesRequest.featureSpecs: object expected"); + message.featureSpecs[i] = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.fromObject(object.featureSpecs[i]); + } } + if (object.disableOnlineServing != null) + message.disableOnlineServing = Boolean(object.disableOnlineServing); + if (object.workerCount != null) + message.workerCount = object.workerCount | 0; + if (object.disableIngestionAnalysis != null) + message.disableIngestionAnalysis = Boolean(object.disableIngestionAnalysis); return message; }; /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} message HyperparameterTuningJob + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HyperparameterTuningJob.toObject = function toObject(message, options) { + ImportFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.trials = []; - if (options.objects || options.defaults) - object.labels = {}; + object.featureSpecs = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.studySpec = null; - object.maxTrialCount = 0; - object.parallelTrialCount = 0; - object.maxFailedTrialCount = 0; - object.trialJobSpec = null; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.error = null; - object.encryptionSpec = null; + object.entityType = ""; + object.entityIdField = ""; + object.disableOnlineServing = false; + object.workerCount = 0; + object.disableIngestionAnalysis = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) - object.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.toObject(message.studySpec, options); - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - object.maxTrialCount = message.maxTrialCount; - if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) - object.parallelTrialCount = message.parallelTrialCount; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - object.maxFailedTrialCount = message.maxFailedTrialCount; - if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) - object.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trialJobSpec, options); - if (message.trials && message.trials.length) { - object.trials = []; - for (var j = 0; j < message.trials.length; ++j) - object.trials[j] = $root.google.cloud.aiplatform.v1.Trial.toObject(message.trials[j], options); + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.avroSource != null && message.hasOwnProperty("avroSource")) { + object.avroSource = $root.google.cloud.aiplatform.v1.AvroSource.toObject(message.avroSource, options); + if (options.oneofs) + object.source = "avroSource"; } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.source = "bigquerySource"; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + object.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvSource, options); + if (options.oneofs) + object.source = "csvSource"; + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + object.entityIdField = message.entityIdField; + if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { + object.featureTimeField = message.featureTimeField; + if (options.oneofs) + object.featureTimeSource = "featureTimeField"; + } + if (message.featureTime != null && message.hasOwnProperty("featureTime")) { + object.featureTime = $root.google.protobuf.Timestamp.toObject(message.featureTime, options); + if (options.oneofs) + object.featureTimeSource = "featureTime"; + } + if (message.featureSpecs && message.featureSpecs.length) { + object.featureSpecs = []; + for (var j = 0; j < message.featureSpecs.length; ++j) + object.featureSpecs[j] = $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.toObject(message.featureSpecs[j], options); + } + if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) + object.disableOnlineServing = message.disableOnlineServing; + if (message.workerCount != null && message.hasOwnProperty("workerCount")) + object.workerCount = message.workerCount; + if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) + object.disableIngestionAnalysis = message.disableIngestionAnalysis; return object; }; /** - * Converts this HyperparameterTuningJob to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - HyperparameterTuningJob.prototype.toJSON = function toJSON() { + ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HyperparameterTuningJob + * Gets the default type url for ImportFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HyperparameterTuningJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.HyperparameterTuningJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesRequest"; }; - return HyperparameterTuningJob; + ImportFeatureValuesRequest.FeatureSpec = (function() { + + /** + * Properties of a FeatureSpec. + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest + * @interface IFeatureSpec + * @property {string|null} [id] FeatureSpec id + * @property {string|null} [sourceField] FeatureSpec sourceField + */ + + /** + * Constructs a new FeatureSpec. + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest + * @classdesc Represents a FeatureSpec. + * @implements IFeatureSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set + */ + function FeatureSpec(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]]; + } + + /** + * FeatureSpec id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @instance + */ + FeatureSpec.prototype.id = ""; + + /** + * FeatureSpec sourceField. + * @member {string} sourceField + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @instance + */ + FeatureSpec.prototype.sourceField = ""; + + /** + * Creates a new FeatureSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec instance + */ + FeatureSpec.create = function create(properties) { + return new FeatureSpec(properties); + }; + + /** + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.sourceField != null && Object.hasOwnProperty.call(message, "sourceField")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceField); + return writer; + }; + + /** + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.sourceField = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.sourceField != null && message.hasOwnProperty("sourceField")) + if (!$util.isString(message.sourceField)) + return "sourceField: string expected"; + return null; + }; + + /** + * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + */ + FeatureSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec(); + if (object.id != null) + message.id = String(object.id); + if (object.sourceField != null) + message.sourceField = String(object.sourceField); + return message; + }; + + /** + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec} message FeatureSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.sourceField = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.sourceField != null && message.hasOwnProperty("sourceField")) + object.sourceField = message.sourceField; + return object; + }; + + /** + * Converts this FeatureSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @instance + * @returns {Object.} JSON object + */ + FeatureSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec"; + }; + + return FeatureSpec; + })(); + + return ImportFeatureValuesRequest; })(); - v1.Study = (function() { + v1.ImportFeatureValuesResponse = (function() { /** - * Properties of a Study. + * Properties of an ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IStudy - * @property {string|null} [name] Study name - * @property {string|null} [displayName] Study displayName - * @property {google.cloud.aiplatform.v1.IStudySpec|null} [studySpec] Study studySpec - * @property {google.cloud.aiplatform.v1.Study.State|null} [state] Study state - * @property {google.protobuf.ITimestamp|null} [createTime] Study createTime - * @property {string|null} [inactiveReason] Study inactiveReason + * @interface IImportFeatureValuesResponse + * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount + * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount + * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ /** - * Constructs a new Study. + * Constructs a new ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Study. - * @implements IStudy + * @classdesc Represents an ImportFeatureValuesResponse. + * @implements IImportFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IStudy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse=} [properties] Properties to set */ - function Study(properties) { + function ImportFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68832,145 +69531,117 @@ } /** - * Study name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.Study - * @instance - */ - Study.prototype.name = ""; - - /** - * Study displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.Study - * @instance - */ - Study.prototype.displayName = ""; - - /** - * Study studySpec. - * @member {google.cloud.aiplatform.v1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1.Study + * ImportFeatureValuesResponse importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @instance */ - Study.prototype.studySpec = null; + ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Study state. - * @member {google.cloud.aiplatform.v1.Study.State} state - * @memberof google.cloud.aiplatform.v1.Study + * ImportFeatureValuesResponse importedFeatureValueCount. + * @member {number|Long} importedFeatureValueCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @instance */ - Study.prototype.state = 0; + ImportFeatureValuesResponse.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Study createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.Study + * ImportFeatureValuesResponse invalidRowCount. + * @member {number|Long} invalidRowCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @instance */ - Study.prototype.createTime = null; + ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Study inactiveReason. - * @member {string} inactiveReason - * @memberof google.cloud.aiplatform.v1.Study + * ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @instance */ - Study.prototype.inactiveReason = ""; + ImportFeatureValuesResponse.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new Study instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IStudy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Study} Study instance + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance */ - Study.create = function create(properties) { - return new Study(properties); + ImportFeatureValuesResponse.create = function create(properties) { + return new ImportFeatureValuesResponse(properties); }; /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IStudy} message Study message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Study.encode = function encode(message, writer) { + ImportFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) - $root.google.cloud.aiplatform.v1.StudySpec.encode(message.studySpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.inactiveReason != null && Object.hasOwnProperty.call(message, "inactiveReason")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.inactiveReason); + if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); + if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.timestampOutsideRetentionRowsCount); + if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); return writer; }; /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.IStudy} message Study message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Study.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Study message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Study} Study + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Study.decode = function decode(reader, length) { + ImportFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Study(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.importedEntityCount = reader.int64(); break; } case 2: { - message.displayName = reader.string(); + message.importedFeatureValueCount = reader.int64(); break; } - case 3: { - message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.decode(reader, reader.uint32()); + case 6: { + message.invalidRowCount = reader.int64(); break; } case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.inactiveReason = reader.string(); + message.timestampOutsideRetentionRowsCount = reader.int64(); break; } default: @@ -68982,234 +69653,211 @@ }; /** - * Decodes a Study message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Study} Study + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Study.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Study message. + * Verifies an ImportFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Study.verify = function verify(message) { + ImportFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.verify(message.studySpec); - if (error) - return "studySpec." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) - if (!$util.isString(message.inactiveReason)) - return "inactiveReason: string expected"; + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) + return "importedEntityCount: integer|Long expected"; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) + return "importedFeatureValueCount: integer|Long expected"; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) + return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; return null; }; /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Study} Study + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} ImportFeatureValuesResponse */ - Study.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Study) + ImportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.Study(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.studySpec != null) { - if (typeof object.studySpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Study.studySpec: object expected"); - message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.fromObject(object.studySpec); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "INACTIVE": - case 2: - message.state = 2; - break; - case "COMPLETED": - case 3: - message.state = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Study.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.inactiveReason != null) - message.inactiveReason = String(object.inactiveReason); + var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesResponse(); + if (object.importedEntityCount != null) + if ($util.Long) + (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; + else if (typeof object.importedEntityCount === "string") + message.importedEntityCount = parseInt(object.importedEntityCount, 10); + else if (typeof object.importedEntityCount === "number") + message.importedEntityCount = object.importedEntityCount; + else if (typeof object.importedEntityCount === "object") + message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); + if (object.importedFeatureValueCount != null) + if ($util.Long) + (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; + else if (typeof object.importedFeatureValueCount === "string") + message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); + else if (typeof object.importedFeatureValueCount === "number") + message.importedFeatureValueCount = object.importedFeatureValueCount; + else if (typeof object.importedFeatureValueCount === "object") + message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); + if (object.invalidRowCount != null) + if ($util.Long) + (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; + else if (typeof object.invalidRowCount === "string") + message.invalidRowCount = parseInt(object.invalidRowCount, 10); + else if (typeof object.invalidRowCount === "number") + message.invalidRowCount = object.invalidRowCount; + else if (typeof object.invalidRowCount === "object") + message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Study message. Also converts values to other types if specified. + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1.Study} message Study + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Study.toObject = function toObject(message, options) { + ImportFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.studySpec = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.inactiveReason = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedEntityCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRowCount = options.longs === String ? "0" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) - object.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.toObject(message.studySpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Study.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Study.State[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) - object.inactiveReason = message.inactiveReason; + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (typeof message.importedEntityCount === "number") + object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; + else + object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (typeof message.importedFeatureValueCount === "number") + object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; + else + object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (typeof message.invalidRowCount === "number") + object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; + else + object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; return object; }; /** - * Converts this Study to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - Study.prototype.toJSON = function toJSON() { + ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Study + * Gets the default type url for ImportFeatureValuesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Study + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Study.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Study"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesResponse"; }; - /** - * State enum. - * @name google.cloud.aiplatform.v1.Study.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} INACTIVE=2 INACTIVE value - * @property {number} COMPLETED=3 COMPLETED value - */ - Study.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "INACTIVE"] = 2; - values[valuesById[3] = "COMPLETED"] = 3; - return values; - })(); - - return Study; + return ImportFeatureValuesResponse; })(); - v1.Trial = (function() { + v1.BatchReadFeatureValuesRequest = (function() { /** - * Properties of a Trial. + * Properties of a BatchReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ITrial - * @property {string|null} [name] Trial name - * @property {string|null} [id] Trial id - * @property {google.cloud.aiplatform.v1.Trial.State|null} [state] Trial state - * @property {Array.|null} [parameters] Trial parameters - * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] Trial finalMeasurement - * @property {Array.|null} [measurements] Trial measurements - * @property {google.protobuf.ITimestamp|null} [startTime] Trial startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Trial endTime - * @property {string|null} [clientId] Trial clientId - * @property {string|null} [infeasibleReason] Trial infeasibleReason - * @property {string|null} [customJob] Trial customJob - * @property {Object.|null} [webAccessUris] Trial webAccessUris + * @interface IBatchReadFeatureValuesRequest + * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvReadInstances] BatchReadFeatureValuesRequest csvReadInstances + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigqueryReadInstances] BatchReadFeatureValuesRequest bigqueryReadInstances + * @property {string|null} [featurestore] BatchReadFeatureValuesRequest featurestore + * @property {google.cloud.aiplatform.v1.IFeatureValueDestination|null} [destination] BatchReadFeatureValuesRequest destination + * @property {Array.|null} [passThroughFields] BatchReadFeatureValuesRequest passThroughFields + * @property {Array.|null} [entityTypeSpecs] BatchReadFeatureValuesRequest entityTypeSpecs + * @property {google.protobuf.ITimestamp|null} [startTime] BatchReadFeatureValuesRequest startTime */ /** - * Constructs a new Trial. + * Constructs a new BatchReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Trial. - * @implements ITrial + * @classdesc Represents a BatchReadFeatureValuesRequest. + * @implements IBatchReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1.ITrial=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest=} [properties] Properties to set */ - function Trial(properties) { - this.parameters = []; - this.measurements = []; - this.webAccessUris = {}; + function BatchReadFeatureValuesRequest(properties) { + this.passThroughFields = []; + this.entityTypeSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69217,255 +69865,179 @@ } /** - * Trial name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest csvReadInstances. + * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvReadInstances + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.name = ""; + BatchReadFeatureValuesRequest.prototype.csvReadInstances = null; /** - * Trial id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest bigqueryReadInstances. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigqueryReadInstances + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.id = ""; + BatchReadFeatureValuesRequest.prototype.bigqueryReadInstances = null; /** - * Trial state. - * @member {google.cloud.aiplatform.v1.Trial.State} state - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest featurestore. + * @member {string} featurestore + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.state = 0; + BatchReadFeatureValuesRequest.prototype.featurestore = ""; /** - * Trial parameters. - * @member {Array.} parameters - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.parameters = $util.emptyArray; + BatchReadFeatureValuesRequest.prototype.destination = null; /** - * Trial finalMeasurement. - * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest passThroughFields. + * @member {Array.} passThroughFields + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.finalMeasurement = null; + BatchReadFeatureValuesRequest.prototype.passThroughFields = $util.emptyArray; /** - * Trial measurements. - * @member {Array.} measurements - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest entityTypeSpecs. + * @member {Array.} entityTypeSpecs + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.measurements = $util.emptyArray; + BatchReadFeatureValuesRequest.prototype.entityTypeSpecs = $util.emptyArray; /** - * Trial startTime. + * BatchReadFeatureValuesRequest startTime. * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.Trial - * @instance - */ - Trial.prototype.startTime = null; - - /** - * Trial endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.Trial - * @instance - */ - Trial.prototype.endTime = null; - - /** - * Trial clientId. - * @member {string} clientId - * @memberof google.cloud.aiplatform.v1.Trial - * @instance - */ - Trial.prototype.clientId = ""; - - /** - * Trial infeasibleReason. - * @member {string} infeasibleReason - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.infeasibleReason = ""; + BatchReadFeatureValuesRequest.prototype.startTime = null; - /** - * Trial customJob. - * @member {string} customJob - * @memberof google.cloud.aiplatform.v1.Trial - * @instance - */ - Trial.prototype.customJob = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Trial webAccessUris. - * @member {Object.} webAccessUris - * @memberof google.cloud.aiplatform.v1.Trial + * BatchReadFeatureValuesRequest readOption. + * @member {"csvReadInstances"|"bigqueryReadInstances"|undefined} readOption + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance */ - Trial.prototype.webAccessUris = $util.emptyObject; + Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { + get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Trial instance using the specified properties. + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ITrial=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Trial} Trial instance + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance */ - Trial.create = function create(properties) { - return new Trial(properties); + BatchReadFeatureValuesRequest.create = function create(properties) { + return new BatchReadFeatureValuesRequest(properties); }; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ITrial} message Trial message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Trial.encode = function encode(message, writer) { + BatchReadFeatureValuesRequest.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.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.aiplatform.v1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) - $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.measurements != null && message.measurements.length) - for (var i = 0; i < message.measurements.length; ++i) - $root.google.cloud.aiplatform.v1.Measurement.encode(message.measurements[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featurestore); + if (message.csvReadInstances != null && Object.hasOwnProperty.call(message, "csvReadInstances")) + $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvReadInstances, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + $root.google.cloud.aiplatform.v1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigqueryReadInstances != null && Object.hasOwnProperty.call(message, "bigqueryReadInstances")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigqueryReadInstances, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.entityTypeSpecs != null && message.entityTypeSpecs.length) + for (var i = 0; i < message.entityTypeSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.encode(message.entityTypeSpecs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.passThroughFields != null && message.passThroughFields.length) + for (var i = 0; i < message.passThroughFields.length; ++i) + $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.encode(message.passThroughFields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); - if (message.infeasibleReason != null && Object.hasOwnProperty.call(message, "infeasibleReason")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.infeasibleReason); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.customJob); - if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) - for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.ITrial} message Trial message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Trial.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Trial} Trial + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Trial.decode = function decode(reader, length) { + BatchReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Trial(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.id = reader.string(); - break; - } case 3: { - message.state = reader.int32(); - break; - } - case 4: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.aiplatform.v1.Trial.Parameter.decode(reader, reader.uint32())); + message.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); break; } case 5: { - message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); break; } - case 6: { - if (!(message.measurements && message.measurements.length)) - message.measurements = []; - message.measurements.push($root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32())); + case 1: { + message.featurestore = reader.string(); break; } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 4: { + message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.decode(reader, reader.uint32()); break; } case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.clientId = reader.string(); + if (!(message.passThroughFields && message.passThroughFields.length)) + message.passThroughFields = []; + message.passThroughFields.push($root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.decode(reader, reader.uint32())); break; } - case 10: { - message.infeasibleReason = reader.string(); + case 7: { + if (!(message.entityTypeSpecs && message.entityTypeSpecs.length)) + message.entityTypeSpecs = []; + message.entityTypeSpecs.push($root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.decode(reader, reader.uint32())); break; } case 11: { - message.customJob = reader.string(); - break; - } - case 12: { - if (message.webAccessUris === $util.emptyObject) - message.webAccessUris = {}; - 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.webAccessUris[key] = value; + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -69477,71 +70049,75 @@ }; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Trial} Trial + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Trial.decodeDelimited = function decodeDelimited(reader) { + BatchReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Trial message. + * Verifies a BatchReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Trial.verify = function verify(message) { + BatchReadFeatureValuesRequest.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.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + var properties = {}; + if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { + properties.readOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvReadInstances); + if (error) + return "csvReadInstances." + error; } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Trial.Parameter.verify(message.parameters[i]); + } + if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { + if (properties.readOption === 1) + return "readOption: multiple values"; + properties.readOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigqueryReadInstances); if (error) - return "parameters." + error; + return "bigqueryReadInstances." + error; } } - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { - var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + if (!$util.isString(message.featurestore)) + return "featurestore: string expected"; + if (message.destination != null && message.hasOwnProperty("destination")) { + var error = $root.google.cloud.aiplatform.v1.FeatureValueDestination.verify(message.destination); if (error) - return "finalMeasurement." + error; + return "destination." + error; } - if (message.measurements != null && message.hasOwnProperty("measurements")) { - if (!Array.isArray(message.measurements)) - return "measurements: array expected"; - for (var i = 0; i < message.measurements.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.measurements[i]); + if (message.passThroughFields != null && message.hasOwnProperty("passThroughFields")) { + if (!Array.isArray(message.passThroughFields)) + return "passThroughFields: array expected"; + for (var i = 0; i < message.passThroughFields.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify(message.passThroughFields[i]); if (error) - return "measurements." + error; + return "passThroughFields." + error; + } + } + if (message.entityTypeSpecs != null && message.hasOwnProperty("entityTypeSpecs")) { + if (!Array.isArray(message.entityTypeSpecs)) + return "entityTypeSpecs: array expected"; + for (var i = 0; i < message.entityTypeSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify(message.entityTypeSpecs[i]); + if (error) + return "entityTypeSpecs." + error; } } if (message.startTime != null && message.hasOwnProperty("startTime")) { @@ -69549,242 +70125,161 @@ if (error) return "startTime." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) - if (!$util.isString(message.infeasibleReason)) - return "infeasibleReason: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) - if (!$util.isString(message.customJob)) - return "customJob: string expected"; - if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { - if (!$util.isObject(message.webAccessUris)) - return "webAccessUris: object expected"; - var key = Object.keys(message.webAccessUris); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webAccessUris[key[i]])) - return "webAccessUris: string{k:string} expected"; - } return null; }; /** - * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Trial} Trial + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest */ - Trial.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Trial) + BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.Trial(); - if (object.name != null) - message.name = String(object.name); - if (object.id != null) - message.id = String(object.id); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "REQUESTED": - case 1: - message.state = 1; - break; - case "ACTIVE": - case 2: - message.state = 2; - break; - case "STOPPING": - case 3: - message.state = 3; - break; - case "SUCCEEDED": - case 4: - message.state = 4; - break; - case "INFEASIBLE": - case 5: - message.state = 5; - break; + var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest(); + if (object.csvReadInstances != null) { + if (typeof object.csvReadInstances !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.csvReadInstances: object expected"); + message.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvReadInstances); } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.aiplatform.v1.Trial.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.parameters: object expected"); - message.parameters[i] = $root.google.cloud.aiplatform.v1.Trial.Parameter.fromObject(object.parameters[i]); - } + if (object.bigqueryReadInstances != null) { + if (typeof object.bigqueryReadInstances !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.bigqueryReadInstances: object expected"); + message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigqueryReadInstances); } - if (object.finalMeasurement != null) { - if (typeof object.finalMeasurement !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.finalMeasurement: object expected"); - message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + if (object.featurestore != null) + message.featurestore = String(object.featurestore); + if (object.destination != null) { + if (typeof object.destination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.destination: object expected"); + message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.fromObject(object.destination); } - if (object.measurements) { - if (!Array.isArray(object.measurements)) - throw TypeError(".google.cloud.aiplatform.v1.Trial.measurements: array expected"); - message.measurements = []; - for (var i = 0; i < object.measurements.length; ++i) { - if (typeof object.measurements[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.measurements: object expected"); - message.measurements[i] = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.measurements[i]); + if (object.passThroughFields) { + if (!Array.isArray(object.passThroughFields)) + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.passThroughFields: array expected"); + message.passThroughFields = []; + for (var i = 0; i < object.passThroughFields.length; ++i) { + if (typeof object.passThroughFields[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.passThroughFields: object expected"); + message.passThroughFields[i] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.fromObject(object.passThroughFields[i]); + } + } + if (object.entityTypeSpecs) { + if (!Array.isArray(object.entityTypeSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.entityTypeSpecs: array expected"); + message.entityTypeSpecs = []; + for (var i = 0; i < object.entityTypeSpecs.length; ++i) { + if (typeof object.entityTypeSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.entityTypeSpecs: object expected"); + message.entityTypeSpecs[i] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.fromObject(object.entityTypeSpecs[i]); } } if (object.startTime != null) { if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.startTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.startTime: object expected"); message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.clientId != null) - message.clientId = String(object.clientId); - if (object.infeasibleReason != null) - message.infeasibleReason = String(object.infeasibleReason); - if (object.customJob != null) - message.customJob = String(object.customJob); - if (object.webAccessUris) { - if (typeof object.webAccessUris !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.webAccessUris: object expected"); - message.webAccessUris = {}; - for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) - message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); - } return message; }; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.Trial} message Trial + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Trial.toObject = function toObject(message, options) { + BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.parameters = []; - object.measurements = []; + object.entityTypeSpecs = []; + object.passThroughFields = []; } - if (options.objects || options.defaults) - object.webAccessUris = {}; if (options.defaults) { - object.name = ""; - object.id = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.finalMeasurement = null; + object.featurestore = ""; + object.destination = null; object.startTime = null; - object.endTime = null; - object.clientId = ""; - object.infeasibleReason = ""; - object.customJob = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Trial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Trial.State[message.state] : message.state; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.aiplatform.v1.Trial.Parameter.toObject(message.parameters[j], options); + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = message.featurestore; + if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { + object.csvReadInstances = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvReadInstances, options); + if (options.oneofs) + object.readOption = "csvReadInstances"; } - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) - object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); - if (message.measurements && message.measurements.length) { - object.measurements = []; - for (var j = 0; j < message.measurements.length; ++j) - object.measurements[j] = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.measurements[j], options); + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.toObject(message.destination, options); + if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { + object.bigqueryReadInstances = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigqueryReadInstances, options); + if (options.oneofs) + object.readOption = "bigqueryReadInstances"; + } + if (message.entityTypeSpecs && message.entityTypeSpecs.length) { + object.entityTypeSpecs = []; + for (var j = 0; j < message.entityTypeSpecs.length; ++j) + object.entityTypeSpecs[j] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.toObject(message.entityTypeSpecs[j], options); + } + if (message.passThroughFields && message.passThroughFields.length) { + object.passThroughFields = []; + for (var j = 0; j < message.passThroughFields.length; ++j) + object.passThroughFields[j] = $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.toObject(message.passThroughFields[j], options); } if (message.startTime != null && message.hasOwnProperty("startTime")) object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) - object.infeasibleReason = message.infeasibleReason; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = message.customJob; - var keys2; - if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { - object.webAccessUris = {}; - for (var j = 0; j < keys2.length; ++j) - object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; - } return object; }; /** - * Converts this Trial to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - Trial.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Trial + * Gets the default type url for BatchReadFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Trial + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Trial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchReadFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Trial"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest"; }; - Trial.Parameter = (function() { + BatchReadFeatureValuesRequest.PassThroughField = (function() { /** - * Properties of a Parameter. - * @memberof google.cloud.aiplatform.v1.Trial - * @interface IParameter - * @property {string|null} [parameterId] Parameter parameterId - * @property {google.protobuf.IValue|null} [value] Parameter value + * Properties of a PassThroughField. + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @interface IPassThroughField + * @property {string|null} [fieldName] PassThroughField fieldName */ /** - * Constructs a new Parameter. - * @memberof google.cloud.aiplatform.v1.Trial - * @classdesc Represents a Parameter. - * @implements IParameter + * Constructs a new PassThroughField. + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @classdesc Represents a PassThroughField. + * @implements IPassThroughField * @constructor - * @param {google.cloud.aiplatform.v1.Trial.IParameter=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set */ - function Parameter(properties) { + function PassThroughField(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69792,89 +70287,75 @@ } /** - * Parameter parameterId. - * @member {string} parameterId - * @memberof google.cloud.aiplatform.v1.Trial.Parameter - * @instance - */ - Parameter.prototype.parameterId = ""; - - /** - * Parameter value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * PassThroughField fieldName. + * @member {string} fieldName + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @instance */ - Parameter.prototype.value = null; + PassThroughField.prototype.fieldName = ""; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new PassThroughField instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static - * @param {google.cloud.aiplatform.v1.Trial.IParameter=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter instance + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField instance */ - Parameter.create = function create(properties) { - return new Parameter(properties); + PassThroughField.create = function create(properties) { + return new PassThroughField(properties); }; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static - * @param {google.cloud.aiplatform.v1.Trial.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Parameter.encode = function encode(message, writer) { + PassThroughField.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); return writer; }; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static - * @param {google.cloud.aiplatform.v1.Trial.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { + PassThroughField.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a PassThroughField message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Parameter.decode = function decode(reader, length) { + PassThroughField.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Trial.Parameter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parameterId = reader.string(); - break; - } - case 2: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.fieldName = reader.string(); break; } default: @@ -69886,418 +70367,408 @@ }; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Parameter.decodeDelimited = function decodeDelimited(reader) { + PassThroughField.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Parameter message. + * Verifies a PassThroughField message. * @function verify - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Parameter.verify = function verify(message) { + PassThroughField.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; return null; }; /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Trial.Parameter) + PassThroughField.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField) return object; - var message = new $root.google.cloud.aiplatform.v1.Trial.Parameter(); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Trial.Parameter.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } + var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField(); + if (object.fieldName != null) + message.fieldName = String(object.fieldName); return message; }; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static - * @param {google.cloud.aiplatform.v1.Trial.Parameter} message Parameter + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField} message PassThroughField * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Parameter.toObject = function toObject(message, options) { + PassThroughField.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parameterId = ""; - object.value = null; - } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (options.defaults) + object.fieldName = ""; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; return object; }; /** - * Converts this Parameter to JSON. + * Converts this PassThroughField to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @instance * @returns {Object.} JSON object */ - Parameter.prototype.toJSON = function toJSON() { + PassThroughField.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Parameter + * Gets the default type url for PassThroughField * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PassThroughField.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Trial.Parameter"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.PassThroughField"; }; - return Parameter; - })(); - - /** - * State enum. - * @name google.cloud.aiplatform.v1.Trial.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} REQUESTED=1 REQUESTED value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} STOPPING=3 STOPPING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} INFEASIBLE=5 INFEASIBLE value - */ - Trial.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "REQUESTED"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "STOPPING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "INFEASIBLE"] = 5; - return values; + return PassThroughField; })(); - return Trial; - })(); + BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { - v1.TrialContext = (function() { + /** + * Properties of an EntityTypeSpec. + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @interface IEntityTypeSpec + * @property {string|null} [entityTypeId] EntityTypeSpec entityTypeId + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] EntityTypeSpec featureSelector + * @property {Array.|null} [settings] EntityTypeSpec settings + */ - /** - * Properties of a TrialContext. - * @memberof google.cloud.aiplatform.v1 - * @interface ITrialContext - * @property {string|null} [description] TrialContext description - * @property {Array.|null} [parameters] TrialContext parameters - */ + /** + * Constructs a new EntityTypeSpec. + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest + * @classdesc Represents an EntityTypeSpec. + * @implements IEntityTypeSpec + * @constructor + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set + */ + function EntityTypeSpec(properties) { + this.settings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new TrialContext. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TrialContext. - * @implements ITrialContext - * @constructor - * @param {google.cloud.aiplatform.v1.ITrialContext=} [properties] Properties to set - */ - function TrialContext(properties) { - this.parameters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * EntityTypeSpec entityTypeId. + * @member {string} entityTypeId + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.entityTypeId = ""; - /** - * TrialContext description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.TrialContext - * @instance - */ - TrialContext.prototype.description = ""; + /** + * EntityTypeSpec featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.featureSelector = null; - /** - * TrialContext parameters. - * @member {Array.} parameters - * @memberof google.cloud.aiplatform.v1.TrialContext - * @instance - */ - TrialContext.prototype.parameters = $util.emptyArray; + /** + * EntityTypeSpec settings. + * @member {Array.} settings + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.settings = $util.emptyArray; - /** - * Creates a new TrialContext instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {google.cloud.aiplatform.v1.ITrialContext=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext instance - */ - TrialContext.create = function create(properties) { - return new TrialContext(properties); - }; + /** + * Creates a new EntityTypeSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec instance + */ + EntityTypeSpec.create = function create(properties) { + return new EntityTypeSpec(properties); + }; - /** - * Encodes the specified TrialContext message. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {google.cloud.aiplatform.v1.ITrialContext} message TrialContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrialContext.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.aiplatform.v1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityTypeSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityTypeId); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.settings != null && message.settings.length) + for (var i = 0; i < message.settings.length; ++i) + $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified TrialContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {google.cloud.aiplatform.v1.ITrialContext} message TrialContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrialContext.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityTypeSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TrialContext message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrialContext.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrialContext(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.description = reader.string(); - break; - } - case 2: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.aiplatform.v1.Trial.Parameter.decode(reader, reader.uint32())); + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityTypeSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityTypeId = reader.string(); + break; + } + case 2: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.settings && message.settings.length)) + message.settings = []; + message.settings.push($root.google.cloud.aiplatform.v1.DestinationFeatureSetting.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a TrialContext message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrialContext.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityTypeSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TrialContext message. - * @function verify - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrialContext.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Trial.Parameter.verify(message.parameters[i]); + /** + * Verifies an EntityTypeSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityTypeSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + if (!$util.isString(message.entityTypeId)) + return "entityTypeId: string expected"; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); if (error) - return "parameters." + error; + return "featureSelector." + error; } - } - return null; - }; + if (message.settings != null && message.hasOwnProperty("settings")) { + if (!Array.isArray(message.settings)) + return "settings: array expected"; + for (var i = 0; i < message.settings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.verify(message.settings[i]); + if (error) + return "settings." + error; + } + } + return null; + }; - /** - * Creates a TrialContext message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext - */ - TrialContext.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TrialContext) - return object; - var message = new $root.google.cloud.aiplatform.v1.TrialContext(); - if (object.description != null) - message.description = String(object.description); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.aiplatform.v1.TrialContext.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrialContext.parameters: object expected"); - message.parameters[i] = $root.google.cloud.aiplatform.v1.Trial.Parameter.fromObject(object.parameters[i]); + /** + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + */ + EntityTypeSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec(); + if (object.entityTypeId != null) + message.entityTypeId = String(object.entityTypeId); + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); } - } - return message; - }; + if (object.settings) { + if (!Array.isArray(object.settings)) + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: array expected"); + message.settings = []; + for (var i = 0; i < object.settings.length; ++i) { + if (typeof object.settings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: object expected"); + message.settings[i] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.fromObject(object.settings[i]); + } + } + return message; + }; - /** - * Creates a plain object from a TrialContext message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {google.cloud.aiplatform.v1.TrialContext} message TrialContext - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrialContext.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - if (options.defaults) - object.description = ""; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.aiplatform.v1.Trial.Parameter.toObject(message.parameters[j], options); - } - return object; - }; + /** + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec} message EntityTypeSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityTypeSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.settings = []; + if (options.defaults) { + object.entityTypeId = ""; + object.featureSelector = null; + } + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + object.entityTypeId = message.entityTypeId; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.settings && message.settings.length) { + object.settings = []; + for (var j = 0; j < message.settings.length; ++j) + object.settings[j] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.toObject(message.settings[j], options); + } + return object; + }; - /** - * Converts this TrialContext to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.TrialContext - * @instance - * @returns {Object.} JSON object - */ - TrialContext.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this EntityTypeSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + * @returns {Object.} JSON object + */ + EntityTypeSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for TrialContext - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TrialContext - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrialContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrialContext"; - }; + /** + * Gets the default type url for EntityTypeSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EntityTypeSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec"; + }; - return TrialContext; + return EntityTypeSpec; + })(); + + return BatchReadFeatureValuesRequest; })(); - v1.StudySpec = (function() { + v1.ExportFeatureValuesRequest = (function() { /** - * Properties of a StudySpec. + * Properties of an ExportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IStudySpec - * @property {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null} [decayCurveStoppingSpec] StudySpec decayCurveStoppingSpec - * @property {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null} [medianAutomatedStoppingSpec] StudySpec medianAutomatedStoppingSpec - * @property {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null} [convexAutomatedStoppingSpec] StudySpec convexAutomatedStoppingSpec - * @property {Array.|null} [metrics] StudySpec metrics - * @property {Array.|null} [parameters] StudySpec parameters - * @property {google.cloud.aiplatform.v1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm - * @property {google.cloud.aiplatform.v1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise - * @property {google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType + * @interface IExportFeatureValuesRequest + * @property {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null} [snapshotExport] ExportFeatureValuesRequest snapshotExport + * @property {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null} [fullExport] ExportFeatureValuesRequest fullExport + * @property {string|null} [entityType] ExportFeatureValuesRequest entityType + * @property {google.cloud.aiplatform.v1.IFeatureValueDestination|null} [destination] ExportFeatureValuesRequest destination + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] ExportFeatureValuesRequest featureSelector + * @property {Array.|null} [settings] ExportFeatureValuesRequest settings */ /** - * Constructs a new StudySpec. + * Constructs a new ExportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StudySpec. - * @implements IStudySpec + * @classdesc Represents an ExportFeatureValuesRequest. + * @implements IExportFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IStudySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest=} [properties] Properties to set */ - function StudySpec(properties) { - this.metrics = []; - this.parameters = []; + function ExportFeatureValuesRequest(properties) { + this.settings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70305,193 +70776,162 @@ } /** - * StudySpec decayCurveStoppingSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null|undefined} decayCurveStoppingSpec - * @memberof google.cloud.aiplatform.v1.StudySpec - * @instance - */ - StudySpec.prototype.decayCurveStoppingSpec = null; - - /** - * StudySpec medianAutomatedStoppingSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null|undefined} medianAutomatedStoppingSpec - * @memberof google.cloud.aiplatform.v1.StudySpec - * @instance - */ - StudySpec.prototype.medianAutomatedStoppingSpec = null; - - /** - * StudySpec convexAutomatedStoppingSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest snapshotExport. + * @member {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport|null|undefined} snapshotExport + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.convexAutomatedStoppingSpec = null; + ExportFeatureValuesRequest.prototype.snapshotExport = null; /** - * StudySpec metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest fullExport. + * @member {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport|null|undefined} fullExport + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.metrics = $util.emptyArray; + ExportFeatureValuesRequest.prototype.fullExport = null; /** - * StudySpec parameters. - * @member {Array.} parameters - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.parameters = $util.emptyArray; + ExportFeatureValuesRequest.prototype.entityType = ""; /** - * StudySpec algorithm. - * @member {google.cloud.aiplatform.v1.StudySpec.Algorithm} algorithm - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.algorithm = 0; + ExportFeatureValuesRequest.prototype.destination = null; /** - * StudySpec observationNoise. - * @member {google.cloud.aiplatform.v1.StudySpec.ObservationNoise} observationNoise - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.observationNoise = 0; + ExportFeatureValuesRequest.prototype.featureSelector = null; /** - * StudySpec measurementSelectionType. - * @member {google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType} measurementSelectionType - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest settings. + * @member {Array.} settings + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - StudySpec.prototype.measurementSelectionType = 0; + ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * StudySpec automatedStoppingSpec. - * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec - * @memberof google.cloud.aiplatform.v1.StudySpec + * ExportFeatureValuesRequest mode. + * @member {"snapshotExport"|"fullExport"|undefined} mode + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance */ - Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { - get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexAutomatedStoppingSpec"]), + Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { + get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IStudySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec instance + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance */ - StudySpec.create = function create(properties) { - return new StudySpec(properties); + ExportFeatureValuesRequest.create = function create(properties) { + return new ExportFeatureValuesRequest(properties); }; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IStudySpec} message StudySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StudySpec.encode = function encode(message, writer) { + ExportFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.encode(message.metrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.algorithm); - if (message.decayCurveStoppingSpec != null && Object.hasOwnProperty.call(message, "decayCurveStoppingSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.encode(message.decayCurveStoppingSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.medianAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "medianAutomatedStoppingSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.encode(message.medianAutomatedStoppingSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.observationNoise != null && Object.hasOwnProperty.call(message, "observationNoise")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.observationNoise); - if (message.measurementSelectionType != null && Object.hasOwnProperty.call(message, "measurementSelectionType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.measurementSelectionType); - if (message.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.snapshotExport != null && Object.hasOwnProperty.call(message, "snapshotExport")) + $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.encode(message.snapshotExport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + $root.google.cloud.aiplatform.v1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.settings != null && message.settings.length) + for (var i = 0; i < message.settings.length; ++i) + $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.fullExport != null && Object.hasOwnProperty.call(message, "fullExport")) + $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.encode(message.fullExport, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.IStudySpec} message StudySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StudySpec.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StudySpec.decode = function decode(reader, length) { + ExportFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: { - message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.decode(reader, reader.uint32()); - break; - } - case 5: { - message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.decode(reader, reader.uint32()); + case 3: { + message.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.decode(reader, reader.uint32()); break; } - case 9: { - message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.decode(reader, reader.uint32()); + case 7: { + message.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.decode(reader, reader.uint32()); break; } case 1: { - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.decode(reader, reader.uint32())); + message.entityType = reader.string(); break; } - case 2: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.decode(reader, reader.uint32())); + case 4: { + message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.decode(reader, reader.uint32()); break; } - case 3: { - message.algorithm = reader.int32(); + case 5: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); break; } case 6: { - message.observationNoise = reader.int32(); - break; - } - case 7: { - message.measurementSelectionType = reader.int32(); + if (!(message.settings && message.settings.length)) + message.settings = []; + message.settings.push($root.google.cloud.aiplatform.v1.DestinationFeatureSetting.decode(reader, reader.uint32())); break; } default: @@ -70503,321 +70943,212 @@ }; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StudySpec.decodeDelimited = function decodeDelimited(reader) { + ExportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StudySpec message. + * Verifies an ExportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StudySpec.verify = function verify(message) { + ExportFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { - properties.automatedStoppingSpec = 1; + if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { + properties.mode = 1; { - var error = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify(message.decayCurveStoppingSpec); + var error = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify(message.snapshotExport); if (error) - return "decayCurveStoppingSpec." + error; + return "snapshotExport." + error; } } - if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { - if (properties.automatedStoppingSpec === 1) - return "automatedStoppingSpec: multiple values"; - properties.automatedStoppingSpec = 1; + if (message.fullExport != null && message.hasOwnProperty("fullExport")) { + if (properties.mode === 1) + return "mode: multiple values"; + properties.mode = 1; { - var error = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify(message.medianAutomatedStoppingSpec); + var error = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify(message.fullExport); if (error) - return "medianAutomatedStoppingSpec." + error; + return "fullExport." + error; } } - if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { - if (properties.automatedStoppingSpec === 1) - return "automatedStoppingSpec: multiple values"; - properties.automatedStoppingSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify(message.convexAutomatedStoppingSpec); - if (error) - return "convexAutomatedStoppingSpec." + error; - } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.destination != null && message.hasOwnProperty("destination")) { + var error = $root.google.cloud.aiplatform.v1.FeatureValueDestination.verify(message.destination); + if (error) + return "destination." + error; } - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify(message.parameters[i]); + if (message.settings != null && message.hasOwnProperty("settings")) { + if (!Array.isArray(message.settings)) + return "settings: array expected"; + for (var i = 0; i < message.settings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.verify(message.settings[i]); if (error) - return "parameters." + error; + return "settings." + error; } } - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - switch (message.algorithm) { - default: - return "algorithm: enum value expected"; - case 0: - case 2: - case 3: - break; - } - if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) - switch (message.observationNoise) { - default: - return "observationNoise: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) - switch (message.measurementSelectionType) { - default: - return "measurementSelectionType: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; /** - * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} ExportFeatureValuesRequest */ - StudySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec) + ExportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec(); - if (object.decayCurveStoppingSpec != null) { - if (typeof object.decayCurveStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.decayCurveStoppingSpec: object expected"); - message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.fromObject(object.decayCurveStoppingSpec); - } - if (object.medianAutomatedStoppingSpec != null) { - if (typeof object.medianAutomatedStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.medianAutomatedStoppingSpec: object expected"); - message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.fromObject(object.medianAutomatedStoppingSpec); - } - if (object.convexAutomatedStoppingSpec != null) { - if (typeof object.convexAutomatedStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.convexAutomatedStoppingSpec: object expected"); - message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.fromObject(object.convexAutomatedStoppingSpec); - } - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.fromObject(object.metrics[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest(); + if (object.snapshotExport != null) { + if (typeof object.snapshotExport !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.snapshotExport: object expected"); + message.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.fromObject(object.snapshotExport); } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.parameters: object expected"); - message.parameters[i] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.fromObject(object.parameters[i]); - } + if (object.fullExport != null) { + if (typeof object.fullExport !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.fullExport: object expected"); + message.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.fromObject(object.fullExport); } - switch (object.algorithm) { - default: - if (typeof object.algorithm === "number") { - message.algorithm = object.algorithm; - break; - } - break; - case "ALGORITHM_UNSPECIFIED": - case 0: - message.algorithm = 0; - break; - case "GRID_SEARCH": - case 2: - message.algorithm = 2; - break; - case "RANDOM_SEARCH": - case 3: - message.algorithm = 3; - break; + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.destination != null) { + if (typeof object.destination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.destination: object expected"); + message.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.fromObject(object.destination); } - switch (object.observationNoise) { - default: - if (typeof object.observationNoise === "number") { - message.observationNoise = object.observationNoise; - break; - } - break; - case "OBSERVATION_NOISE_UNSPECIFIED": - case 0: - message.observationNoise = 0; - break; - case "LOW": - case 1: - message.observationNoise = 1; - break; - case "HIGH": - case 2: - message.observationNoise = 2; - break; + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); } - switch (object.measurementSelectionType) { - default: - if (typeof object.measurementSelectionType === "number") { - message.measurementSelectionType = object.measurementSelectionType; - break; + if (object.settings) { + if (!Array.isArray(object.settings)) + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.settings: array expected"); + message.settings = []; + for (var i = 0; i < object.settings.length; ++i) { + if (typeof object.settings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.settings: object expected"); + message.settings[i] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.fromObject(object.settings[i]); } - break; - case "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED": - case 0: - message.measurementSelectionType = 0; - break; - case "LAST_MEASUREMENT": - case 1: - message.measurementSelectionType = 1; - break; - case "BEST_MEASUREMENT": - case 2: - message.measurementSelectionType = 2; - break; } return message; }; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1.StudySpec} message StudySpec + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StudySpec.toObject = function toObject(message, options) { + ExportFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.metrics = []; - object.parameters = []; - } + if (options.arrays || options.defaults) + object.settings = []; if (options.defaults) { - object.algorithm = options.enums === String ? "ALGORITHM_UNSPECIFIED" : 0; - object.observationNoise = options.enums === String ? "OBSERVATION_NOISE_UNSPECIFIED" : 0; - object.measurementSelectionType = options.enums === String ? "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED" : 0; - } - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.toObject(message.metrics[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.toObject(message.parameters[j], options); + object.entityType = ""; + object.destination = null; + object.featureSelector = null; } - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - object.algorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.Algorithm[message.algorithm] === undefined ? message.algorithm : $root.google.cloud.aiplatform.v1.StudySpec.Algorithm[message.algorithm] : message.algorithm; - if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { - object.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.toObject(message.decayCurveStoppingSpec, options); + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { + object.snapshotExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.toObject(message.snapshotExport, options); if (options.oneofs) - object.automatedStoppingSpec = "decayCurveStoppingSpec"; + object.mode = "snapshotExport"; } - if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { - object.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.toObject(message.medianAutomatedStoppingSpec, options); - if (options.oneofs) - object.automatedStoppingSpec = "medianAutomatedStoppingSpec"; + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = $root.google.cloud.aiplatform.v1.FeatureValueDestination.toObject(message.destination, options); + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.settings && message.settings.length) { + object.settings = []; + for (var j = 0; j < message.settings.length; ++j) + object.settings[j] = $root.google.cloud.aiplatform.v1.DestinationFeatureSetting.toObject(message.settings[j], options); } - if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) - object.observationNoise = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.ObservationNoise[message.observationNoise] === undefined ? message.observationNoise : $root.google.cloud.aiplatform.v1.StudySpec.ObservationNoise[message.observationNoise] : message.observationNoise; - if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) - object.measurementSelectionType = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] === undefined ? message.measurementSelectionType : $root.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] : message.measurementSelectionType; - if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { - object.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.toObject(message.convexAutomatedStoppingSpec, options); + if (message.fullExport != null && message.hasOwnProperty("fullExport")) { + object.fullExport = $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.toObject(message.fullExport, options); if (options.oneofs) - object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; + object.mode = "fullExport"; } return object; }; /** - * Converts this StudySpec to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - StudySpec.prototype.toJSON = function toJSON() { + ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StudySpec + * Gets the default type url for ExportFeatureValuesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StudySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest"; }; - StudySpec.MetricSpec = (function() { + ExportFeatureValuesRequest.SnapshotExport = (function() { /** - * Properties of a MetricSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @interface IMetricSpec - * @property {string|null} [metricId] MetricSpec metricId - * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal - * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig + * Properties of a SnapshotExport. + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @interface ISnapshotExport + * @property {google.protobuf.ITimestamp|null} [snapshotTime] SnapshotExport snapshotTime + * @property {google.protobuf.ITimestamp|null} [startTime] SnapshotExport startTime */ /** - * Constructs a new MetricSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @classdesc Represents a MetricSpec. - * @implements IMetricSpec + * Constructs a new SnapshotExport. + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @classdesc Represents a SnapshotExport. + * @implements ISnapshotExport * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set */ - function MetricSpec(properties) { + function SnapshotExport(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70825,117 +71156,89 @@ } /** - * MetricSpec metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * SnapshotExport snapshotTime. + * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @instance */ - MetricSpec.prototype.metricId = ""; + SnapshotExport.prototype.snapshotTime = null; /** - * MetricSpec goal. - * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType} goal - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * SnapshotExport startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @instance */ - MetricSpec.prototype.goal = 0; - - /** - * MetricSpec safetyConfig. - * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec - * @instance - */ - MetricSpec.prototype.safetyConfig = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MetricSpec _safetyConfig. - * @member {"safetyConfig"|undefined} _safetyConfig - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec - * @instance - */ - Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { - get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + SnapshotExport.prototype.startTime = null; /** - * Creates a new MetricSpec instance using the specified properties. + * Creates a new SnapshotExport instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec instance + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport instance */ - MetricSpec.create = function create(properties) { - return new MetricSpec(properties); + SnapshotExport.create = function create(properties) { + return new SnapshotExport(properties); }; /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetricSpec.encode = function encode(message, writer) { + SnapshotExport.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); - if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) - $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime")) + $root.google.protobuf.Timestamp.encode(message.snapshotTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotExport.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetricSpec message from the specified reader or buffer. + * Decodes a SnapshotExport message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetricSpec.decode = function decode(reader, length) { + SnapshotExport.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricId = reader.string(); + message.snapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.goal = reader.int32(); - break; - } - case 3: { - message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -70947,442 +71250,142 @@ }; /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetricSpec.decodeDelimited = function decodeDelimited(reader) { + SnapshotExport.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetricSpec message. + * Verifies a SnapshotExport message. * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetricSpec.verify = function verify(message) { + SnapshotExport.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.goal != null && message.hasOwnProperty("goal")) - switch (message.goal) { - default: - return "goal: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { - properties._safetyConfig = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); - if (error) - return "safetyConfig." + error; - } + if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.snapshotTime); + if (error) + return "snapshotTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } return null; }; /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport */ - MetricSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec) + SnapshotExport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport) return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec(); - if (object.metricId != null) - message.metricId = String(object.metricId); - switch (object.goal) { - default: - if (typeof object.goal === "number") { - message.goal = object.goal; - break; - } - break; - case "GOAL_TYPE_UNSPECIFIED": - case 0: - message.goal = 0; - break; - case "MAXIMIZE": - case 1: - message.goal = 1; - break; - case "MINIMIZE": - case 2: - message.goal = 2; - break; + var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport(); + if (object.snapshotTime != null) { + if (typeof object.snapshotTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.snapshotTime: object expected"); + message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime); } - if (object.safetyConfig != null) { - if (typeof object.safetyConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.MetricSpec.safetyConfig: object expected"); - message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } return message; }; /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec} message MetricSpec + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport} message SnapshotExport * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetricSpec.toObject = function toObject(message, options) { + SnapshotExport.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.metricId = ""; - object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.goal != null && message.hasOwnProperty("goal")) - object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; - if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { - object.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); - if (options.oneofs) - object._safetyConfig = "safetyConfig"; + object.snapshotTime = null; + object.startTime = null; } + if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) + object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); return object; }; /** - * Converts this MetricSpec to JSON. + * Converts this SnapshotExport to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @instance * @returns {Object.} JSON object */ - MetricSpec.prototype.toJSON = function toJSON() { + SnapshotExport.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetricSpec + * Gets the default type url for SnapshotExport * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SnapshotExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport"; }; - MetricSpec.SafetyMetricConfig = (function() { - - /** - * Properties of a SafetyMetricConfig. - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec - * @interface ISafetyMetricConfig - * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold - * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction - */ - - /** - * Constructs a new SafetyMetricConfig. - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec - * @classdesc Represents a SafetyMetricConfig. - * @implements ISafetyMetricConfig - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set - */ - function SafetyMetricConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SafetyMetricConfig safetyThreshold. - * @member {number} safetyThreshold - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @instance - */ - SafetyMetricConfig.prototype.safetyThreshold = 0; - - /** - * SafetyMetricConfig desiredMinSafeTrialsFraction. - * @member {number|null|undefined} desiredMinSafeTrialsFraction - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @instance - */ - SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * SafetyMetricConfig _desiredMinSafeTrialsFraction. - * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @instance - */ - Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { - get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new SafetyMetricConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance - */ - SafetyMetricConfig.create = function create(properties) { - return new SafetyMetricConfig(properties); - }; - - /** - * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SafetyMetricConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); - if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); - return writer; - }; - - /** - * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SafetyMetricConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SafetyMetricConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.safetyThreshold = reader.double(); - break; - } - case 2: { - message.desiredMinSafeTrialsFraction = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SafetyMetricConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SafetyMetricConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) - if (typeof message.safetyThreshold !== "number") - return "safetyThreshold: number expected"; - if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { - properties._desiredMinSafeTrialsFraction = 1; - if (typeof message.desiredMinSafeTrialsFraction !== "number") - return "desiredMinSafeTrialsFraction: number expected"; - } - return null; - }; - - /** - * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig - */ - SafetyMetricConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); - if (object.safetyThreshold != null) - message.safetyThreshold = Number(object.safetyThreshold); - if (object.desiredMinSafeTrialsFraction != null) - message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); - return message; - }; - - /** - * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SafetyMetricConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.safetyThreshold = 0; - if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) - object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; - if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { - object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; - if (options.oneofs) - object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; - } - return object; - }; - - /** - * Converts this SafetyMetricConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @instance - * @returns {Object.} JSON object - */ - SafetyMetricConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SafetyMetricConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"; - }; - - return SafetyMetricConfig; - })(); - - /** - * GoalType enum. - * @name google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType - * @enum {number} - * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value - * @property {number} MAXIMIZE=1 MAXIMIZE value - * @property {number} MINIMIZE=2 MINIMIZE value - */ - MetricSpec.GoalType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MAXIMIZE"] = 1; - values[valuesById[2] = "MINIMIZE"] = 2; - return values; - })(); - - return MetricSpec; + return SnapshotExport; })(); - StudySpec.ParameterSpec = (function() { + ExportFeatureValuesRequest.FullExport = (function() { /** - * Properties of a ParameterSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @interface IParameterSpec - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec|null} [doubleValueSpec] ParameterSpec doubleValueSpec - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec|null} [integerValueSpec] ParameterSpec integerValueSpec - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec|null} [categoricalValueSpec] ParameterSpec categoricalValueSpec - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec|null} [discreteValueSpec] ParameterSpec discreteValueSpec - * @property {string|null} [parameterId] ParameterSpec parameterId - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType|null} [scaleType] ParameterSpec scaleType - * @property {Array.|null} [conditionalParameterSpecs] ParameterSpec conditionalParameterSpecs + * Properties of a FullExport. + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @interface IFullExport + * @property {google.protobuf.ITimestamp|null} [startTime] FullExport startTime + * @property {google.protobuf.ITimestamp|null} [endTime] FullExport endTime */ /** - * Constructs a new ParameterSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @classdesc Represents a ParameterSpec. - * @implements IParameterSpec + * Constructs a new FullExport. + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest + * @classdesc Represents a FullExport. + * @implements IFullExport * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set */ - function ParameterSpec(properties) { - this.conditionalParameterSpecs = []; + function FullExport(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71390,176 +71393,89 @@ } /** - * ParameterSpec doubleValueSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec|null|undefined} doubleValueSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.doubleValueSpec = null; - - /** - * ParameterSpec integerValueSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec|null|undefined} integerValueSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.integerValueSpec = null; - - /** - * ParameterSpec categoricalValueSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec|null|undefined} categoricalValueSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.categoricalValueSpec = null; - - /** - * ParameterSpec discreteValueSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec|null|undefined} discreteValueSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.discreteValueSpec = null; - - /** - * ParameterSpec parameterId. - * @member {string} parameterId - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.parameterId = ""; - - /** - * ParameterSpec scaleType. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType} scaleType - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.scaleType = 0; - - /** - * ParameterSpec conditionalParameterSpecs. - * @member {Array.} conditionalParameterSpecs - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * FullExport startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @instance */ - ParameterSpec.prototype.conditionalParameterSpecs = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + FullExport.prototype.startTime = null; /** - * ParameterSpec parameterValueSpec. - * @member {"doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"|undefined} parameterValueSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * FullExport endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @instance */ - Object.defineProperty(ParameterSpec.prototype, "parameterValueSpec", { - get: $util.oneOfGetter($oneOfFields = ["doubleValueSpec", "integerValueSpec", "categoricalValueSpec", "discreteValueSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + FullExport.prototype.endTime = null; /** - * Creates a new ParameterSpec instance using the specified properties. + * Creates a new FullExport instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec instance + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport instance */ - ParameterSpec.create = function create(properties) { - return new ParameterSpec(properties); + FullExport.create = function create(properties) { + return new FullExport(properties); }; /** - * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify|verify} messages. + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ParameterSpec.encode = function encode(message, writer) { + FullExport.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); - if (message.doubleValueSpec != null && Object.hasOwnProperty.call(message, "doubleValueSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.encode(message.doubleValueSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.integerValueSpec != null && Object.hasOwnProperty.call(message, "integerValueSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.encode(message.integerValueSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.categoricalValueSpec != null && Object.hasOwnProperty.call(message, "categoricalValueSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.encode(message.categoricalValueSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.discreteValueSpec != null && Object.hasOwnProperty.call(message, "discreteValueSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.encode(message.discreteValueSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.scaleType != null && Object.hasOwnProperty.call(message, "scaleType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scaleType); - if (message.conditionalParameterSpecs != null && message.conditionalParameterSpecs.length) - for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.encode(message.conditionalParameterSpecs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify|verify} messages. + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { + FullExport.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ParameterSpec message from the specified reader or buffer. + * Decodes a FullExport message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ParameterSpec.decode = function decode(reader, length) { + FullExport.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 2: { - message.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.decode(reader, reader.uint32()); - break; - } - case 3: { - message.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.decode(reader, reader.uint32()); - break; - } - case 4: { - message.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.decode(reader, reader.uint32()); - break; - } - case 5: { - message.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 1: { - message.parameterId = reader.string(); - break; - } - case 6: { - message.scaleType = reader.int32(); - break; - } - case 10: { - if (!(message.conditionalParameterSpecs && message.conditionalParameterSpecs.length)) - message.conditionalParameterSpecs = []; - message.conditionalParameterSpecs.push($root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.decode(reader, reader.uint32())); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -71571,1478 +71487,15142 @@ }; /** - * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * Decodes a FullExport message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ParameterSpec.decodeDelimited = function decodeDelimited(reader) { + FullExport.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ParameterSpec message. + * Verifies a FullExport message. * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ParameterSpec.verify = function verify(message) { + FullExport.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify(message.doubleValueSpec); - if (error) - return "doubleValueSpec." + error; - } - } - if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify(message.integerValueSpec); - if (error) - return "integerValueSpec." + error; - } - } - if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify(message.categoricalValueSpec); - if (error) - return "categoricalValueSpec." + error; - } - } - if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify(message.discreteValueSpec); - if (error) - return "discreteValueSpec." + error; - } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - if (message.scaleType != null && message.hasOwnProperty("scaleType")) - switch (message.scaleType) { - default: - return "scaleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.conditionalParameterSpecs != null && message.hasOwnProperty("conditionalParameterSpecs")) { - if (!Array.isArray(message.conditionalParameterSpecs)) - return "conditionalParameterSpecs: array expected"; - for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify(message.conditionalParameterSpecs[i]); - if (error) - return "conditionalParameterSpecs." + error; - } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} FullExport */ - ParameterSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec) + FullExport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport) return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec(); - if (object.doubleValueSpec != null) { - if (typeof object.doubleValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.doubleValueSpec: object expected"); - message.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.fromObject(object.doubleValueSpec); - } - if (object.integerValueSpec != null) { - if (typeof object.integerValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.integerValueSpec: object expected"); - message.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.fromObject(object.integerValueSpec); - } - if (object.categoricalValueSpec != null) { - if (typeof object.categoricalValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.categoricalValueSpec: object expected"); - message.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.fromObject(object.categoricalValueSpec); - } - if (object.discreteValueSpec != null) { - if (typeof object.discreteValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.discreteValueSpec: object expected"); - message.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.fromObject(object.discreteValueSpec); - } - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - switch (object.scaleType) { - default: - if (typeof object.scaleType === "number") { - message.scaleType = object.scaleType; - break; - } - break; - case "SCALE_TYPE_UNSPECIFIED": - case 0: - message.scaleType = 0; - break; - case "UNIT_LINEAR_SCALE": - case 1: - message.scaleType = 1; - break; - case "UNIT_LOG_SCALE": - case 2: - message.scaleType = 2; - break; - case "UNIT_REVERSE_LOG_SCALE": - case 3: - message.scaleType = 3; - break; + var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - if (object.conditionalParameterSpecs) { - if (!Array.isArray(object.conditionalParameterSpecs)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.conditionalParameterSpecs: array expected"); - message.conditionalParameterSpecs = []; - for (var i = 0; i < object.conditionalParameterSpecs.length; ++i) { - if (typeof object.conditionalParameterSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.conditionalParameterSpecs: object expected"); - message.conditionalParameterSpecs[i] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.fromObject(object.conditionalParameterSpecs[i]); - } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. + * Creates a plain object from a FullExport message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} message ParameterSpec + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport} message FullExport * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ParameterSpec.toObject = function toObject(message, options) { + FullExport.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.conditionalParameterSpecs = []; if (options.defaults) { - object.parameterId = ""; - object.scaleType = options.enums === String ? "SCALE_TYPE_UNSPECIFIED" : 0; - } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { - object.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.toObject(message.doubleValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "doubleValueSpec"; - } - if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { - object.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.toObject(message.integerValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "integerValueSpec"; - } - if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { - object.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.toObject(message.categoricalValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "categoricalValueSpec"; - } - if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { - object.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.toObject(message.discreteValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "discreteValueSpec"; - } - if (message.scaleType != null && message.hasOwnProperty("scaleType")) - object.scaleType = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType[message.scaleType] === undefined ? message.scaleType : $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType[message.scaleType] : message.scaleType; - if (message.conditionalParameterSpecs && message.conditionalParameterSpecs.length) { - object.conditionalParameterSpecs = []; - for (var j = 0; j < message.conditionalParameterSpecs.length; ++j) - object.conditionalParameterSpecs[j] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.toObject(message.conditionalParameterSpecs[j], options); + object.endTime = null; + object.startTime = null; } + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); return object; }; /** - * Converts this ParameterSpec to JSON. + * Converts this FullExport to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @instance * @returns {Object.} JSON object */ - ParameterSpec.prototype.toJSON = function toJSON() { + FullExport.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ParameterSpec + * Gets the default type url for FullExport * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ParameterSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FullExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport"; }; - ParameterSpec.DoubleValueSpec = (function() { + return FullExport; + })(); - /** - * Properties of a DoubleValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @interface IDoubleValueSpec - * @property {number|null} [minValue] DoubleValueSpec minValue - * @property {number|null} [maxValue] DoubleValueSpec maxValue - * @property {number|null} [defaultValue] DoubleValueSpec defaultValue - */ + return ExportFeatureValuesRequest; + })(); - /** - * Constructs a new DoubleValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @classdesc Represents a DoubleValueSpec. - * @implements IDoubleValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set - */ - function DoubleValueSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.DestinationFeatureSetting = (function() { - /** - * DoubleValueSpec minValue. - * @member {number} minValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.minValue = 0; + /** + * Properties of a DestinationFeatureSetting. + * @memberof google.cloud.aiplatform.v1 + * @interface IDestinationFeatureSetting + * @property {string|null} [featureId] DestinationFeatureSetting featureId + * @property {string|null} [destinationField] DestinationFeatureSetting destinationField + */ - /** - * DoubleValueSpec maxValue. - * @member {number} maxValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.maxValue = 0; + /** + * Constructs a new DestinationFeatureSetting. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DestinationFeatureSetting. + * @implements IDestinationFeatureSetting + * @constructor + * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting=} [properties] Properties to set + */ + function DestinationFeatureSetting(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]]; + } - /** - * DoubleValueSpec defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.defaultValue = null; + /** + * DestinationFeatureSetting featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @instance + */ + DestinationFeatureSetting.prototype.featureId = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * DestinationFeatureSetting destinationField. + * @member {string} destinationField + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @instance + */ + DestinationFeatureSetting.prototype.destinationField = ""; - /** - * DoubleValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - Object.defineProperty(DoubleValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates a new DestinationFeatureSetting instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting instance + */ + DestinationFeatureSetting.create = function create(properties) { + return new DestinationFeatureSetting(properties); + }; - /** - * Creates a new DoubleValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec instance - */ - DoubleValueSpec.create = function create(properties) { - return new DoubleValueSpec(properties); - }; + /** + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DestinationFeatureSetting.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.destinationField != null && Object.hasOwnProperty.call(message, "destinationField")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationField); + return writer; + }; - /** - * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.minValue); - if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.maxValue); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.defaultValue); - return writer; - }; - - /** - * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DestinationFeatureSetting.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {google.cloud.aiplatform.v1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.minValue = reader.double(); - break; - } - case 2: { - message.maxValue = reader.double(); - break; - } - case 4: { - message.defaultValue = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DestinationFeatureSetting.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DestinationFeatureSetting(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureId = reader.string(); + break; } - return message; - }; - - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DoubleValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DoubleValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (typeof message.minValue !== "number") - return "minValue: number expected"; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (typeof message.maxValue !== "number") - return "maxValue: number expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (typeof message.defaultValue !== "number") - return "defaultValue: number expected"; + case 2: { + message.destinationField = reader.string(); + break; } - return null; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - */ - DoubleValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(); - if (object.minValue != null) - message.minValue = Number(object.minValue); - if (object.maxValue != null) - message.maxValue = Number(object.maxValue); - if (object.defaultValue != null) - message.defaultValue = Number(object.defaultValue); - return message; - }; + /** + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DestinationFeatureSetting.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} message DoubleValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DoubleValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.minValue = 0; - object.maxValue = 0; - } - if (message.minValue != null && message.hasOwnProperty("minValue")) - object.minValue = options.json && !isFinite(message.minValue) ? String(message.minValue) : message.minValue; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - object.maxValue = options.json && !isFinite(message.maxValue) ? String(message.maxValue) : message.maxValue; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; + /** + * Verifies a DestinationFeatureSetting message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DestinationFeatureSetting.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.destinationField != null && message.hasOwnProperty("destinationField")) + if (!$util.isString(message.destinationField)) + return "destinationField: string expected"; + return null; + }; - /** - * Converts this DoubleValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - * @returns {Object.} JSON object - */ - DoubleValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DestinationFeatureSetting} DestinationFeatureSetting + */ + DestinationFeatureSetting.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DestinationFeatureSetting) + return object; + var message = new $root.google.cloud.aiplatform.v1.DestinationFeatureSetting(); + if (object.featureId != null) + message.featureId = String(object.featureId); + if (object.destinationField != null) + message.destinationField = String(object.destinationField); + return message; + }; - /** - * Gets the default type url for DoubleValueSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DoubleValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec"; - }; + /** + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {google.cloud.aiplatform.v1.DestinationFeatureSetting} message DestinationFeatureSetting + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DestinationFeatureSetting.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.featureId = ""; + object.destinationField = ""; + } + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; + if (message.destinationField != null && message.hasOwnProperty("destinationField")) + object.destinationField = message.destinationField; + return object; + }; - return DoubleValueSpec; - })(); + /** + * Converts this DestinationFeatureSetting to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @instance + * @returns {Object.} JSON object + */ + DestinationFeatureSetting.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ParameterSpec.IntegerValueSpec = (function() { + /** + * Gets the default type url for DestinationFeatureSetting + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DestinationFeatureSetting + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DestinationFeatureSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DestinationFeatureSetting"; + }; - /** - * Properties of an IntegerValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @interface IIntegerValueSpec - * @property {number|Long|null} [minValue] IntegerValueSpec minValue - * @property {number|Long|null} [maxValue] IntegerValueSpec maxValue - * @property {number|Long|null} [defaultValue] IntegerValueSpec defaultValue - */ + return DestinationFeatureSetting; + })(); - /** - * Constructs a new IntegerValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @classdesc Represents an IntegerValueSpec. - * @implements IIntegerValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set - */ - function IntegerValueSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.FeatureValueDestination = (function() { - /** - * IntegerValueSpec minValue. - * @member {number|Long} minValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.minValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Properties of a FeatureValueDestination. + * @memberof google.cloud.aiplatform.v1 + * @interface IFeatureValueDestination + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] FeatureValueDestination bigqueryDestination + * @property {google.cloud.aiplatform.v1.ITFRecordDestination|null} [tfrecordDestination] FeatureValueDestination tfrecordDestination + * @property {google.cloud.aiplatform.v1.ICsvDestination|null} [csvDestination] FeatureValueDestination csvDestination + */ - /** - * IntegerValueSpec maxValue. - * @member {number|Long} maxValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.maxValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new FeatureValueDestination. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FeatureValueDestination. + * @implements IFeatureValueDestination + * @constructor + * @param {google.cloud.aiplatform.v1.IFeatureValueDestination=} [properties] Properties to set + */ + function FeatureValueDestination(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]]; + } - /** - * IntegerValueSpec defaultValue. - * @member {number|Long|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.defaultValue = null; + /** + * FeatureValueDestination bigqueryDestination. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @instance + */ + FeatureValueDestination.prototype.bigqueryDestination = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * FeatureValueDestination tfrecordDestination. + * @member {google.cloud.aiplatform.v1.ITFRecordDestination|null|undefined} tfrecordDestination + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @instance + */ + FeatureValueDestination.prototype.tfrecordDestination = null; - /** - * IntegerValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - Object.defineProperty(IntegerValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * FeatureValueDestination csvDestination. + * @member {google.cloud.aiplatform.v1.ICsvDestination|null|undefined} csvDestination + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @instance + */ + FeatureValueDestination.prototype.csvDestination = null; - /** - * Creates a new IntegerValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec instance - */ - IntegerValueSpec.create = function create(properties) { - return new IntegerValueSpec(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntegerValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minValue); - if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxValue); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.defaultValue); - return writer; - }; + /** + * FeatureValueDestination destination. + * @member {"bigqueryDestination"|"tfrecordDestination"|"csvDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @instance + */ + Object.defineProperty(FeatureValueDestination.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntegerValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new FeatureValueDestination instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {google.cloud.aiplatform.v1.IFeatureValueDestination=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination instance + */ + FeatureValueDestination.create = function create(properties) { + return new FeatureValueDestination(properties); + }; - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntegerValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.minValue = reader.int64(); - break; - } - case 2: { - message.maxValue = reader.int64(); - break; - } - case 4: { - message.defaultValue = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {google.cloud.aiplatform.v1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureValueDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tfrecordDestination != null && Object.hasOwnProperty.call(message, "tfrecordDestination")) + $root.google.cloud.aiplatform.v1.TFRecordDestination.encode(message.tfrecordDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.csvDestination != null && Object.hasOwnProperty.call(message, "csvDestination")) + $root.google.cloud.aiplatform.v1.CsvDestination.encode(message.csvDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntegerValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureValueDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {google.cloud.aiplatform.v1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an IntegerValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntegerValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (!$util.isInteger(message.minValue) && !(message.minValue && $util.isInteger(message.minValue.low) && $util.isInteger(message.minValue.high))) - return "minValue: integer|Long expected"; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (!$util.isInteger(message.maxValue) && !(message.maxValue && $util.isInteger(message.maxValue.low) && $util.isInteger(message.maxValue.high))) - return "maxValue: integer|Long expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (!$util.isInteger(message.defaultValue) && !(message.defaultValue && $util.isInteger(message.defaultValue.low) && $util.isInteger(message.defaultValue.high))) - return "defaultValue: integer|Long expected"; + /** + * Decodes a FeatureValueDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureValueDestination.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FeatureValueDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; } - return null; - }; - - /** - * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - */ - IntegerValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(); - if (object.minValue != null) - if ($util.Long) - (message.minValue = $util.Long.fromValue(object.minValue)).unsigned = false; - else if (typeof object.minValue === "string") - message.minValue = parseInt(object.minValue, 10); - else if (typeof object.minValue === "number") - message.minValue = object.minValue; - else if (typeof object.minValue === "object") - message.minValue = new $util.LongBits(object.minValue.low >>> 0, object.minValue.high >>> 0).toNumber(); - if (object.maxValue != null) - if ($util.Long) - (message.maxValue = $util.Long.fromValue(object.maxValue)).unsigned = false; - else if (typeof object.maxValue === "string") - message.maxValue = parseInt(object.maxValue, 10); - else if (typeof object.maxValue === "number") - message.maxValue = object.maxValue; - else if (typeof object.maxValue === "object") - message.maxValue = new $util.LongBits(object.maxValue.low >>> 0, object.maxValue.high >>> 0).toNumber(); - if (object.defaultValue != null) - if ($util.Long) - (message.defaultValue = $util.Long.fromValue(object.defaultValue)).unsigned = false; - else if (typeof object.defaultValue === "string") - message.defaultValue = parseInt(object.defaultValue, 10); - else if (typeof object.defaultValue === "number") - message.defaultValue = object.defaultValue; - else if (typeof object.defaultValue === "object") - message.defaultValue = new $util.LongBits(object.defaultValue.low >>> 0, object.defaultValue.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} message IntegerValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntegerValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxValue = options.longs === String ? "0" : 0; + case 2: { + message.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.decode(reader, reader.uint32()); + break; } - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (typeof message.minValue === "number") - object.minValue = options.longs === String ? String(message.minValue) : message.minValue; - else - object.minValue = options.longs === String ? $util.Long.prototype.toString.call(message.minValue) : options.longs === Number ? new $util.LongBits(message.minValue.low >>> 0, message.minValue.high >>> 0).toNumber() : message.minValue; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (typeof message.maxValue === "number") - object.maxValue = options.longs === String ? String(message.maxValue) : message.maxValue; - else - object.maxValue = options.longs === String ? $util.Long.prototype.toString.call(message.maxValue) : options.longs === Number ? new $util.LongBits(message.maxValue.low >>> 0, message.maxValue.high >>> 0).toNumber() : message.maxValue; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - if (typeof message.defaultValue === "number") - object.defaultValue = options.longs === String ? String(message.defaultValue) : message.defaultValue; - else - object.defaultValue = options.longs === String ? $util.Long.prototype.toString.call(message.defaultValue) : options.longs === Number ? new $util.LongBits(message.defaultValue.low >>> 0, message.defaultValue.high >>> 0).toNumber() : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; + case 3: { + message.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.decode(reader, reader.uint32()); + break; } - return object; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this IntegerValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - * @returns {Object.} JSON object - */ - IntegerValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureValueDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for IntegerValueSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IntegerValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec"; - }; + /** + * Verifies a FeatureValueDestination message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureValueDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.TFRecordDestination.verify(message.tfrecordDestination); + if (error) + return "tfrecordDestination." + error; + } + } + if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.CsvDestination.verify(message.csvDestination); + if (error) + return "csvDestination." + error; + } + } + return null; + }; - return IntegerValueSpec; - })(); + /** + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureValueDestination} FeatureValueDestination + */ + FeatureValueDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureValueDestination) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureValueDestination(); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.tfrecordDestination != null) { + if (typeof object.tfrecordDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.tfrecordDestination: object expected"); + message.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.fromObject(object.tfrecordDestination); + } + if (object.csvDestination != null) { + if (typeof object.csvDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureValueDestination.csvDestination: object expected"); + message.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.fromObject(object.csvDestination); + } + return message; + }; - ParameterSpec.CategoricalValueSpec = (function() { + /** + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {google.cloud.aiplatform.v1.FeatureValueDestination} message FeatureValueDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureValueDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { + object.tfrecordDestination = $root.google.cloud.aiplatform.v1.TFRecordDestination.toObject(message.tfrecordDestination, options); + if (options.oneofs) + object.destination = "tfrecordDestination"; + } + if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { + object.csvDestination = $root.google.cloud.aiplatform.v1.CsvDestination.toObject(message.csvDestination, options); + if (options.oneofs) + object.destination = "csvDestination"; + } + return object; + }; - /** - * Properties of a CategoricalValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @interface ICategoricalValueSpec - * @property {Array.|null} [values] CategoricalValueSpec values - * @property {string|null} [defaultValue] CategoricalValueSpec defaultValue - */ + /** + * Converts this FeatureValueDestination to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @instance + * @returns {Object.} JSON object + */ + FeatureValueDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new CategoricalValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @classdesc Represents a CategoricalValueSpec. - * @implements ICategoricalValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set - */ - function CategoricalValueSpec(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Gets the default type url for FeatureValueDestination + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureValueDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureValueDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureValueDestination"; + }; - /** - * CategoricalValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.values = $util.emptyArray; + return FeatureValueDestination; + })(); - /** - * CategoricalValueSpec defaultValue. - * @member {string|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.defaultValue = null; + v1.ExportFeatureValuesResponse = (function() { - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Properties of an ExportFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IExportFeatureValuesResponse + */ - /** - * CategoricalValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - Object.defineProperty(CategoricalValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Constructs a new ExportFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExportFeatureValuesResponse. + * @implements IExportFeatureValuesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse=} [properties] Properties to set + */ + function ExportFeatureValuesResponse(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 CategoricalValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec instance - */ - CategoricalValueSpec.create = function create(properties) { - return new CategoricalValueSpec(properties); - }; + /** + * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance + */ + ExportFeatureValuesResponse.create = function create(properties) { + return new ExportFeatureValuesResponse(properties); + }; - /** - * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultValue); - return writer; - }; + /** + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFeatureValuesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - case 3: { - message.defaultValue = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFeatureValuesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CategoricalValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - } - return null; - }; + /** + * Verifies an ExportFeatureValuesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFeatureValuesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - */ - CategoricalValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - return message; - }; + /** + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + */ + ExportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse) + return object; + return new $root.google.cloud.aiplatform.v1.ExportFeatureValuesResponse(); + }; - /** - * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} message CategoricalValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; + /** + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFeatureValuesResponse.toObject = function toObject() { + return {}; + }; - /** - * Converts this CategoricalValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ExportFeatureValuesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @instance + * @returns {Object.} JSON object + */ + ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for CategoricalValueSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CategoricalValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec"; - }; + /** + * Gets the default type url for ExportFeatureValuesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesResponse"; + }; - return CategoricalValueSpec; - })(); + return ExportFeatureValuesResponse; + })(); - ParameterSpec.DiscreteValueSpec = (function() { + v1.BatchReadFeatureValuesResponse = (function() { - /** - * Properties of a DiscreteValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @interface IDiscreteValueSpec - * @property {Array.|null} [values] DiscreteValueSpec values - * @property {number|null} [defaultValue] DiscreteValueSpec defaultValue - */ + /** + * Properties of a BatchReadFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchReadFeatureValuesResponse + */ - /** - * Constructs a new DiscreteValueSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @classdesc Represents a DiscreteValueSpec. - * @implements IDiscreteValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set - */ - function DiscreteValueSpec(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new BatchReadFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchReadFeatureValuesResponse. + * @implements IBatchReadFeatureValuesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + */ + function BatchReadFeatureValuesResponse(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]]; + } - /** - * DiscreteValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.values = $util.emptyArray; + /** + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance + */ + BatchReadFeatureValuesResponse.create = function create(properties) { + return new BatchReadFeatureValuesResponse(properties); + }; - /** - * DiscreteValueSpec defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.defaultValue = null; + /** + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchReadFeatureValuesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DiscreteValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - Object.defineProperty(DiscreteValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchReadFeatureValuesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new DiscreteValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec instance - */ - DiscreteValueSpec.create = function create(properties) { - return new DiscreteValueSpec(properties); - }; + /** + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.defaultValue); - return writer; - }; + /** + * Verifies a BatchReadFeatureValuesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchReadFeatureValuesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + */ + BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse) + return object; + return new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse(); + }; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); - break; - } - case 3: { - message.defaultValue = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchReadFeatureValuesResponse.toObject = function toObject() { + return {}; + }; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this BatchReadFeatureValuesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @instance + * @returns {Object.} JSON object + */ + BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a DiscreteValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DiscreteValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (typeof message.defaultValue !== "number") - return "defaultValue: number expected"; - } - return null; - }; + /** + * Gets the default type url for BatchReadFeatureValuesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchReadFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse"; + }; - /** - * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - */ - DiscreteValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); - } - if (object.defaultValue != null) - message.defaultValue = Number(object.defaultValue); - return message; - }; + return BatchReadFeatureValuesResponse; + })(); - /** - * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} message DiscreteValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DiscreteValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; + v1.CreateEntityTypeRequest = (function() { - /** - * Converts this DiscreteValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - * @returns {Object.} JSON object - */ - DiscreteValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a CreateEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateEntityTypeRequest + * @property {string|null} [parent] CreateEntityTypeRequest parent + * @property {google.cloud.aiplatform.v1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {string|null} [entityTypeId] CreateEntityTypeRequest entityTypeId + */ - /** - * Gets the default type url for DiscreteValueSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DiscreteValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec"; - }; + /** + * Constructs a new CreateEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest=} [properties] Properties to set + */ + function CreateEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return DiscreteValueSpec; - })(); + /** + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.parent = ""; - ParameterSpec.ConditionalParameterSpec = (function() { + /** + * CreateEntityTypeRequest entityType. + * @member {google.cloud.aiplatform.v1.IEntityType|null|undefined} entityType + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.entityType = null; - /** - * Properties of a ConditionalParameterSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @interface IConditionalParameterSpec - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null} [parentDiscreteValues] ConditionalParameterSpec parentDiscreteValues - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null} [parentIntValues] ConditionalParameterSpec parentIntValues - * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null} [parentCategoricalValues] ConditionalParameterSpec parentCategoricalValues - * @property {google.cloud.aiplatform.v1.StudySpec.IParameterSpec|null} [parameterSpec] ConditionalParameterSpec parameterSpec - */ + /** + * CreateEntityTypeRequest entityTypeId. + * @member {string} entityTypeId + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.entityTypeId = ""; - /** - * Constructs a new ConditionalParameterSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec - * @classdesc Represents a ConditionalParameterSpec. - * @implements IConditionalParameterSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set - */ - function ConditionalParameterSpec(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 CreateEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + */ + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); + }; + + /** + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeRequest.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityTypeId); + return writer; + }; + + /** + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.entityType = $root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32()); + break; + } + case 3: { + message.entityTypeId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * ConditionalParameterSpec parentDiscreteValues. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null|undefined} parentDiscreteValues - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentDiscreteValues = null; + /** + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ConditionalParameterSpec parentIntValues. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null|undefined} parentIntValues - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentIntValues = null; + /** + * Verifies a CreateEntityTypeRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateEntityTypeRequest.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.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + if (!$util.isString(message.entityTypeId)) + return "entityTypeId: string expected"; + return null; + }; - /** - * ConditionalParameterSpec parentCategoricalValues. - * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null|undefined} parentCategoricalValues - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentCategoricalValues = null; + /** + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeRequest} CreateEntityTypeRequest + */ + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityType); + } + if (object.entityTypeId != null) + message.entityTypeId = String(object.entityTypeId); + return message; + }; - /** - * ConditionalParameterSpec parameterSpec. - * @member {google.cloud.aiplatform.v1.StudySpec.IParameterSpec|null|undefined} parameterSpec - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parameterSpec = null; + /** + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.entityType = null; + object.entityTypeId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityType, options); + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + object.entityTypeId = message.entityTypeId; + return object; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Converts this CreateEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConditionalParameterSpec parentValueCondition. - * @member {"parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"|undefined} parentValueCondition - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - Object.defineProperty(ConditionalParameterSpec.prototype, "parentValueCondition", { - get: $util.oneOfGetter($oneOfFields = ["parentDiscreteValues", "parentIntValues", "parentCategoricalValues"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Gets the default type url for CreateEntityTypeRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateEntityTypeRequest"; + }; - /** - * Creates a new ConditionalParameterSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec instance - */ - ConditionalParameterSpec.create = function create(properties) { - return new ConditionalParameterSpec(properties); - }; + return CreateEntityTypeRequest; + })(); - /** - * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalParameterSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterSpec != null && Object.hasOwnProperty.call(message, "parameterSpec")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.encode(message.parameterSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parentDiscreteValues != null && Object.hasOwnProperty.call(message, "parentDiscreteValues")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.encode(message.parentDiscreteValues, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentIntValues != null && Object.hasOwnProperty.call(message, "parentIntValues")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.encode(message.parentIntValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parentCategoricalValues != null && Object.hasOwnProperty.call(message, "parentCategoricalValues")) - $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.encode(message.parentCategoricalValues, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + v1.GetEntityTypeRequest = (function() { - /** - * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a GetEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name + */ - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand + /** + * Constructs a new GetEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest=} [properties] Properties to set + */ + function GetEntityTypeRequest(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]]; + } + + /** + * GetEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.name = ""; + + /** + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest instance + */ + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); + }; + + /** + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.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 GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetEntityTypeRequest(); + 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 GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEntityTypeRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEntityTypeRequest.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 GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetEntityTypeRequest} GetEntityTypeRequest + */ + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetEntityTypeRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEntityTypeRequest.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 GetEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + GetEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetEntityTypeRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetEntityTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetEntityTypeRequest"; + }; + + return GetEntityTypeRequest; + })(); + + v1.ListEntityTypesRequest = (function() { + + /** + * Properties of a ListEntityTypesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListEntityTypesRequest + * @property {string|null} [parent] ListEntityTypesRequest parent + * @property {string|null} [filter] ListEntityTypesRequest filter + * @property {number|null} [pageSize] ListEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListEntityTypesRequest pageToken + * @property {string|null} [orderBy] ListEntityTypesRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListEntityTypesRequest readMask + */ + + /** + * Constructs a new ListEntityTypesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest=} [properties] Properties to set + */ + function ListEntityTypesRequest(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]]; + } + + /** + * ListEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.parent = ""; + + /** + * ListEntityTypesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.filter = ""; + + /** + * ListEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.pageSize = 0; + + /** + * ListEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.pageToken = ""; + + /** + * ListEntityTypesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.orderBy = ""; + + /** + * ListEntityTypesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.readMask = null; + + /** + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest instance + */ + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); + }; + + /** + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesRequest.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); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEntityTypesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListEntityTypesRequest(); + 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; + } + case 6: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEntityTypesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEntityTypesRequest.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"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; + + /** + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListEntityTypesRequest} ListEntityTypesRequest + */ + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListEntityTypesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEntityTypesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; + + /** + * Converts this ListEntityTypesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @instance + * @returns {Object.} JSON object + */ + ListEntityTypesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEntityTypesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListEntityTypesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListEntityTypesRequest"; + }; + + return ListEntityTypesRequest; + })(); + + v1.ListEntityTypesResponse = (function() { + + /** + * Properties of a ListEntityTypesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + */ + + /** + * Constructs a new ListEntityTypesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse=} [properties] Properties to set + */ + function ListEntityTypesResponse(properties) { + this.entityTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @instance + */ + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + + /** + * ListEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @instance + */ + ListEntityTypesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse instance + */ + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); + }; + + /** + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityTypes != null && message.entityTypes.length) + for (var i = 0; i < message.entityTypes.length; ++i) + $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityTypes[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 ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListEntityTypesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEntityTypesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListEntityTypesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.entityTypes && message.entityTypes.length)) + message.entityTypes = []; + message.entityTypes.push($root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEntityTypesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEntityTypesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { + if (!Array.isArray(message.entityTypes)) + return "entityTypes: array expected"; + for (var i = 0; i < message.entityTypes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityTypes[i]); + if (error) + return "entityTypes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListEntityTypesResponse} ListEntityTypesResponse + */ + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListEntityTypesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListEntityTypesResponse(); + if (object.entityTypes) { + if (!Array.isArray(object.entityTypes)) + throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesResponse.entityTypes: array expected"); + message.entityTypes = []; + for (var i = 0; i < object.entityTypes.length; ++i) { + if (typeof object.entityTypes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityTypes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {google.cloud.aiplatform.v1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEntityTypesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entityTypes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.entityTypes && message.entityTypes.length) { + object.entityTypes = []; + for (var j = 0; j < message.entityTypes.length; ++j) + object.entityTypes[j] = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityTypes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListEntityTypesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @instance + * @returns {Object.} JSON object + */ + ListEntityTypesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEntityTypesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListEntityTypesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListEntityTypesResponse"; + }; + + return ListEntityTypesResponse; + })(); + + v1.UpdateEntityTypeRequest = (function() { + + /** + * Properties of an UpdateEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpdateEntityTypeRequest + * @property {google.cloud.aiplatform.v1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + */ + + /** + * Constructs a new UpdateEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest=} [properties] Properties to set + */ + function UpdateEntityTypeRequest(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]]; + } + + /** + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.aiplatform.v1.IEntityType|null|undefined} entityType + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @instance + */ + UpdateEntityTypeRequest.prototype.entityType = null; + + /** + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @instance + */ + UpdateEntityTypeRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + */ + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); + }; + + /** + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.aiplatform.v1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityType = $root.google.cloud.aiplatform.v1.EntityType.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateEntityTypeRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.aiplatform.v1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + */ + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpdateEntityTypeRequest(); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.aiplatform.v1.EntityType.fromObject(object.entityType); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.entityType = null; + object.updateMask = null; + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.aiplatform.v1.EntityType.toObject(message.entityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateEntityTypeRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateEntityTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateEntityTypeRequest"; + }; + + return UpdateEntityTypeRequest; + })(); + + v1.DeleteEntityTypeRequest = (function() { + + /** + * Properties of a DeleteEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force + */ + + /** + * Constructs a new DeleteEntityTypeRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest=} [properties] Properties to set + */ + function DeleteEntityTypeRequest(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]]; + } + + /** + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @instance + */ + DeleteEntityTypeRequest.prototype.name = ""; + + /** + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @instance + */ + DeleteEntityTypeRequest.prototype.force = false; + + /** + * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + */ + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); + }; + + /** + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + return writer; + }; + + /** + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteEntityTypeRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; + + /** + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + */ + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; + + /** + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; + + /** + * Converts this DeleteEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteEntityTypeRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteEntityTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteEntityTypeRequest"; + }; + + return DeleteEntityTypeRequest; + })(); + + v1.CreateFeatureRequest = (function() { + + /** + * Properties of a CreateFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeatureRequest + * @property {string|null} [parent] CreateFeatureRequest parent + * @property {google.cloud.aiplatform.v1.IFeature|null} [feature] CreateFeatureRequest feature + * @property {string|null} [featureId] CreateFeatureRequest featureId + */ + + /** + * Constructs a new CreateFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeatureRequest. + * @implements ICreateFeatureRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest=} [properties] Properties to set + */ + function CreateFeatureRequest(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]]; + } + + /** + * CreateFeatureRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @instance + */ + CreateFeatureRequest.prototype.parent = ""; + + /** + * CreateFeatureRequest feature. + * @member {google.cloud.aiplatform.v1.IFeature|null|undefined} feature + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @instance + */ + CreateFeatureRequest.prototype.feature = null; + + /** + * CreateFeatureRequest featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @instance + */ + CreateFeatureRequest.prototype.featureId = ""; + + /** + * Creates a new CreateFeatureRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest instance + */ + CreateFeatureRequest.create = function create(properties) { + return new CreateFeatureRequest(properties); + }; + + /** + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureRequest.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.feature != null && Object.hasOwnProperty.call(message, "feature")) + $root.google.cloud.aiplatform.v1.Feature.encode(message.feature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureId); + return writer; + }; + + /** + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.feature = $root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureRequest.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.feature != null && message.hasOwnProperty("feature")) { + var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.feature); + if (error) + return "feature." + error; + } + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; + return null; + }; + + /** + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateFeatureRequest} CreateFeatureRequest + */ + CreateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.feature != null) { + if (typeof object.feature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureRequest.feature: object expected"); + message.feature = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.feature); + } + if (object.featureId != null) + message.featureId = String(object.featureId); + return message; + }; + + /** + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateFeatureRequest} message CreateFeatureRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.feature = null; + object.featureId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.feature != null && message.hasOwnProperty("feature")) + object.feature = $root.google.cloud.aiplatform.v1.Feature.toObject(message.feature, options); + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; + return object; + }; + + /** + * Converts this CreateFeatureRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeatureRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateFeatureRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureRequest"; + }; + + return CreateFeatureRequest; + })(); + + v1.BatchCreateFeaturesRequest = (function() { + + /** + * Properties of a BatchCreateFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchCreateFeaturesRequest + * @property {string|null} [parent] BatchCreateFeaturesRequest parent + * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests + */ + + /** + * Constructs a new BatchCreateFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchCreateFeaturesRequest. + * @implements IBatchCreateFeaturesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest=} [properties] Properties to set + */ + function BatchCreateFeaturesRequest(properties) { + this.requests = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchCreateFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @instance + */ + BatchCreateFeaturesRequest.prototype.parent = ""; + + /** + * BatchCreateFeaturesRequest requests. + * @member {Array.} requests + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @instance + */ + BatchCreateFeaturesRequest.prototype.requests = $util.emptyArray; + + /** + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance + */ + BatchCreateFeaturesRequest.create = function create(properties) { + return new BatchCreateFeaturesRequest(properties); + }; + + /** + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesRequest.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.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.cloud.aiplatform.v1.CreateFeatureRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.cloud.aiplatform.v1.CreateFeatureRequest.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchCreateFeaturesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateFeaturesRequest.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.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + return null; + }; + + /** + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + */ + BatchCreateFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesRequest.requests: object expected"); + message.requests[i] = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.fromObject(object.requests[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateFeaturesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.requests = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.cloud.aiplatform.v1.CreateFeatureRequest.toObject(message.requests[j], options); + } + return object; + }; + + /** + * Converts this BatchCreateFeaturesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchCreateFeaturesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesRequest"; + }; + + return BatchCreateFeaturesRequest; + })(); + + v1.BatchCreateFeaturesResponse = (function() { + + /** + * Properties of a BatchCreateFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchCreateFeaturesResponse + * @property {Array.|null} [features] BatchCreateFeaturesResponse features + */ + + /** + * Constructs a new BatchCreateFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchCreateFeaturesResponse. + * @implements IBatchCreateFeaturesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse=} [properties] Properties to set + */ + function BatchCreateFeaturesResponse(properties) { + this.features = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchCreateFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @instance + */ + BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; + + /** + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance + */ + BatchCreateFeaturesResponse.create = function create(properties) { + return new BatchCreateFeaturesResponse(properties); + }; + + /** + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchCreateFeaturesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateFeaturesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } + } + return null; + }; + + /** + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + */ + BatchCreateFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateFeaturesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.features = []; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); + } + return object; + }; + + /** + * Converts this BatchCreateFeaturesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @instance + * @returns {Object.} JSON object + */ + BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchCreateFeaturesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesResponse"; + }; + + return BatchCreateFeaturesResponse; + })(); + + v1.GetFeatureRequest = (function() { + + /** + * Properties of a GetFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetFeatureRequest + * @property {string|null} [name] GetFeatureRequest name + */ + + /** + * Constructs a new GetFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetFeatureRequest. + * @implements IGetFeatureRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest=} [properties] Properties to set + */ + function GetFeatureRequest(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]]; + } + + /** + * GetFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @instance + */ + GetFeatureRequest.prototype.name = ""; + + /** + * Creates a new GetFeatureRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest instance + */ + GetFeatureRequest.create = function create(properties) { + return new GetFeatureRequest(properties); + }; + + /** + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureRequest.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 GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetFeatureRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFeatureRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetFeatureRequest(); + 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 GetFeatureRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFeatureRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFeatureRequest.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 GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetFeatureRequest} GetFeatureRequest + */ + GetFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetFeatureRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetFeatureRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.GetFeatureRequest} message GetFeatureRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeatureRequest.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 GetFeatureRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @instance + * @returns {Object.} JSON object + */ + GetFeatureRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFeatureRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetFeatureRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetFeatureRequest"; + }; + + return GetFeatureRequest; + })(); + + v1.ListFeaturesRequest = (function() { + + /** + * Properties of a ListFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListFeaturesRequest + * @property {string|null} [parent] ListFeaturesRequest parent + * @property {string|null} [filter] ListFeaturesRequest filter + * @property {number|null} [pageSize] ListFeaturesRequest pageSize + * @property {string|null} [pageToken] ListFeaturesRequest pageToken + * @property {string|null} [orderBy] ListFeaturesRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturesRequest readMask + * @property {number|null} [latestStatsCount] ListFeaturesRequest latestStatsCount + */ + + /** + * Constructs a new ListFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListFeaturesRequest. + * @implements IListFeaturesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest=} [properties] Properties to set + */ + function ListFeaturesRequest(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]]; + } + + /** + * ListFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.parent = ""; + + /** + * ListFeaturesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.filter = ""; + + /** + * ListFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.pageSize = 0; + + /** + * ListFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.pageToken = ""; + + /** + * ListFeaturesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.orderBy = ""; + + /** + * ListFeaturesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.readMask = null; + + /** + * ListFeaturesRequest latestStatsCount. + * @member {number} latestStatsCount + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.latestStatsCount = 0; + + /** + * Creates a new ListFeaturesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest instance + */ + ListFeaturesRequest.create = function create(properties) { + return new ListFeaturesRequest(properties); + }; + + /** + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturesRequest.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); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestStatsCount); + return writer; + }; + + /** + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturesRequest(); + 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; + } + case 6: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 7: { + message.latestStatsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeaturesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeaturesRequest.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"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) + if (!$util.isInteger(message.latestStatsCount)) + return "latestStatsCount: integer expected"; + return null; + }; + + /** + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListFeaturesRequest} ListFeaturesRequest + */ + ListFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListFeaturesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.latestStatsCount != null) + message.latestStatsCount = object.latestStatsCount | 0; + return message; + }; + + /** + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListFeaturesRequest} message ListFeaturesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeaturesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; + object.latestStatsCount = 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) + object.latestStatsCount = message.latestStatsCount; + return object; + }; + + /** + * Converts this ListFeaturesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @instance + * @returns {Object.} JSON object + */ + ListFeaturesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeaturesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListFeaturesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturesRequest"; + }; + + return ListFeaturesRequest; + })(); + + v1.ListFeaturesResponse = (function() { + + /** + * Properties of a ListFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListFeaturesResponse + * @property {Array.|null} [features] ListFeaturesResponse features + * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken + */ + + /** + * Constructs a new ListFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListFeaturesResponse. + * @implements IListFeaturesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListFeaturesResponse=} [properties] Properties to set + */ + function ListFeaturesResponse(properties) { + this.features = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @instance + */ + ListFeaturesResponse.prototype.features = $util.emptyArray; + + /** + * ListFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @instance + */ + ListFeaturesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFeaturesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse instance + */ + ListFeaturesResponse.create = function create(properties) { + return new ListFeaturesResponse(properties); + }; + + /** + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1.Feature.encode(message.features[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 ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListFeaturesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListFeaturesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeaturesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeaturesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListFeaturesResponse} ListFeaturesResponse + */ + ListFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListFeaturesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.ListFeaturesResponse} message ListFeaturesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeaturesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.features = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListFeaturesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @instance + * @returns {Object.} JSON object + */ + ListFeaturesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeaturesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListFeaturesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListFeaturesResponse"; + }; + + return ListFeaturesResponse; + })(); + + v1.SearchFeaturesRequest = (function() { + + /** + * Properties of a SearchFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ISearchFeaturesRequest + * @property {string|null} [location] SearchFeaturesRequest location + * @property {string|null} [query] SearchFeaturesRequest query + * @property {number|null} [pageSize] SearchFeaturesRequest pageSize + * @property {string|null} [pageToken] SearchFeaturesRequest pageToken + */ + + /** + * Constructs a new SearchFeaturesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SearchFeaturesRequest. + * @implements ISearchFeaturesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest=} [properties] Properties to set + */ + function SearchFeaturesRequest(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]]; + } + + /** + * SearchFeaturesRequest location. + * @member {string} location + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.location = ""; + + /** + * SearchFeaturesRequest query. + * @member {string} query + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.query = ""; + + /** + * SearchFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.pageSize = 0; + + /** + * SearchFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.pageToken = ""; + + /** + * Creates a new SearchFeaturesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest instance + */ + SearchFeaturesRequest.create = function create(properties) { + return new SearchFeaturesRequest(properties); + }; + + /** + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchFeaturesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchFeaturesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchFeaturesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.location = reader.string(); + break; + } + case 3: { + message.query = reader.string(); + break; + } + case 4: { + message.pageSize = reader.int32(); + break; + } + case 5: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchFeaturesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchFeaturesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SearchFeaturesRequest} SearchFeaturesRequest + */ + SearchFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchFeaturesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.SearchFeaturesRequest(); + if (object.location != null) + message.location = String(object.location); + if (object.query != null) + message.query = String(object.query); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {google.cloud.aiplatform.v1.SearchFeaturesRequest} message SearchFeaturesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchFeaturesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.location = ""; + object.query = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this SearchFeaturesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @instance + * @returns {Object.} JSON object + */ + SearchFeaturesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchFeaturesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SearchFeaturesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchFeaturesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchFeaturesRequest"; + }; + + return SearchFeaturesRequest; + })(); + + v1.SearchFeaturesResponse = (function() { + + /** + * Properties of a SearchFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface ISearchFeaturesResponse + * @property {Array.|null} [features] SearchFeaturesResponse features + * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken + */ + + /** + * Constructs a new SearchFeaturesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SearchFeaturesResponse. + * @implements ISearchFeaturesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse=} [properties] Properties to set + */ + function SearchFeaturesResponse(properties) { + this.features = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SearchFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @instance + */ + SearchFeaturesResponse.prototype.features = $util.emptyArray; + + /** + * SearchFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @instance + */ + SearchFeaturesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse instance + */ + SearchFeaturesResponse.create = function create(properties) { + return new SearchFeaturesResponse(properties); + }; + + /** + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchFeaturesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1.Feature.encode(message.features[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 SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchFeaturesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchFeaturesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchFeaturesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchFeaturesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchFeaturesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SearchFeaturesResponse} SearchFeaturesResponse + */ + SearchFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchFeaturesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.SearchFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1.SearchFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.features[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {google.cloud.aiplatform.v1.SearchFeaturesResponse} message SearchFeaturesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchFeaturesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.features = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1.Feature.toObject(message.features[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this SearchFeaturesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @instance + * @returns {Object.} JSON object + */ + SearchFeaturesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchFeaturesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SearchFeaturesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchFeaturesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchFeaturesResponse"; + }; + + return SearchFeaturesResponse; + })(); + + v1.UpdateFeatureRequest = (function() { + + /** + * Properties of an UpdateFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpdateFeatureRequest + * @property {google.cloud.aiplatform.v1.IFeature|null} [feature] UpdateFeatureRequest feature + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureRequest updateMask + */ + + /** + * Constructs a new UpdateFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpdateFeatureRequest. + * @implements IUpdateFeatureRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest=} [properties] Properties to set + */ + function UpdateFeatureRequest(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]]; + } + + /** + * UpdateFeatureRequest feature. + * @member {google.cloud.aiplatform.v1.IFeature|null|undefined} feature + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @instance + */ + UpdateFeatureRequest.prototype.feature = null; + + /** + * UpdateFeatureRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @instance + */ + UpdateFeatureRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateFeatureRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest instance + */ + UpdateFeatureRequest.create = function create(properties) { + return new UpdateFeatureRequest(properties); + }; + + /** + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeatureRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) + $root.google.cloud.aiplatform.v1.Feature.encode(message.feature, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeatureRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeatureRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeatureRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.feature = $root.google.cloud.aiplatform.v1.Feature.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateFeatureRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateFeatureRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.feature != null && message.hasOwnProperty("feature")) { + var error = $root.google.cloud.aiplatform.v1.Feature.verify(message.feature); + if (error) + return "feature." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateFeatureRequest} UpdateFeatureRequest + */ + UpdateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeatureRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpdateFeatureRequest(); + if (object.feature != null) { + if (typeof object.feature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureRequest.feature: object expected"); + message.feature = $root.google.cloud.aiplatform.v1.Feature.fromObject(object.feature); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeatureRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.UpdateFeatureRequest} message UpdateFeatureRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateFeatureRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.feature = null; + object.updateMask = null; + } + if (message.feature != null && message.hasOwnProperty("feature")) + object.feature = $root.google.cloud.aiplatform.v1.Feature.toObject(message.feature, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateFeatureRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateFeatureRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateFeatureRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateFeatureRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeatureRequest"; + }; + + return UpdateFeatureRequest; + })(); + + v1.DeleteFeatureRequest = (function() { + + /** + * Properties of a DeleteFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureRequest + * @property {string|null} [name] DeleteFeatureRequest name + */ + + /** + * Constructs a new DeleteFeatureRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureRequest. + * @implements IDeleteFeatureRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest=} [properties] Properties to set + */ + function DeleteFeatureRequest(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]]; + } + + /** + * DeleteFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @instance + */ + DeleteFeatureRequest.prototype.name = ""; + + /** + * Creates a new DeleteFeatureRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest instance + */ + DeleteFeatureRequest.create = function create(properties) { + return new DeleteFeatureRequest(properties); + }; + + /** + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureRequest.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 DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureRequest(); + 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 DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureRequest.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 DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureRequest} DeleteFeatureRequest + */ + DeleteFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureRequest} message DeleteFeatureRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureRequest.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 DeleteFeatureRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureRequest"; + }; + + return DeleteFeatureRequest; + })(); + + v1.CreateFeaturestoreOperationMetadata = (function() { + + /** + * Properties of a CreateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeaturestoreOperationMetadata. + * @implements ICreateFeaturestoreOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + */ + function CreateFeaturestoreOperationMetadata(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]]; + } + + /** + * CreateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @instance + */ + CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata instance + */ + CreateFeaturestoreOperationMetadata.create = function create(properties) { + return new CreateFeaturestoreOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeaturestoreOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeaturestoreOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + */ + CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CreateFeaturestoreOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeaturestoreOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeaturestoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeaturestoreOperationMetadata"; + }; + + return CreateFeaturestoreOperationMetadata; + })(); + + v1.UpdateFeaturestoreOperationMetadata = (function() { + + /** + * Properties of an UpdateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IUpdateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata + */ + + /** + * Constructs a new UpdateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UpdateFeaturestoreOperationMetadata. + * @implements IUpdateFeaturestoreOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + */ + function UpdateFeaturestoreOperationMetadata(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]]; + } + + /** + * UpdateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @instance + */ + UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance + */ + UpdateFeaturestoreOperationMetadata.create = function create(properties) { + return new UpdateFeaturestoreOperationMetadata(properties); + }; + + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateFeaturestoreOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateFeaturestoreOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + */ + UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateFeaturestoreOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateFeaturestoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata"; + }; + + return UpdateFeaturestoreOperationMetadata; + })(); + + v1.ImportFeatureValuesOperationMetadata = (function() { + + /** + * Properties of an ImportFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IImportFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ImportFeatureValuesOperationMetadata genericMetadata + * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount + * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount + * @property {Array.|null} [sourceUris] ImportFeatureValuesOperationMetadata sourceUris + * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount + * @property {number|Long|null} [timestampOutsideRetentionRowsCount] ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount + * @property {Array.|null} [blockingOperationIds] ImportFeatureValuesOperationMetadata blockingOperationIds + */ + + /** + * Constructs a new ImportFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ImportFeatureValuesOperationMetadata. + * @implements IImportFeatureValuesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + */ + function ImportFeatureValuesOperationMetadata(properties) { + this.sourceUris = []; + this.blockingOperationIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ImportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + + /** + * ImportFeatureValuesOperationMetadata importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ImportFeatureValuesOperationMetadata importedFeatureValueCount. + * @member {number|Long} importedFeatureValueCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ImportFeatureValuesOperationMetadata sourceUris. + * @member {Array.} sourceUris + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.sourceUris = $util.emptyArray; + + /** + * ImportFeatureValuesOperationMetadata invalidRowCount. + * @member {number|Long} invalidRowCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. + * @member {number|Long} timestampOutsideRetentionRowsCount + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.timestampOutsideRetentionRowsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ImportFeatureValuesOperationMetadata blockingOperationIds. + * @member {Array.} blockingOperationIds + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + */ + ImportFeatureValuesOperationMetadata.prototype.blockingOperationIds = $util.emptyArray; + + /** + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance + */ + ImportFeatureValuesOperationMetadata.create = function create(properties) { + return new ImportFeatureValuesOperationMetadata(properties); + }; + + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedEntityCount); + if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); + if (message.sourceUris != null && message.sourceUris.length) + for (var i = 0; i < message.sourceUris.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sourceUris[i]); + if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + if (message.timestampOutsideRetentionRowsCount != null && Object.hasOwnProperty.call(message, "timestampOutsideRetentionRowsCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.timestampOutsideRetentionRowsCount); + if (message.blockingOperationIds != null && message.blockingOperationIds.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.blockingOperationIds.length; ++i) + writer.int64(message.blockingOperationIds[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.importedEntityCount = reader.int64(); + break; + } + case 3: { + message.importedFeatureValueCount = reader.int64(); + break; + } + case 4: { + if (!(message.sourceUris && message.sourceUris.length)) + message.sourceUris = []; + message.sourceUris.push(reader.string()); + break; + } + case 6: { + message.invalidRowCount = reader.int64(); + break; + } + case 7: { + message.timestampOutsideRetentionRowsCount = reader.int64(); + break; + } + case 8: { + if (!(message.blockingOperationIds && message.blockingOperationIds.length)) + message.blockingOperationIds = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.blockingOperationIds.push(reader.int64()); + } else + message.blockingOperationIds.push(reader.int64()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImportFeatureValuesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportFeatureValuesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) + return "importedEntityCount: integer|Long expected"; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) + return "importedFeatureValueCount: integer|Long expected"; + if (message.sourceUris != null && message.hasOwnProperty("sourceUris")) { + if (!Array.isArray(message.sourceUris)) + return "sourceUris: array expected"; + for (var i = 0; i < message.sourceUris.length; ++i) + if (!$util.isString(message.sourceUris[i])) + return "sourceUris: string[] expected"; + } + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) + return "invalidRowCount: integer|Long expected"; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (!$util.isInteger(message.timestampOutsideRetentionRowsCount) && !(message.timestampOutsideRetentionRowsCount && $util.isInteger(message.timestampOutsideRetentionRowsCount.low) && $util.isInteger(message.timestampOutsideRetentionRowsCount.high))) + return "timestampOutsideRetentionRowsCount: integer|Long expected"; + if (message.blockingOperationIds != null && message.hasOwnProperty("blockingOperationIds")) { + if (!Array.isArray(message.blockingOperationIds)) + return "blockingOperationIds: array expected"; + for (var i = 0; i < message.blockingOperationIds.length; ++i) + if (!$util.isInteger(message.blockingOperationIds[i]) && !(message.blockingOperationIds[i] && $util.isInteger(message.blockingOperationIds[i].low) && $util.isInteger(message.blockingOperationIds[i].high))) + return "blockingOperationIds: integer|Long[] expected"; + } + return null; + }; + + /** + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + */ + ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.importedEntityCount != null) + if ($util.Long) + (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; + else if (typeof object.importedEntityCount === "string") + message.importedEntityCount = parseInt(object.importedEntityCount, 10); + else if (typeof object.importedEntityCount === "number") + message.importedEntityCount = object.importedEntityCount; + else if (typeof object.importedEntityCount === "object") + message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); + if (object.importedFeatureValueCount != null) + if ($util.Long) + (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; + else if (typeof object.importedFeatureValueCount === "string") + message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); + else if (typeof object.importedFeatureValueCount === "number") + message.importedFeatureValueCount = object.importedFeatureValueCount; + else if (typeof object.importedFeatureValueCount === "object") + message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); + if (object.sourceUris) { + if (!Array.isArray(object.sourceUris)) + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.sourceUris: array expected"); + message.sourceUris = []; + for (var i = 0; i < object.sourceUris.length; ++i) + message.sourceUris[i] = String(object.sourceUris[i]); + } + if (object.invalidRowCount != null) + if ($util.Long) + (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; + else if (typeof object.invalidRowCount === "string") + message.invalidRowCount = parseInt(object.invalidRowCount, 10); + else if (typeof object.invalidRowCount === "number") + message.invalidRowCount = object.invalidRowCount; + else if (typeof object.invalidRowCount === "object") + message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.timestampOutsideRetentionRowsCount != null) + if ($util.Long) + (message.timestampOutsideRetentionRowsCount = $util.Long.fromValue(object.timestampOutsideRetentionRowsCount)).unsigned = false; + else if (typeof object.timestampOutsideRetentionRowsCount === "string") + message.timestampOutsideRetentionRowsCount = parseInt(object.timestampOutsideRetentionRowsCount, 10); + else if (typeof object.timestampOutsideRetentionRowsCount === "number") + message.timestampOutsideRetentionRowsCount = object.timestampOutsideRetentionRowsCount; + else if (typeof object.timestampOutsideRetentionRowsCount === "object") + message.timestampOutsideRetentionRowsCount = new $util.LongBits(object.timestampOutsideRetentionRowsCount.low >>> 0, object.timestampOutsideRetentionRowsCount.high >>> 0).toNumber(); + if (object.blockingOperationIds) { + if (!Array.isArray(object.blockingOperationIds)) + throw TypeError(".google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata.blockingOperationIds: array expected"); + message.blockingOperationIds = []; + for (var i = 0; i < object.blockingOperationIds.length; ++i) + if ($util.Long) + (message.blockingOperationIds[i] = $util.Long.fromValue(object.blockingOperationIds[i])).unsigned = false; + else if (typeof object.blockingOperationIds[i] === "string") + message.blockingOperationIds[i] = parseInt(object.blockingOperationIds[i], 10); + else if (typeof object.blockingOperationIds[i] === "number") + message.blockingOperationIds[i] = object.blockingOperationIds[i]; + else if (typeof object.blockingOperationIds[i] === "object") + message.blockingOperationIds[i] = new $util.LongBits(object.blockingOperationIds[i].low >>> 0, object.blockingOperationIds[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.sourceUris = []; + object.blockingOperationIds = []; + } + if (options.defaults) { + object.genericMetadata = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedEntityCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestampOutsideRetentionRowsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestampOutsideRetentionRowsCount = options.longs === String ? "0" : 0; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (typeof message.importedEntityCount === "number") + object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; + else + object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (typeof message.importedFeatureValueCount === "number") + object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; + else + object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.sourceUris && message.sourceUris.length) { + object.sourceUris = []; + for (var j = 0; j < message.sourceUris.length; ++j) + object.sourceUris[j] = message.sourceUris[j]; + } + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (typeof message.invalidRowCount === "number") + object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; + else + object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + if (message.timestampOutsideRetentionRowsCount != null && message.hasOwnProperty("timestampOutsideRetentionRowsCount")) + if (typeof message.timestampOutsideRetentionRowsCount === "number") + object.timestampOutsideRetentionRowsCount = options.longs === String ? String(message.timestampOutsideRetentionRowsCount) : message.timestampOutsideRetentionRowsCount; + else + object.timestampOutsideRetentionRowsCount = options.longs === String ? $util.Long.prototype.toString.call(message.timestampOutsideRetentionRowsCount) : options.longs === Number ? new $util.LongBits(message.timestampOutsideRetentionRowsCount.low >>> 0, message.timestampOutsideRetentionRowsCount.high >>> 0).toNumber() : message.timestampOutsideRetentionRowsCount; + if (message.blockingOperationIds && message.blockingOperationIds.length) { + object.blockingOperationIds = []; + for (var j = 0; j < message.blockingOperationIds.length; ++j) + if (typeof message.blockingOperationIds[j] === "number") + object.blockingOperationIds[j] = options.longs === String ? String(message.blockingOperationIds[j]) : message.blockingOperationIds[j]; + else + object.blockingOperationIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.blockingOperationIds[j]) : options.longs === Number ? new $util.LongBits(message.blockingOperationIds[j].low >>> 0, message.blockingOperationIds[j].high >>> 0).toNumber() : message.blockingOperationIds[j]; + } + return object; + }; + + /** + * Converts this ImportFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + ImportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ImportFeatureValuesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata"; + }; + + return ImportFeatureValuesOperationMetadata; + })(); + + v1.ExportFeatureValuesOperationMetadata = (function() { + + /** + * Properties of an ExportFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IExportFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata + */ + + /** + * Constructs a new ExportFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExportFeatureValuesOperationMetadata. + * @implements IExportFeatureValuesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + */ + function ExportFeatureValuesOperationMetadata(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]]; + } + + /** + * ExportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @instance + */ + ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance + */ + ExportFeatureValuesOperationMetadata.create = function create(properties) { + return new ExportFeatureValuesOperationMetadata(properties); + }; + + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportFeatureValuesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFeatureValuesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + */ + ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this ExportFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportFeatureValuesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata"; + }; + + return ExportFeatureValuesOperationMetadata; + })(); + + v1.BatchReadFeatureValuesOperationMetadata = (function() { + + /** + * Properties of a BatchReadFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchReadFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata + */ + + /** + * Constructs a new BatchReadFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. + * @implements IBatchReadFeatureValuesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + */ + function BatchReadFeatureValuesOperationMetadata(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]]; + } + + /** + * BatchReadFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @instance + */ + BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance + */ + BatchReadFeatureValuesOperationMetadata.create = function create(properties) { + return new BatchReadFeatureValuesOperationMetadata(properties); + }; + + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchReadFeatureValuesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchReadFeatureValuesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchReadFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchReadFeatureValuesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchReadFeatureValuesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + */ + BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchReadFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchReadFeatureValuesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchReadFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata"; + }; + + return BatchReadFeatureValuesOperationMetadata; + })(); + + v1.DeleteFeatureValuesOperationMetadata = (function() { + + /** + * Properties of a DeleteFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteFeatureValuesOperationMetadata genericMetadata + */ + + /** + * Constructs a new DeleteFeatureValuesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesOperationMetadata. + * @implements IDeleteFeatureValuesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set + */ + function DeleteFeatureValuesOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @instance + */ + DeleteFeatureValuesOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata instance + */ + DeleteFeatureValuesOperationMetadata.create = function create(properties) { + return new DeleteFeatureValuesOperationMetadata(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} DeleteFeatureValuesOperationMetadata + */ + DeleteFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata} message DeleteFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this DeleteFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesOperationMetadata"; + }; + + return DeleteFeatureValuesOperationMetadata; + })(); + + v1.CreateEntityTypeOperationMetadata = (function() { + + /** + * Properties of a CreateEntityTypeOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateEntityTypeOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateEntityTypeOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateEntityTypeOperationMetadata. + * @implements ICreateEntityTypeOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + */ + function CreateEntityTypeOperationMetadata(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]]; + } + + /** + * CreateEntityTypeOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @instance + */ + CreateEntityTypeOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata instance + */ + CreateEntityTypeOperationMetadata.create = function create(properties) { + return new CreateEntityTypeOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateEntityTypeOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateEntityTypeOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + */ + CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateEntityTypeOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CreateEntityTypeOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateEntityTypeOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateEntityTypeOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateEntityTypeOperationMetadata"; + }; + + return CreateEntityTypeOperationMetadata; + })(); + + v1.CreateFeatureOperationMetadata = (function() { + + /** + * Properties of a CreateFeatureOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateFeatureOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateFeatureOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateFeatureOperationMetadata. + * @implements ICreateFeatureOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata=} [properties] Properties to set + */ + function CreateFeatureOperationMetadata(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]]; + } + + /** + * CreateFeatureOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @instance + */ + CreateFeatureOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance + */ + CreateFeatureOperationMetadata.create = function create(properties) { + return new CreateFeatureOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + */ + CreateFeatureOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateFeatureOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CreateFeatureOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeatureOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateFeatureOperationMetadata"; + }; + + return CreateFeatureOperationMetadata; + })(); + + v1.BatchCreateFeaturesOperationMetadata = (function() { + + /** + * Properties of a BatchCreateFeaturesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchCreateFeaturesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata + */ + + /** + * Constructs a new BatchCreateFeaturesOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchCreateFeaturesOperationMetadata. + * @implements IBatchCreateFeaturesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + */ + function BatchCreateFeaturesOperationMetadata(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]]; + } + + /** + * BatchCreateFeaturesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @instance + */ + BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance + */ + BatchCreateFeaturesOperationMetadata.create = function create(properties) { + return new BatchCreateFeaturesOperationMetadata(properties); + }; + + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchCreateFeaturesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateFeaturesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + */ + BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchCreateFeaturesOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateFeaturesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata"; + }; + + return BatchCreateFeaturesOperationMetadata; + })(); + + v1.DeleteFeatureValuesRequest = (function() { + + /** + * Properties of a DeleteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesRequest + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null} [selectEntity] DeleteFeatureValuesRequest selectEntity + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesRequest selectTimeRangeAndFeature + * @property {string|null} [entityType] DeleteFeatureValuesRequest entityType + */ + + /** + * Constructs a new DeleteFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesRequest. + * @implements IDeleteFeatureValuesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set + */ + function DeleteFeatureValuesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteFeatureValuesRequest selectEntity. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity|null|undefined} selectEntity + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.selectEntity = null; + + /** + * DeleteFeatureValuesRequest selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.selectTimeRangeAndFeature = null; + + /** + * DeleteFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + DeleteFeatureValuesRequest.prototype.entityType = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteFeatureValuesRequest DeleteOption. + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} DeleteOption + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + */ + Object.defineProperty(DeleteFeatureValuesRequest.prototype, "DeleteOption", { + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest instance + */ + DeleteFeatureValuesRequest.create = function create(properties) { + return new DeleteFeatureValuesRequest(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesRequest} message DeleteFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.decode(reader, reader.uint32()); + break; + } + case 3: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } + case 1: { + message.entityType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + properties.DeleteOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify(message.selectEntity); + if (error) + return "selectEntity." + error; + } + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.DeleteOption === 1) + return "DeleteOption: multiple values"; + properties.DeleteOption = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + return null; + }; + + /** + * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} DeleteFeatureValuesRequest + */ + DeleteFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest(); + if (object.selectEntity != null) { + if (typeof object.selectEntity !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectEntity: object expected"); + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.fromObject(object.selectEntity); + } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } + if (object.entityType != null) + message.entityType = String(object.entityType); + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest} message DeleteFeatureValuesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityType = ""; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.toObject(message.selectEntity, options); + if (options.oneofs) + object.DeleteOption = "selectEntity"; + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.DeleteOption = "selectTimeRangeAndFeature"; + } + return object; + }; + + /** + * Converts this DeleteFeatureValuesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest"; + }; + + DeleteFeatureValuesRequest.SelectEntity = (function() { + + /** + * Properties of a SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @interface ISelectEntity + * @property {google.cloud.aiplatform.v1.IEntityIdSelector|null} [entityIdSelector] SelectEntity entityIdSelector + */ + + /** + * Constructs a new SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @classdesc Represents a SelectEntity. + * @implements ISelectEntity + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set + */ + function SelectEntity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SelectEntity entityIdSelector. + * @member {google.cloud.aiplatform.v1.IEntityIdSelector|null|undefined} entityIdSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @instance + */ + SelectEntity.prototype.entityIdSelector = null; + + /** + * Creates a new SelectEntity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity instance + */ + SelectEntity.create = function create(properties) { + return new SelectEntity(properties); + }; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityIdSelector != null && Object.hasOwnProperty.call(message, "entityIdSelector")) + $root.google.cloud.aiplatform.v1.EntityIdSelector.encode(message.entityIdSelector, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectEntity message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) { + var error = $root.google.cloud.aiplatform.v1.EntityIdSelector.verify(message.entityIdSelector); + if (error) + return "entityIdSelector." + error; + } + return null; + }; + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} SelectEntity + */ + SelectEntity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity(); + if (object.entityIdSelector != null) { + if (typeof object.entityIdSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity.entityIdSelector: object expected"); + message.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.fromObject(object.entityIdSelector); + } + return message; + }; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity} message SelectEntity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectEntity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityIdSelector = null; + if (message.entityIdSelector != null && message.hasOwnProperty("entityIdSelector")) + object.entityIdSelector = $root.google.cloud.aiplatform.v1.EntityIdSelector.toObject(message.entityIdSelector, options); + return object; + }; + + /** + * Converts this SelectEntity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @instance + * @returns {Object.} JSON object + */ + SelectEntity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectEntity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity"; + }; + + return SelectEntity; + })(); + + DeleteFeatureValuesRequest.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @interface ISelectTimeRangeAndFeature + * @property {google.type.IInterval|null} [timeRange] SelectTimeRangeAndFeature timeRange + * @property {google.cloud.aiplatform.v1.IFeatureSelector|null} [featureSelector] SelectTimeRangeAndFeature featureSelector + * @property {boolean|null} [skipOnlineStorageDelete] SelectTimeRangeAndFeature skipOnlineStorageDelete + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SelectTimeRangeAndFeature timeRange. + * @member {google.type.IInterval|null|undefined} timeRange + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.timeRange = null; + + /** + * SelectTimeRangeAndFeature featureSelector. + * @member {google.cloud.aiplatform.v1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.featureSelector = null; + + /** + * SelectTimeRangeAndFeature skipOnlineStorageDelete. + * @member {boolean} skipOnlineStorageDelete + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.skipOnlineStorageDelete = false; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) + $root.google.type.Interval.encode(message.timeRange, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.skipOnlineStorageDelete != null && Object.hasOwnProperty.call(message, "skipOnlineStorageDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skipOnlineStorageDelete); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timeRange = $root.google.type.Interval.decode(reader, reader.uint32()); + break; + } + case 2: { + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.decode(reader, reader.uint32()); + break; + } + case 3: { + message.skipOnlineStorageDelete = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timeRange != null && message.hasOwnProperty("timeRange")) { + var error = $root.google.type.Interval.verify(message.timeRange); + if (error) + return "timeRange." + error; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + if (typeof message.skipOnlineStorageDelete !== "boolean") + return "skipOnlineStorageDelete: boolean expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature(); + if (object.timeRange != null) { + if (typeof object.timeRange !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.timeRange: object expected"); + message.timeRange = $root.google.type.Interval.fromObject(object.timeRange); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.fromObject(object.featureSelector); + } + if (object.skipOnlineStorageDelete != null) + message.skipOnlineStorageDelete = Boolean(object.skipOnlineStorageDelete); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timeRange = null; + object.featureSelector = null; + object.skipOnlineStorageDelete = false; + } + if (message.timeRange != null && message.hasOwnProperty("timeRange")) + object.timeRange = $root.google.type.Interval.toObject(message.timeRange, options); + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1.FeatureSelector.toObject(message.featureSelector, options); + if (message.skipOnlineStorageDelete != null && message.hasOwnProperty("skipOnlineStorageDelete")) + object.skipOnlineStorageDelete = message.skipOnlineStorageDelete; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + + return DeleteFeatureValuesRequest; + })(); + + v1.DeleteFeatureValuesResponse = (function() { + + /** + * Properties of a DeleteFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteFeatureValuesResponse + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null} [selectEntity] DeleteFeatureValuesResponse selectEntity + * @property {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null} [selectTimeRangeAndFeature] DeleteFeatureValuesResponse selectTimeRangeAndFeature + */ + + /** + * Constructs a new DeleteFeatureValuesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteFeatureValuesResponse. + * @implements IDeleteFeatureValuesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set + */ + function DeleteFeatureValuesResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteFeatureValuesResponse selectEntity. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity|null|undefined} selectEntity + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectEntity = null; + + /** + * DeleteFeatureValuesResponse selectTimeRangeAndFeature. + * @member {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature|null|undefined} selectTimeRangeAndFeature + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + DeleteFeatureValuesResponse.prototype.selectTimeRangeAndFeature = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteFeatureValuesResponse response. + * @member {"selectEntity"|"selectTimeRangeAndFeature"|undefined} response + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + */ + Object.defineProperty(DeleteFeatureValuesResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["selectEntity", "selectTimeRangeAndFeature"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse instance + */ + DeleteFeatureValuesResponse.create = function create(properties) { + return new DeleteFeatureValuesResponse(properties); + }; + + /** + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selectEntity != null && Object.hasOwnProperty.call(message, "selectEntity")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.encode(message.selectEntity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.selectTimeRangeAndFeature != null && Object.hasOwnProperty.call(message, "selectTimeRangeAndFeature")) + $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.encode(message.selectTimeRangeAndFeature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.IDeleteFeatureValuesResponse} message DeleteFeatureValuesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.decode(reader, reader.uint32()); + break; + } + case 2: { + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureValuesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureValuesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify(message.selectEntity); + if (error) + return "selectEntity." + error; + } + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify(message.selectTimeRangeAndFeature); + if (error) + return "selectTimeRangeAndFeature." + error; + } + } + return null; + }; + + /** + * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} DeleteFeatureValuesResponse + */ + DeleteFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse(); + if (object.selectEntity != null) { + if (typeof object.selectEntity !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectEntity: object expected"); + message.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.fromObject(object.selectEntity); + } + if (object.selectTimeRangeAndFeature != null) { + if (typeof object.selectTimeRangeAndFeature !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.selectTimeRangeAndFeature: object expected"); + message.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.fromObject(object.selectTimeRangeAndFeature); + } + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureValuesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse} message DeleteFeatureValuesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureValuesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.selectEntity != null && message.hasOwnProperty("selectEntity")) { + object.selectEntity = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.toObject(message.selectEntity, options); + if (options.oneofs) + object.response = "selectEntity"; + } + if (message.selectTimeRangeAndFeature != null && message.hasOwnProperty("selectTimeRangeAndFeature")) { + object.selectTimeRangeAndFeature = $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.toObject(message.selectTimeRangeAndFeature, options); + if (options.oneofs) + object.response = "selectTimeRangeAndFeature"; + } + return object; + }; + + /** + * Converts this DeleteFeatureValuesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureValuesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureValuesResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureValuesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse"; + }; + + DeleteFeatureValuesResponse.SelectEntity = (function() { + + /** + * Properties of a SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @interface ISelectEntity + * @property {number|Long|null} [offlineStorageDeletedEntityRowCount] SelectEntity offlineStorageDeletedEntityRowCount + * @property {number|Long|null} [onlineStorageDeletedEntityCount] SelectEntity onlineStorageDeletedEntityCount + */ + + /** + * Constructs a new SelectEntity. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectEntity. + * @implements ISelectEntity + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + */ + function SelectEntity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SelectEntity offlineStorageDeletedEntityRowCount. + * @member {number|Long} offlineStorageDeletedEntityRowCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.offlineStorageDeletedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectEntity onlineStorageDeletedEntityCount. + * @member {number|Long} onlineStorageDeletedEntityCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + */ + SelectEntity.prototype.onlineStorageDeletedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectEntity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity instance + */ + SelectEntity.create = function create(properties) { + return new SelectEntity(properties); + }; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.offlineStorageDeletedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageDeletedEntityRowCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.offlineStorageDeletedEntityRowCount); + if (message.onlineStorageDeletedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageDeletedEntityCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.onlineStorageDeletedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectEntity} message SelectEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectEntity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.offlineStorageDeletedEntityRowCount = reader.int64(); + break; + } + case 2: { + message.onlineStorageDeletedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectEntity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectEntity message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageDeletedEntityRowCount) && !(message.offlineStorageDeletedEntityRowCount && $util.isInteger(message.offlineStorageDeletedEntityRowCount.low) && $util.isInteger(message.offlineStorageDeletedEntityRowCount.high))) + return "offlineStorageDeletedEntityRowCount: integer|Long expected"; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (!$util.isInteger(message.onlineStorageDeletedEntityCount) && !(message.onlineStorageDeletedEntityCount && $util.isInteger(message.onlineStorageDeletedEntityCount.low) && $util.isInteger(message.onlineStorageDeletedEntityCount.high))) + return "onlineStorageDeletedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectEntity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} SelectEntity + */ + SelectEntity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity(); + if (object.offlineStorageDeletedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageDeletedEntityRowCount = $util.Long.fromValue(object.offlineStorageDeletedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageDeletedEntityRowCount === "string") + message.offlineStorageDeletedEntityRowCount = parseInt(object.offlineStorageDeletedEntityRowCount, 10); + else if (typeof object.offlineStorageDeletedEntityRowCount === "number") + message.offlineStorageDeletedEntityRowCount = object.offlineStorageDeletedEntityRowCount; + else if (typeof object.offlineStorageDeletedEntityRowCount === "object") + message.offlineStorageDeletedEntityRowCount = new $util.LongBits(object.offlineStorageDeletedEntityRowCount.low >>> 0, object.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageDeletedEntityCount != null) + if ($util.Long) + (message.onlineStorageDeletedEntityCount = $util.Long.fromValue(object.onlineStorageDeletedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageDeletedEntityCount === "string") + message.onlineStorageDeletedEntityCount = parseInt(object.onlineStorageDeletedEntityCount, 10); + else if (typeof object.onlineStorageDeletedEntityCount === "number") + message.onlineStorageDeletedEntityCount = object.onlineStorageDeletedEntityCount; + else if (typeof object.onlineStorageDeletedEntityCount === "object") + message.onlineStorageDeletedEntityCount = new $util.LongBits(object.onlineStorageDeletedEntityCount.low >>> 0, object.onlineStorageDeletedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity} message SelectEntity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectEntity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageDeletedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageDeletedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageDeletedEntityCount = options.longs === String ? "0" : 0; + } + if (message.offlineStorageDeletedEntityRowCount != null && message.hasOwnProperty("offlineStorageDeletedEntityRowCount")) + if (typeof message.offlineStorageDeletedEntityRowCount === "number") + object.offlineStorageDeletedEntityRowCount = options.longs === String ? String(message.offlineStorageDeletedEntityRowCount) : message.offlineStorageDeletedEntityRowCount; + else + object.offlineStorageDeletedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageDeletedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageDeletedEntityRowCount.low >>> 0, message.offlineStorageDeletedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageDeletedEntityRowCount; + if (message.onlineStorageDeletedEntityCount != null && message.hasOwnProperty("onlineStorageDeletedEntityCount")) + if (typeof message.onlineStorageDeletedEntityCount === "number") + object.onlineStorageDeletedEntityCount = options.longs === String ? String(message.onlineStorageDeletedEntityCount) : message.onlineStorageDeletedEntityCount; + else + object.onlineStorageDeletedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageDeletedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageDeletedEntityCount.low >>> 0, message.onlineStorageDeletedEntityCount.high >>> 0).toNumber() : message.onlineStorageDeletedEntityCount; + return object; + }; + + /** + * Converts this SelectEntity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @instance + * @returns {Object.} JSON object + */ + SelectEntity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectEntity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectEntity"; + }; + + return SelectEntity; + })(); + + DeleteFeatureValuesResponse.SelectTimeRangeAndFeature = (function() { + + /** + * Properties of a SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @interface ISelectTimeRangeAndFeature + * @property {number|Long|null} [impactedFeatureCount] SelectTimeRangeAndFeature impactedFeatureCount + * @property {number|Long|null} [offlineStorageModifiedEntityRowCount] SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount + * @property {number|Long|null} [onlineStorageModifiedEntityCount] SelectTimeRangeAndFeature onlineStorageModifiedEntityCount + */ + + /** + * Constructs a new SelectTimeRangeAndFeature. + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse + * @classdesc Represents a SelectTimeRangeAndFeature. + * @implements ISelectTimeRangeAndFeature + * @constructor + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + */ + function SelectTimeRangeAndFeature(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SelectTimeRangeAndFeature impactedFeatureCount. + * @member {number|Long} impactedFeatureCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.impactedFeatureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature offlineStorageModifiedEntityRowCount. + * @member {number|Long} offlineStorageModifiedEntityRowCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.offlineStorageModifiedEntityRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SelectTimeRangeAndFeature onlineStorageModifiedEntityCount. + * @member {number|Long} onlineStorageModifiedEntityCount + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + */ + SelectTimeRangeAndFeature.prototype.onlineStorageModifiedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature instance + */ + SelectTimeRangeAndFeature.create = function create(properties) { + return new SelectTimeRangeAndFeature(properties); + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.impactedFeatureCount != null && Object.hasOwnProperty.call(message, "impactedFeatureCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.impactedFeatureCount); + if (message.offlineStorageModifiedEntityRowCount != null && Object.hasOwnProperty.call(message, "offlineStorageModifiedEntityRowCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.offlineStorageModifiedEntityRowCount); + if (message.onlineStorageModifiedEntityCount != null && Object.hasOwnProperty.call(message, "onlineStorageModifiedEntityCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.onlineStorageModifiedEntityCount); + return writer; + }; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.ISelectTimeRangeAndFeature} message SelectTimeRangeAndFeature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SelectTimeRangeAndFeature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.impactedFeatureCount = reader.int64(); + break; + } + case 2: { + message.offlineStorageModifiedEntityRowCount = reader.int64(); + break; + } + case 3: { + message.onlineStorageModifiedEntityCount = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SelectTimeRangeAndFeature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SelectTimeRangeAndFeature message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SelectTimeRangeAndFeature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (!$util.isInteger(message.impactedFeatureCount) && !(message.impactedFeatureCount && $util.isInteger(message.impactedFeatureCount.low) && $util.isInteger(message.impactedFeatureCount.high))) + return "impactedFeatureCount: integer|Long expected"; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (!$util.isInteger(message.offlineStorageModifiedEntityRowCount) && !(message.offlineStorageModifiedEntityRowCount && $util.isInteger(message.offlineStorageModifiedEntityRowCount.low) && $util.isInteger(message.offlineStorageModifiedEntityRowCount.high))) + return "offlineStorageModifiedEntityRowCount: integer|Long expected"; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (!$util.isInteger(message.onlineStorageModifiedEntityCount) && !(message.onlineStorageModifiedEntityCount && $util.isInteger(message.onlineStorageModifiedEntityCount.low) && $util.isInteger(message.onlineStorageModifiedEntityCount.high))) + return "onlineStorageModifiedEntityCount: integer|Long expected"; + return null; + }; + + /** + * Creates a SelectTimeRangeAndFeature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} SelectTimeRangeAndFeature + */ + SelectTimeRangeAndFeature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature(); + if (object.impactedFeatureCount != null) + if ($util.Long) + (message.impactedFeatureCount = $util.Long.fromValue(object.impactedFeatureCount)).unsigned = false; + else if (typeof object.impactedFeatureCount === "string") + message.impactedFeatureCount = parseInt(object.impactedFeatureCount, 10); + else if (typeof object.impactedFeatureCount === "number") + message.impactedFeatureCount = object.impactedFeatureCount; + else if (typeof object.impactedFeatureCount === "object") + message.impactedFeatureCount = new $util.LongBits(object.impactedFeatureCount.low >>> 0, object.impactedFeatureCount.high >>> 0).toNumber(); + if (object.offlineStorageModifiedEntityRowCount != null) + if ($util.Long) + (message.offlineStorageModifiedEntityRowCount = $util.Long.fromValue(object.offlineStorageModifiedEntityRowCount)).unsigned = false; + else if (typeof object.offlineStorageModifiedEntityRowCount === "string") + message.offlineStorageModifiedEntityRowCount = parseInt(object.offlineStorageModifiedEntityRowCount, 10); + else if (typeof object.offlineStorageModifiedEntityRowCount === "number") + message.offlineStorageModifiedEntityRowCount = object.offlineStorageModifiedEntityRowCount; + else if (typeof object.offlineStorageModifiedEntityRowCount === "object") + message.offlineStorageModifiedEntityRowCount = new $util.LongBits(object.offlineStorageModifiedEntityRowCount.low >>> 0, object.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber(); + if (object.onlineStorageModifiedEntityCount != null) + if ($util.Long) + (message.onlineStorageModifiedEntityCount = $util.Long.fromValue(object.onlineStorageModifiedEntityCount)).unsigned = false; + else if (typeof object.onlineStorageModifiedEntityCount === "string") + message.onlineStorageModifiedEntityCount = parseInt(object.onlineStorageModifiedEntityCount, 10); + else if (typeof object.onlineStorageModifiedEntityCount === "number") + message.onlineStorageModifiedEntityCount = object.onlineStorageModifiedEntityCount; + else if (typeof object.onlineStorageModifiedEntityCount === "object") + message.onlineStorageModifiedEntityCount = new $util.LongBits(object.onlineStorageModifiedEntityCount.low >>> 0, object.onlineStorageModifiedEntityCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature} message SelectTimeRangeAndFeature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SelectTimeRangeAndFeature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.impactedFeatureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.impactedFeatureCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.offlineStorageModifiedEntityRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.onlineStorageModifiedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.onlineStorageModifiedEntityCount = options.longs === String ? "0" : 0; + } + if (message.impactedFeatureCount != null && message.hasOwnProperty("impactedFeatureCount")) + if (typeof message.impactedFeatureCount === "number") + object.impactedFeatureCount = options.longs === String ? String(message.impactedFeatureCount) : message.impactedFeatureCount; + else + object.impactedFeatureCount = options.longs === String ? $util.Long.prototype.toString.call(message.impactedFeatureCount) : options.longs === Number ? new $util.LongBits(message.impactedFeatureCount.low >>> 0, message.impactedFeatureCount.high >>> 0).toNumber() : message.impactedFeatureCount; + if (message.offlineStorageModifiedEntityRowCount != null && message.hasOwnProperty("offlineStorageModifiedEntityRowCount")) + if (typeof message.offlineStorageModifiedEntityRowCount === "number") + object.offlineStorageModifiedEntityRowCount = options.longs === String ? String(message.offlineStorageModifiedEntityRowCount) : message.offlineStorageModifiedEntityRowCount; + else + object.offlineStorageModifiedEntityRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.offlineStorageModifiedEntityRowCount) : options.longs === Number ? new $util.LongBits(message.offlineStorageModifiedEntityRowCount.low >>> 0, message.offlineStorageModifiedEntityRowCount.high >>> 0).toNumber() : message.offlineStorageModifiedEntityRowCount; + if (message.onlineStorageModifiedEntityCount != null && message.hasOwnProperty("onlineStorageModifiedEntityCount")) + if (typeof message.onlineStorageModifiedEntityCount === "number") + object.onlineStorageModifiedEntityCount = options.longs === String ? String(message.onlineStorageModifiedEntityCount) : message.onlineStorageModifiedEntityCount; + else + object.onlineStorageModifiedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.onlineStorageModifiedEntityCount) : options.longs === Number ? new $util.LongBits(message.onlineStorageModifiedEntityCount.low >>> 0, message.onlineStorageModifiedEntityCount.high >>> 0).toNumber() : message.onlineStorageModifiedEntityCount; + return object; + }; + + /** + * Converts this SelectTimeRangeAndFeature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @instance + * @returns {Object.} JSON object + */ + SelectTimeRangeAndFeature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SelectTimeRangeAndFeature + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SelectTimeRangeAndFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteFeatureValuesResponse.SelectTimeRangeAndFeature"; + }; + + return SelectTimeRangeAndFeature; + })(); + + return DeleteFeatureValuesResponse; + })(); + + v1.EntityIdSelector = (function() { + + /** + * Properties of an EntityIdSelector. + * @memberof google.cloud.aiplatform.v1 + * @interface IEntityIdSelector + * @property {google.cloud.aiplatform.v1.ICsvSource|null} [csvSource] EntityIdSelector csvSource + * @property {string|null} [entityIdField] EntityIdSelector entityIdField + */ + + /** + * Constructs a new EntityIdSelector. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an EntityIdSelector. + * @implements IEntityIdSelector + * @constructor + * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set + */ + function EntityIdSelector(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EntityIdSelector csvSource. + * @member {google.cloud.aiplatform.v1.ICsvSource|null|undefined} csvSource + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + EntityIdSelector.prototype.csvSource = null; + + /** + * EntityIdSelector entityIdField. + * @member {string} entityIdField + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + EntityIdSelector.prototype.entityIdField = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EntityIdSelector EntityIdsSource. + * @member {"csvSource"|undefined} EntityIdsSource + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + */ + Object.defineProperty(EntityIdSelector.prototype, "EntityIdsSource", { + get: $util.oneOfGetter($oneOfFields = ["csvSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EntityIdSelector instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector instance + */ + EntityIdSelector.create = function create(properties) { + return new EntityIdSelector(properties); + }; + + /** + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityIdSelector.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) + $root.google.cloud.aiplatform.v1.CsvSource.encode(message.csvSource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); + return writer; + }; + + /** + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityIdSelector.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.IEntityIdSelector} message EntityIdSelector message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityIdSelector.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityIdSelector.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.entityIdField = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityIdSelector.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityIdSelector message. + * @function verify + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityIdSelector.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + properties.EntityIdsSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.CsvSource.verify(message.csvSource); + if (error) + return "csvSource." + error; + } + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + if (!$util.isString(message.entityIdField)) + return "entityIdField: string expected"; + return null; + }; + + /** + * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.EntityIdSelector} EntityIdSelector + */ + EntityIdSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EntityIdSelector) + return object; + var message = new $root.google.cloud.aiplatform.v1.EntityIdSelector(); + if (object.csvSource != null) { + if (typeof object.csvSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EntityIdSelector.csvSource: object expected"); + message.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.fromObject(object.csvSource); + } + if (object.entityIdField != null) + message.entityIdField = String(object.entityIdField); + return message; + }; + + /** + * Creates a plain object from an EntityIdSelector message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {google.cloud.aiplatform.v1.EntityIdSelector} message EntityIdSelector + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityIdSelector.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.entityIdField = ""; + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + object.csvSource = $root.google.cloud.aiplatform.v1.CsvSource.toObject(message.csvSource, options); + if (options.oneofs) + object.EntityIdsSource = "csvSource"; + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + object.entityIdField = message.entityIdField; + return object; + }; + + /** + * Converts this EntityIdSelector to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @instance + * @returns {Object.} JSON object + */ + EntityIdSelector.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EntityIdSelector + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.EntityIdSelector + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EntityIdSelector.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EntityIdSelector"; + }; + + return EntityIdSelector; + })(); + + v1.Featurestore = (function() { + + /** + * Properties of a Featurestore. + * @memberof google.cloud.aiplatform.v1 + * @interface IFeaturestore + * @property {string|null} [name] Featurestore name + * @property {google.protobuf.ITimestamp|null} [createTime] Featurestore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Featurestore updateTime + * @property {string|null} [etag] Featurestore etag + * @property {Object.|null} [labels] Featurestore labels + * @property {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null} [onlineServingConfig] Featurestore onlineServingConfig + * @property {google.cloud.aiplatform.v1.Featurestore.State|null} [state] Featurestore state + * @property {number|null} [onlineStorageTtlDays] Featurestore onlineStorageTtlDays + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec + */ + + /** + * Constructs a new Featurestore. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Featurestore. + * @implements IFeaturestore + * @constructor + * @param {google.cloud.aiplatform.v1.IFeaturestore=} [properties] Properties to set + */ + function Featurestore(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]]; + } + + /** + * Featurestore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.name = ""; + + /** + * Featurestore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.createTime = null; + + /** + * Featurestore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.updateTime = null; + + /** + * Featurestore etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.etag = ""; + + /** + * Featurestore labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.labels = $util.emptyObject; + + /** + * Featurestore onlineServingConfig. + * @member {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.onlineServingConfig = null; + + /** + * Featurestore state. + * @member {google.cloud.aiplatform.v1.Featurestore.State} state + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.state = 0; + + /** + * Featurestore onlineStorageTtlDays. + * @member {number} onlineStorageTtlDays + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.onlineStorageTtlDays = 0; + + /** + * Featurestore encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.encryptionSpec = null; + + /** + * Creates a new Featurestore instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {google.cloud.aiplatform.v1.IFeaturestore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore instance + */ + Featurestore.create = function create(properties) { + return new Featurestore(properties); + }; + + /** + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {google.cloud.aiplatform.v1.IFeaturestore} message Featurestore message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Featurestore.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.onlineServingConfig != null && Object.hasOwnProperty.call(message, "onlineServingConfig")) + $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.encode(message.onlineServingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.onlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "onlineStorageTtlDays")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.onlineStorageTtlDays); + return writer; + }; + + /** + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {google.cloud.aiplatform.v1.IFeaturestore} message Featurestore message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Featurestore.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Featurestore message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Featurestore.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 7: { + message.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 13: { + message.onlineStorageTtlDays = reader.int32(); + break; + } + case 10: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Featurestore.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Featurestore message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Featurestore.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.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) { + var error = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify(message.onlineServingConfig); + if (error) + return "onlineServingConfig." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) + if (!$util.isInteger(message.onlineStorageTtlDays)) + return "onlineStorageTtlDays: integer expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Featurestore} Featurestore + */ + Featurestore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore) + return object; + var message = new $root.google.cloud.aiplatform.v1.Featurestore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Featurestore.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Featurestore.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.v1.Featurestore.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.onlineServingConfig != null) { + if (typeof object.onlineServingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Featurestore.onlineServingConfig: object expected"); + message.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.fromObject(object.onlineServingConfig); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STABLE": + case 1: + message.state = 1; + break; + case "UPDATING": + case 2: + message.state = 2; + break; + } + if (object.onlineStorageTtlDays != null) + message.onlineStorageTtlDays = object.onlineStorageTtlDays | 0; + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Featurestore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {google.cloud.aiplatform.v1.Featurestore} message Featurestore + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Featurestore.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.onlineServingConfig = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.encryptionSpec = null; + object.onlineStorageTtlDays = 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.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.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) + object.onlineServingConfig = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.toObject(message.onlineServingConfig, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Featurestore.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Featurestore.State[message.state] : message.state; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) + object.onlineStorageTtlDays = message.onlineStorageTtlDays; + return object; + }; + + /** + * Converts this Featurestore to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + * @returns {Object.} JSON object + */ + Featurestore.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Featurestore + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Featurestore + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Featurestore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore"; + }; + + Featurestore.OnlineServingConfig = (function() { + + /** + * Properties of an OnlineServingConfig. + * @memberof google.cloud.aiplatform.v1.Featurestore + * @interface IOnlineServingConfig + * @property {number|null} [fixedNodeCount] OnlineServingConfig fixedNodeCount + * @property {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null} [scaling] OnlineServingConfig scaling + */ + + /** + * Constructs a new OnlineServingConfig. + * @memberof google.cloud.aiplatform.v1.Featurestore + * @classdesc Represents an OnlineServingConfig. + * @implements IOnlineServingConfig + * @constructor + * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + */ + function OnlineServingConfig(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]]; + } + + /** + * OnlineServingConfig fixedNodeCount. + * @member {number} fixedNodeCount + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @instance + */ + OnlineServingConfig.prototype.fixedNodeCount = 0; + + /** + * OnlineServingConfig scaling. + * @member {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling|null|undefined} scaling + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @instance + */ + OnlineServingConfig.prototype.scaling = null; + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig instance + */ + OnlineServingConfig.create = function create(properties) { + return new OnlineServingConfig(properties); + }; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnlineServingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fixedNodeCount != null && Object.hasOwnProperty.call(message, "fixedNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fixedNodeCount); + if (message.scaling != null && Object.hasOwnProperty.call(message, "scaling")) + $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.encode(message.scaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnlineServingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnlineServingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.fixedNodeCount = reader.int32(); + break; + } + case 4: { + message.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnlineServingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OnlineServingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OnlineServingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) + if (!$util.isInteger(message.fixedNodeCount)) + return "fixedNodeCount: integer expected"; + if (message.scaling != null && message.hasOwnProperty("scaling")) { + var error = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify(message.scaling); + if (error) + return "scaling." + error; + } + return null; + }; + + /** + * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} OnlineServingConfig + */ + OnlineServingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(); + if (object.fixedNodeCount != null) + message.fixedNodeCount = object.fixedNodeCount | 0; + if (object.scaling != null) { + if (typeof object.scaling !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.scaling: object expected"); + message.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.fromObject(object.scaling); + } + return message; + }; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig} message OnlineServingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OnlineServingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fixedNodeCount = 0; + object.scaling = null; + } + if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) + object.fixedNodeCount = message.fixedNodeCount; + if (message.scaling != null && message.hasOwnProperty("scaling")) + object.scaling = $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.toObject(message.scaling, options); + return object; + }; + + /** + * Converts this OnlineServingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @instance + * @returns {Object.} JSON object + */ + OnlineServingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OnlineServingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OnlineServingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig"; + }; + + OnlineServingConfig.Scaling = (function() { + + /** + * Properties of a Scaling. + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @interface IScaling + * @property {number|null} [minNodeCount] Scaling minNodeCount + * @property {number|null} [maxNodeCount] Scaling maxNodeCount + * @property {number|null} [cpuUtilizationTarget] Scaling cpuUtilizationTarget + */ + + /** + * Constructs a new Scaling. + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig + * @classdesc Represents a Scaling. + * @implements IScaling + * @constructor + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set + */ + function Scaling(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]]; + } + + /** + * Scaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.minNodeCount = 0; + + /** + * Scaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.maxNodeCount = 0; + + /** + * Scaling cpuUtilizationTarget. + * @member {number} cpuUtilizationTarget + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.cpuUtilizationTarget = 0; + + /** + * Creates a new Scaling instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling instance + */ + Scaling.create = function create(properties) { + return new Scaling(properties); + }; + + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scaling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount); + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount); + if (message.cpuUtilizationTarget != null && Object.hasOwnProperty.call(message, "cpuUtilizationTarget")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cpuUtilizationTarget); + return writer; + }; + + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Scaling message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scaling.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.minNodeCount = reader.int32(); + break; + } + case 2: { + message.maxNodeCount = reader.int32(); + break; + } + case 3: { + message.cpuUtilizationTarget = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Scaling message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scaling.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + if (!$util.isInteger(message.cpuUtilizationTarget)) + return "cpuUtilizationTarget: integer expected"; + return null; + }; + + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} Scaling + */ + Scaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + return object; + var message = new $root.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + if (object.cpuUtilizationTarget != null) + message.cpuUtilizationTarget = object.cpuUtilizationTarget | 0; + return message; + }; + + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} message Scaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Scaling.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.minNodeCount = 0; + object.maxNodeCount = 0; + object.cpuUtilizationTarget = 0; + } + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + if (message.cpuUtilizationTarget != null && message.hasOwnProperty("cpuUtilizationTarget")) + object.cpuUtilizationTarget = message.cpuUtilizationTarget; + return object; + }; + + /** + * Converts this Scaling to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @instance + * @returns {Object.} JSON object + */ + Scaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Scaling + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Scaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling"; + }; + + return Scaling; + })(); + + return OnlineServingConfig; + })(); + + /** + * State enum. + * @name google.cloud.aiplatform.v1.Featurestore.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} STABLE=1 STABLE value + * @property {number} UPDATING=2 UPDATING value + */ + Featurestore.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STABLE"] = 1; + values[valuesById[2] = "UPDATING"] = 2; + return values; + })(); + + return Featurestore; + })(); + + v1.HyperparameterTuningJob = (function() { + + /** + * Properties of a HyperparameterTuningJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IHyperparameterTuningJob + * @property {string|null} [name] HyperparameterTuningJob name + * @property {string|null} [displayName] HyperparameterTuningJob displayName + * @property {google.cloud.aiplatform.v1.IStudySpec|null} [studySpec] HyperparameterTuningJob studySpec + * @property {number|null} [maxTrialCount] HyperparameterTuningJob maxTrialCount + * @property {number|null} [parallelTrialCount] HyperparameterTuningJob parallelTrialCount + * @property {number|null} [maxFailedTrialCount] HyperparameterTuningJob maxFailedTrialCount + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trialJobSpec] HyperparameterTuningJob trialJobSpec + * @property {Array.|null} [trials] HyperparameterTuningJob trials + * @property {google.cloud.aiplatform.v1.JobState|null} [state] HyperparameterTuningJob state + * @property {google.protobuf.ITimestamp|null} [createTime] HyperparameterTuningJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] HyperparameterTuningJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] HyperparameterTuningJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] HyperparameterTuningJob updateTime + * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error + * @property {Object.|null} [labels] HyperparameterTuningJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + */ + + /** + * Constructs a new HyperparameterTuningJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a HyperparameterTuningJob. + * @implements IHyperparameterTuningJob + * @constructor + * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob=} [properties] Properties to set + */ + function HyperparameterTuningJob(properties) { + this.trials = []; + 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]]; + } + + /** + * HyperparameterTuningJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.name = ""; + + /** + * HyperparameterTuningJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.displayName = ""; + + /** + * HyperparameterTuningJob studySpec. + * @member {google.cloud.aiplatform.v1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.studySpec = null; + + /** + * HyperparameterTuningJob maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxTrialCount = 0; + + /** + * HyperparameterTuningJob parallelTrialCount. + * @member {number} parallelTrialCount + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.parallelTrialCount = 0; + + /** + * HyperparameterTuningJob maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; + + /** + * HyperparameterTuningJob trialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trialJobSpec + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trialJobSpec = null; + + /** + * HyperparameterTuningJob trials. + * @member {Array.} trials + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trials = $util.emptyArray; + + /** + * HyperparameterTuningJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.state = 0; + + /** + * HyperparameterTuningJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.createTime = null; + + /** + * HyperparameterTuningJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.startTime = null; + + /** + * HyperparameterTuningJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.endTime = null; + + /** + * HyperparameterTuningJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.updateTime = null; + + /** + * HyperparameterTuningJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.error = null; + + /** + * HyperparameterTuningJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.labels = $util.emptyObject; + + /** + * HyperparameterTuningJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.encryptionSpec = null; + + /** + * Creates a new HyperparameterTuningJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob instance + */ + HyperparameterTuningJob.create = function create(properties) { + return new HyperparameterTuningJob(properties); + }; + + /** + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperparameterTuningJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) + $root.google.cloud.aiplatform.v1.StudySpec.encode(message.studySpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxTrialCount); + if (message.parallelTrialCount != null && Object.hasOwnProperty.call(message, "parallelTrialCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.parallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxFailedTrialCount); + if (message.trialJobSpec != null && Object.hasOwnProperty.call(message, "trialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trialJobSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.trials != null && message.trials.length) + for (var i = 0; i < message.trials.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.encode(message.trials[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).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 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.HyperparameterTuningJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperparameterTuningJob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.HyperparameterTuningJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.maxTrialCount = reader.int32(); + break; + } + case 6: { + message.parallelTrialCount = reader.int32(); + break; + } + case 7: { + message.maxFailedTrialCount = reader.int32(); + break; + } + case 8: { + message.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.trials && message.trials.length)) + message.trials = []; + message.trials.push($root.google.cloud.aiplatform.v1.Trial.decode(reader, reader.uint32())); + break; + } + case 10: { + message.state = reader.int32(); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 15: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 16: { + 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 17: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HyperparameterTuningJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HyperparameterTuningJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.verify(message.studySpec); + if (error) + return "studySpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) + if (!$util.isInteger(message.parallelTrialCount)) + return "parallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trialJobSpec); + if (error) + return "trialJobSpec." + error; + } + if (message.trials != null && message.hasOwnProperty("trials")) { + if (!Array.isArray(message.trials)) + return "trials: array expected"; + for (var i = 0; i < message.trials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.verify(message.trials[i]); + if (error) + return "trials." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.HyperparameterTuningJob} HyperparameterTuningJob + */ + HyperparameterTuningJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.HyperparameterTuningJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.HyperparameterTuningJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.studySpec != null) { + if (typeof object.studySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.studySpec: object expected"); + message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.fromObject(object.studySpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.parallelTrialCount != null) + message.parallelTrialCount = object.parallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + if (object.trialJobSpec != null) { + if (typeof object.trialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trialJobSpec: object expected"); + message.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trialJobSpec); + } + if (object.trials) { + if (!Array.isArray(object.trials)) + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trials: array expected"); + message.trials = []; + for (var i = 0; i < object.trials.length; ++i) { + if (typeof object.trials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.trials: object expected"); + message.trials[i] = $root.google.cloud.aiplatform.v1.Trial.fromObject(object.trials[i]); + } + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + case "JOB_STATE_PARTIALLY_SUCCEEDED": + case 11: + message.state = 11; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} message HyperparameterTuningJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HyperparameterTuningJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trials = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.studySpec = null; + object.maxTrialCount = 0; + object.parallelTrialCount = 0; + object.maxFailedTrialCount = 0; + object.trialJobSpec = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) + object.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.toObject(message.studySpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) + object.parallelTrialCount = message.parallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) + object.trialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trialJobSpec, options); + if (message.trials && message.trials.length) { + object.trials = []; + for (var j = 0; j < message.trials.length; ++j) + object.trials[j] = $root.google.cloud.aiplatform.v1.Trial.toObject(message.trials[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + return object; + }; + + /** + * Converts this HyperparameterTuningJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + * @returns {Object.} JSON object + */ + HyperparameterTuningJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HyperparameterTuningJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HyperparameterTuningJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.HyperparameterTuningJob"; + }; + + return HyperparameterTuningJob; + })(); + + v1.Study = (function() { + + /** + * Properties of a Study. + * @memberof google.cloud.aiplatform.v1 + * @interface IStudy + * @property {string|null} [name] Study name + * @property {string|null} [displayName] Study displayName + * @property {google.cloud.aiplatform.v1.IStudySpec|null} [studySpec] Study studySpec + * @property {google.cloud.aiplatform.v1.Study.State|null} [state] Study state + * @property {google.protobuf.ITimestamp|null} [createTime] Study createTime + * @property {string|null} [inactiveReason] Study inactiveReason + */ + + /** + * Constructs a new Study. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Study. + * @implements IStudy + * @constructor + * @param {google.cloud.aiplatform.v1.IStudy=} [properties] Properties to set + */ + function Study(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]]; + } + + /** + * Study name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.name = ""; + + /** + * Study displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.displayName = ""; + + /** + * Study studySpec. + * @member {google.cloud.aiplatform.v1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.studySpec = null; + + /** + * Study state. + * @member {google.cloud.aiplatform.v1.Study.State} state + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.state = 0; + + /** + * Study createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.createTime = null; + + /** + * Study inactiveReason. + * @member {string} inactiveReason + * @memberof google.cloud.aiplatform.v1.Study + * @instance + */ + Study.prototype.inactiveReason = ""; + + /** + * Creates a new Study instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {google.cloud.aiplatform.v1.IStudy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Study} Study instance + */ + Study.create = function create(properties) { + return new Study(properties); + }; + + /** + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {google.cloud.aiplatform.v1.IStudy} message Study message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Study.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) + $root.google.cloud.aiplatform.v1.StudySpec.encode(message.studySpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.inactiveReason != null && Object.hasOwnProperty.call(message, "inactiveReason")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.inactiveReason); + return writer; + }; + + /** + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Study.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {google.cloud.aiplatform.v1.IStudy} message Study message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Study.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Study message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Study} Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Study.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Study(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.inactiveReason = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Study message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Study} Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Study.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Study message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Study.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.verify(message.studySpec); + if (error) + return "studySpec." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) + if (!$util.isString(message.inactiveReason)) + return "inactiveReason: string expected"; + return null; + }; + + /** + * Creates a Study message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Study} Study + */ + Study.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Study) + return object; + var message = new $root.google.cloud.aiplatform.v1.Study(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.studySpec != null) { + if (typeof object.studySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Study.studySpec: object expected"); + message.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.fromObject(object.studySpec); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "INACTIVE": + case 2: + message.state = 2; + break; + case "COMPLETED": + case 3: + message.state = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Study.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.inactiveReason != null) + message.inactiveReason = String(object.inactiveReason); + return message; + }; + + /** + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {google.cloud.aiplatform.v1.Study} message Study + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Study.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.studySpec = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.inactiveReason = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) + object.studySpec = $root.google.cloud.aiplatform.v1.StudySpec.toObject(message.studySpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Study.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Study.State[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) + object.inactiveReason = message.inactiveReason; + return object; + }; + + /** + * Converts this Study to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Study + * @instance + * @returns {Object.} JSON object + */ + Study.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Study + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Study + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Study.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Study"; + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1.Study.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} INACTIVE=2 INACTIVE value + * @property {number} COMPLETED=3 COMPLETED value + */ + Study.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "INACTIVE"] = 2; + values[valuesById[3] = "COMPLETED"] = 3; + return values; + })(); + + return Study; + })(); + + v1.Trial = (function() { + + /** + * Properties of a Trial. + * @memberof google.cloud.aiplatform.v1 + * @interface ITrial + * @property {string|null} [name] Trial name + * @property {string|null} [id] Trial id + * @property {google.cloud.aiplatform.v1.Trial.State|null} [state] Trial state + * @property {Array.|null} [parameters] Trial parameters + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] Trial finalMeasurement + * @property {Array.|null} [measurements] Trial measurements + * @property {google.protobuf.ITimestamp|null} [startTime] Trial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Trial endTime + * @property {string|null} [clientId] Trial clientId + * @property {string|null} [infeasibleReason] Trial infeasibleReason + * @property {string|null} [customJob] Trial customJob + * @property {Object.|null} [webAccessUris] Trial webAccessUris + */ + + /** + * Constructs a new Trial. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Trial. + * @implements ITrial + * @constructor + * @param {google.cloud.aiplatform.v1.ITrial=} [properties] Properties to set + */ + function Trial(properties) { + this.parameters = []; + this.measurements = []; + this.webAccessUris = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Trial name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.name = ""; + + /** + * Trial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.id = ""; + + /** + * Trial state. + * @member {google.cloud.aiplatform.v1.Trial.State} state + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.state = 0; + + /** + * Trial parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.parameters = $util.emptyArray; + + /** + * Trial finalMeasurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.finalMeasurement = null; + + /** + * Trial measurements. + * @member {Array.} measurements + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.measurements = $util.emptyArray; + + /** + * Trial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.startTime = null; + + /** + * Trial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.endTime = null; + + /** + * Trial clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.clientId = ""; + + /** + * Trial infeasibleReason. + * @member {string} infeasibleReason + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.infeasibleReason = ""; + + /** + * Trial customJob. + * @member {string} customJob + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.customJob = ""; + + /** + * Trial webAccessUris. + * @member {Object.} webAccessUris + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + */ + Trial.prototype.webAccessUris = $util.emptyObject; + + /** + * Creates a new Trial instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {google.cloud.aiplatform.v1.ITrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Trial} Trial instance + */ + Trial.create = function create(properties) { + return new Trial(properties); + }; + + /** + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {google.cloud.aiplatform.v1.ITrial} message Trial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Trial.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.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.measurements != null && message.measurements.length) + for (var i = 0; i < message.measurements.length; ++i) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.measurements[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); + if (message.infeasibleReason != null && Object.hasOwnProperty.call(message, "infeasibleReason")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.infeasibleReason); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.customJob); + if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) + for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {google.cloud.aiplatform.v1.ITrial} message Trial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Trial.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Trial message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Trial} Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Trial.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Trial(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.id = reader.string(); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.aiplatform.v1.Trial.Parameter.decode(reader, reader.uint32())); + break; + } + case 5: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.measurements && message.measurements.length)) + message.measurements = []; + message.measurements.push($root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32())); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.clientId = reader.string(); + break; + } + case 10: { + message.infeasibleReason = reader.string(); + break; + } + case 11: { + message.customJob = reader.string(); + break; + } + case 12: { + if (message.webAccessUris === $util.emptyObject) + message.webAccessUris = {}; + 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.webAccessUris[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Trial message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Trial} Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Trial.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Trial message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Trial.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.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); + if (error) + return "finalMeasurement." + error; + } + if (message.measurements != null && message.hasOwnProperty("measurements")) { + if (!Array.isArray(message.measurements)) + return "measurements: array expected"; + for (var i = 0; i < message.measurements.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.measurements[i]); + if (error) + return "measurements." + error; + } + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + if (!$util.isString(message.infeasibleReason)) + return "infeasibleReason: string expected"; + if (message.customJob != null && message.hasOwnProperty("customJob")) + if (!$util.isString(message.customJob)) + return "customJob: string expected"; + if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { + if (!$util.isObject(message.webAccessUris)) + return "webAccessUris: object expected"; + var key = Object.keys(message.webAccessUris); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webAccessUris[key[i]])) + return "webAccessUris: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Trial} Trial + */ + Trial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Trial) + return object; + var message = new $root.google.cloud.aiplatform.v1.Trial(); + if (object.name != null) + message.name = String(object.name); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.aiplatform.v1.Trial.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.parameters: object expected"); + message.parameters[i] = $root.google.cloud.aiplatform.v1.Trial.Parameter.fromObject(object.parameters[i]); + } + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + } + if (object.measurements) { + if (!Array.isArray(object.measurements)) + throw TypeError(".google.cloud.aiplatform.v1.Trial.measurements: array expected"); + message.measurements = []; + for (var i = 0; i < object.measurements.length; ++i) { + if (typeof object.measurements[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.measurements: object expected"); + message.measurements[i] = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.measurements[i]); + } + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.infeasibleReason != null) + message.infeasibleReason = String(object.infeasibleReason); + if (object.customJob != null) + message.customJob = String(object.customJob); + if (object.webAccessUris) { + if (typeof object.webAccessUris !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.webAccessUris: object expected"); + message.webAccessUris = {}; + for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) + message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {google.cloud.aiplatform.v1.Trial} message Trial + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Trial.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.parameters = []; + object.measurements = []; + } + if (options.objects || options.defaults) + object.webAccessUris = {}; + if (options.defaults) { + object.name = ""; + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + object.clientId = ""; + object.infeasibleReason = ""; + object.customJob = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Trial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Trial.State[message.state] : message.state; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.aiplatform.v1.Trial.Parameter.toObject(message.parameters[j], options); + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); + if (message.measurements && message.measurements.length) { + object.measurements = []; + for (var j = 0; j < message.measurements.length; ++j) + object.measurements[j] = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.measurements[j], options); + } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + object.infeasibleReason = message.infeasibleReason; + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = message.customJob; + var keys2; + if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { + object.webAccessUris = {}; + for (var j = 0; j < keys2.length; ++j) + object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; + } + return object; + }; + + /** + * Converts this Trial to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Trial + * @instance + * @returns {Object.} JSON object + */ + Trial.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Trial + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Trial + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Trial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Trial"; + }; + + Trial.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof google.cloud.aiplatform.v1.Trial + * @interface IParameter + * @property {string|null} [parameterId] Parameter parameterId + * @property {google.protobuf.IValue|null} [value] Parameter value + */ + + /** + * Constructs a new Parameter. + * @memberof google.cloud.aiplatform.v1.Trial + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.aiplatform.v1.Trial.IParameter=} [properties] Properties to set + */ + function Parameter(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]]; + } + + /** + * Parameter parameterId. + * @member {string} parameterId + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @instance + */ + Parameter.prototype.parameterId = ""; + + /** + * Parameter value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @instance + */ + Parameter.prototype.value = null; + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {google.cloud.aiplatform.v1.Trial.IParameter=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {google.cloud.aiplatform.v1.Trial.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Trial.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {google.cloud.aiplatform.v1.Trial.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Trial.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parameterId = reader.string(); + break; + } + case 2: { + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Trial.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Trial.Parameter) + return object; + var message = new $root.google.cloud.aiplatform.v1.Trial.Parameter(); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Trial.Parameter.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {google.cloud.aiplatform.v1.Trial.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parameterId = ""; + object.value = null; + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); + return object; + }; + + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Parameter + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Trial.Parameter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Trial.Parameter"; + }; + + return Parameter; + })(); + + /** + * State enum. + * @name google.cloud.aiplatform.v1.Trial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + Trial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return Trial; + })(); + + v1.TrialContext = (function() { + + /** + * Properties of a TrialContext. + * @memberof google.cloud.aiplatform.v1 + * @interface ITrialContext + * @property {string|null} [description] TrialContext description + * @property {Array.|null} [parameters] TrialContext parameters + */ + + /** + * Constructs a new TrialContext. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a TrialContext. + * @implements ITrialContext + * @constructor + * @param {google.cloud.aiplatform.v1.ITrialContext=} [properties] Properties to set + */ + function TrialContext(properties) { + this.parameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrialContext description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.TrialContext + * @instance + */ + TrialContext.prototype.description = ""; + + /** + * TrialContext parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1.TrialContext + * @instance + */ + TrialContext.prototype.parameters = $util.emptyArray; + + /** + * Creates a new TrialContext instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {google.cloud.aiplatform.v1.ITrialContext=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext instance + */ + TrialContext.create = function create(properties) { + return new TrialContext(properties); + }; + + /** + * Encodes the specified TrialContext message. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {google.cloud.aiplatform.v1.ITrialContext} message TrialContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrialContext.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.aiplatform.v1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TrialContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrialContext.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {google.cloud.aiplatform.v1.ITrialContext} message TrialContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrialContext.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrialContext message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrialContext.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrialContext(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.description = reader.string(); + break; + } + case 2: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.aiplatform.v1.Trial.Parameter.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrialContext message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrialContext.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrialContext message. + * @function verify + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrialContext.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Trial.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + return null; + }; + + /** + * Creates a TrialContext message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.TrialContext} TrialContext + */ + TrialContext.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TrialContext) + return object; + var message = new $root.google.cloud.aiplatform.v1.TrialContext(); + if (object.description != null) + message.description = String(object.description); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.aiplatform.v1.TrialContext.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrialContext.parameters: object expected"); + message.parameters[i] = $root.google.cloud.aiplatform.v1.Trial.Parameter.fromObject(object.parameters[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TrialContext message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {google.cloud.aiplatform.v1.TrialContext} message TrialContext + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrialContext.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parameters = []; + if (options.defaults) + object.description = ""; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.aiplatform.v1.Trial.Parameter.toObject(message.parameters[j], options); + } + return object; + }; + + /** + * Converts this TrialContext to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.TrialContext + * @instance + * @returns {Object.} JSON object + */ + TrialContext.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TrialContext + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.TrialContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrialContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrialContext"; + }; + + return TrialContext; + })(); + + v1.StudyTimeConstraint = (function() { + + /** + * Properties of a StudyTimeConstraint. + * @memberof google.cloud.aiplatform.v1 + * @interface IStudyTimeConstraint + * @property {google.protobuf.IDuration|null} [maxDuration] StudyTimeConstraint maxDuration + * @property {google.protobuf.ITimestamp|null} [endTime] StudyTimeConstraint endTime + */ + + /** + * Constructs a new StudyTimeConstraint. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StudyTimeConstraint. + * @implements IStudyTimeConstraint + * @constructor + * @param {google.cloud.aiplatform.v1.IStudyTimeConstraint=} [properties] Properties to set + */ + function StudyTimeConstraint(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]]; + } + + /** + * StudyTimeConstraint maxDuration. + * @member {google.protobuf.IDuration|null|undefined} maxDuration + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @instance + */ + StudyTimeConstraint.prototype.maxDuration = null; + + /** + * StudyTimeConstraint endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @instance + */ + StudyTimeConstraint.prototype.endTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StudyTimeConstraint constraint. + * @member {"maxDuration"|"endTime"|undefined} constraint + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @instance + */ + Object.defineProperty(StudyTimeConstraint.prototype, "constraint", { + get: $util.oneOfGetter($oneOfFields = ["maxDuration", "endTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StudyTimeConstraint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1.IStudyTimeConstraint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudyTimeConstraint} StudyTimeConstraint instance + */ + StudyTimeConstraint.create = function create(properties) { + return new StudyTimeConstraint(properties); + }; + + /** + * Encodes the specified StudyTimeConstraint message. Does not implicitly {@link google.cloud.aiplatform.v1.StudyTimeConstraint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1.IStudyTimeConstraint} message StudyTimeConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyTimeConstraint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxDuration != null && Object.hasOwnProperty.call(message, "maxDuration")) + $root.google.protobuf.Duration.encode(message.maxDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudyTimeConstraint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudyTimeConstraint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1.IStudyTimeConstraint} message StudyTimeConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyTimeConstraint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudyTimeConstraint} StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyTimeConstraint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudyTimeConstraint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudyTimeConstraint} StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyTimeConstraint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudyTimeConstraint message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudyTimeConstraint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxDuration != null && message.hasOwnProperty("maxDuration")) { + properties.constraint = 1; + { + var error = $root.google.protobuf.Duration.verify(message.maxDuration); + if (error) + return "maxDuration." + error; + } + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + if (properties.constraint === 1) + return "constraint: multiple values"; + properties.constraint = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + } + return null; + }; + + /** + * Creates a StudyTimeConstraint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudyTimeConstraint} StudyTimeConstraint + */ + StudyTimeConstraint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudyTimeConstraint) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudyTimeConstraint(); + if (object.maxDuration != null) { + if (typeof object.maxDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudyTimeConstraint.maxDuration: object expected"); + message.maxDuration = $root.google.protobuf.Duration.fromObject(object.maxDuration); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudyTimeConstraint.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a StudyTimeConstraint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1.StudyTimeConstraint} message StudyTimeConstraint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudyTimeConstraint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.maxDuration != null && message.hasOwnProperty("maxDuration")) { + object.maxDuration = $root.google.protobuf.Duration.toObject(message.maxDuration, options); + if (options.oneofs) + object.constraint = "maxDuration"; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (options.oneofs) + object.constraint = "endTime"; + } + return object; + }; + + /** + * Converts this StudyTimeConstraint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @instance + * @returns {Object.} JSON object + */ + StudyTimeConstraint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StudyTimeConstraint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudyTimeConstraint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StudyTimeConstraint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudyTimeConstraint"; + }; + + return StudyTimeConstraint; + })(); + + v1.StudySpec = (function() { + + /** + * Properties of a StudySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IStudySpec + * @property {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null} [decayCurveStoppingSpec] StudySpec decayCurveStoppingSpec + * @property {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null} [medianAutomatedStoppingSpec] StudySpec medianAutomatedStoppingSpec + * @property {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null} [convexAutomatedStoppingSpec] StudySpec convexAutomatedStoppingSpec + * @property {Array.|null} [metrics] StudySpec metrics + * @property {Array.|null} [parameters] StudySpec parameters + * @property {google.cloud.aiplatform.v1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm + * @property {google.cloud.aiplatform.v1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise + * @property {google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType + * @property {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig|null} [studyStoppingConfig] StudySpec studyStoppingConfig + */ + + /** + * Constructs a new StudySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StudySpec. + * @implements IStudySpec + * @constructor + * @param {google.cloud.aiplatform.v1.IStudySpec=} [properties] Properties to set + */ + function StudySpec(properties) { + this.metrics = []; + this.parameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StudySpec decayCurveStoppingSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec|null|undefined} decayCurveStoppingSpec + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.decayCurveStoppingSpec = null; + + /** + * StudySpec medianAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec|null|undefined} medianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.medianAutomatedStoppingSpec = null; + + /** + * StudySpec convexAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.convexAutomatedStoppingSpec = null; + + /** + * StudySpec metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.metrics = $util.emptyArray; + + /** + * StudySpec parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.parameters = $util.emptyArray; + + /** + * StudySpec algorithm. + * @member {google.cloud.aiplatform.v1.StudySpec.Algorithm} algorithm + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.algorithm = 0; + + /** + * StudySpec observationNoise. + * @member {google.cloud.aiplatform.v1.StudySpec.ObservationNoise} observationNoise + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.observationNoise = 0; + + /** + * StudySpec measurementSelectionType. + * @member {google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType} measurementSelectionType + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.measurementSelectionType = 0; + + /** + * StudySpec studyStoppingConfig. + * @member {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig|null|undefined} studyStoppingConfig + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + StudySpec.prototype.studyStoppingConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StudySpec automatedStoppingSpec. + * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { + get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexAutomatedStoppingSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * StudySpec _studyStoppingConfig. + * @member {"studyStoppingConfig"|undefined} _studyStoppingConfig + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + */ + Object.defineProperty(StudySpec.prototype, "_studyStoppingConfig", { + get: $util.oneOfGetter($oneOfFields = ["studyStoppingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StudySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1.IStudySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec instance + */ + StudySpec.create = function create(properties) { + return new StudySpec(properties); + }; + + /** + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1.IStudySpec} message StudySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.encode(message.metrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.algorithm); + if (message.decayCurveStoppingSpec != null && Object.hasOwnProperty.call(message, "decayCurveStoppingSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.encode(message.decayCurveStoppingSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.medianAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "medianAutomatedStoppingSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.encode(message.medianAutomatedStoppingSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.observationNoise != null && Object.hasOwnProperty.call(message, "observationNoise")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.observationNoise); + if (message.measurementSelectionType != null && Object.hasOwnProperty.call(message, "measurementSelectionType")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.measurementSelectionType); + if (message.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.studyStoppingConfig != null && Object.hasOwnProperty.call(message, "studyStoppingConfig")) + $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.encode(message.studyStoppingConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1.IStudySpec} message StudySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudySpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + } + case 9: { + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + } + case 1: { + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.decode(reader, reader.uint32())); + break; + } + case 3: { + message.algorithm = reader.int32(); + break; + } + case 6: { + message.observationNoise = reader.int32(); + break; + } + case 7: { + message.measurementSelectionType = reader.int32(); + break; + } + case 11: { + message.studyStoppingConfig = $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify(message.decayCurveStoppingSpec); + if (error) + return "decayCurveStoppingSpec." + error; + } + } + if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { + if (properties.automatedStoppingSpec === 1) + return "automatedStoppingSpec: multiple values"; + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify(message.medianAutomatedStoppingSpec); + if (error) + return "medianAutomatedStoppingSpec." + error; + } + } + if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { + if (properties.automatedStoppingSpec === 1) + return "automatedStoppingSpec: multiple values"; + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify(message.convexAutomatedStoppingSpec); + if (error) + return "convexAutomatedStoppingSpec." + error; + } + } + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.algorithm != null && message.hasOwnProperty("algorithm")) + switch (message.algorithm) { + default: + return "algorithm: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) + switch (message.observationNoise) { + default: + return "observationNoise: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) + switch (message.measurementSelectionType) { + default: + return "measurementSelectionType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.studyStoppingConfig != null && message.hasOwnProperty("studyStoppingConfig")) { + properties._studyStoppingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.verify(message.studyStoppingConfig); + if (error) + return "studyStoppingConfig." + error; + } + } + return null; + }; + + /** + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec} StudySpec + */ + StudySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec(); + if (object.decayCurveStoppingSpec != null) { + if (typeof object.decayCurveStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.decayCurveStoppingSpec: object expected"); + message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.fromObject(object.decayCurveStoppingSpec); + } + if (object.medianAutomatedStoppingSpec != null) { + if (typeof object.medianAutomatedStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.medianAutomatedStoppingSpec: object expected"); + message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.fromObject(object.medianAutomatedStoppingSpec); + } + if (object.convexAutomatedStoppingSpec != null) { + if (typeof object.convexAutomatedStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.convexAutomatedStoppingSpec: object expected"); + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.fromObject(object.convexAutomatedStoppingSpec); + } + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.fromObject(object.metrics[i]); + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.parameters: object expected"); + message.parameters[i] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.fromObject(object.parameters[i]); + } + } + switch (object.algorithm) { + default: + if (typeof object.algorithm === "number") { + message.algorithm = object.algorithm; + break; + } + break; + case "ALGORITHM_UNSPECIFIED": + case 0: + message.algorithm = 0; + break; + case "GRID_SEARCH": + case 2: + message.algorithm = 2; + break; + case "RANDOM_SEARCH": + case 3: + message.algorithm = 3; + break; + } + switch (object.observationNoise) { + default: + if (typeof object.observationNoise === "number") { + message.observationNoise = object.observationNoise; + break; + } + break; + case "OBSERVATION_NOISE_UNSPECIFIED": + case 0: + message.observationNoise = 0; + break; + case "LOW": + case 1: + message.observationNoise = 1; + break; + case "HIGH": + case 2: + message.observationNoise = 2; + break; + } + switch (object.measurementSelectionType) { + default: + if (typeof object.measurementSelectionType === "number") { + message.measurementSelectionType = object.measurementSelectionType; + break; + } + break; + case "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED": + case 0: + message.measurementSelectionType = 0; + break; + case "LAST_MEASUREMENT": + case 1: + message.measurementSelectionType = 1; + break; + case "BEST_MEASUREMENT": + case 2: + message.measurementSelectionType = 2; + break; + } + if (object.studyStoppingConfig != null) { + if (typeof object.studyStoppingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.studyStoppingConfig: object expected"); + message.studyStoppingConfig = $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.fromObject(object.studyStoppingConfig); + } + return message; + }; + + /** + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec} message StudySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.metrics = []; + object.parameters = []; + } + if (options.defaults) { + object.algorithm = options.enums === String ? "ALGORITHM_UNSPECIFIED" : 0; + object.observationNoise = options.enums === String ? "OBSERVATION_NOISE_UNSPECIFIED" : 0; + object.measurementSelectionType = options.enums === String ? "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED" : 0; + } + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.toObject(message.metrics[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.toObject(message.parameters[j], options); + } + if (message.algorithm != null && message.hasOwnProperty("algorithm")) + object.algorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.Algorithm[message.algorithm] === undefined ? message.algorithm : $root.google.cloud.aiplatform.v1.StudySpec.Algorithm[message.algorithm] : message.algorithm; + if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { + object.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.toObject(message.decayCurveStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "decayCurveStoppingSpec"; + } + if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { + object.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.toObject(message.medianAutomatedStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "medianAutomatedStoppingSpec"; + } + if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) + object.observationNoise = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.ObservationNoise[message.observationNoise] === undefined ? message.observationNoise : $root.google.cloud.aiplatform.v1.StudySpec.ObservationNoise[message.observationNoise] : message.observationNoise; + if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) + object.measurementSelectionType = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] === undefined ? message.measurementSelectionType : $root.google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] : message.measurementSelectionType; + if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { + object.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.toObject(message.convexAutomatedStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; + } + if (message.studyStoppingConfig != null && message.hasOwnProperty("studyStoppingConfig")) { + object.studyStoppingConfig = $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.toObject(message.studyStoppingConfig, options); + if (options.oneofs) + object._studyStoppingConfig = "studyStoppingConfig"; + } + return object; + }; + + /** + * Converts this StudySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec + * @instance + * @returns {Object.} JSON object + */ + StudySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StudySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StudySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec"; + }; + + StudySpec.MetricSpec = (function() { + + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig + */ + + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; + + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; + + /** + * MetricSpec safetyConfig. + * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.safetyConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricSpec _safetyConfig. + * @member {"safetyConfig"|undefined} _safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { + get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) + $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + case 3: { + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + properties._safetyConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); + if (error) + return "safetyConfig." + error; + } + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } + break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + if (object.safetyConfig != null) { + if (typeof object.safetyConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.MetricSpec.safetyConfig: object expected"); + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + object.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); + if (options.oneofs) + object._safetyConfig = "safetyConfig"; + } + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec"; + }; + + MetricSpec.SafetyMetricConfig = (function() { + + /** + * Properties of a SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @interface ISafetyMetricConfig + * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold + * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction + */ + + /** + * Constructs a new SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @classdesc Represents a SafetyMetricConfig. + * @implements ISafetyMetricConfig + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + */ + function SafetyMetricConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SafetyMetricConfig safetyThreshold. + * @member {number} safetyThreshold + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.safetyThreshold = 0; + + /** + * SafetyMetricConfig desiredMinSafeTrialsFraction. + * @member {number|null|undefined} desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyMetricConfig _desiredMinSafeTrialsFraction. + * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { + get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance + */ + SafetyMetricConfig.create = function create(properties) { + return new SafetyMetricConfig(properties); + }; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); + if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); + return writer; + }; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.safetyThreshold = reader.double(); + break; + } + case 2: { + message.desiredMinSafeTrialsFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyMetricConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyMetricConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + if (typeof message.safetyThreshold !== "number") + return "safetyThreshold: number expected"; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + properties._desiredMinSafeTrialsFraction = 1; + if (typeof message.desiredMinSafeTrialsFraction !== "number") + return "desiredMinSafeTrialsFraction: number expected"; + } + return null; + }; + + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + */ + SafetyMetricConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); + if (object.safetyThreshold != null) + message.safetyThreshold = Number(object.safetyThreshold); + if (object.desiredMinSafeTrialsFraction != null) + message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); + return message; + }; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyMetricConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.safetyThreshold = 0; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; + if (options.oneofs) + object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; + } + return object; + }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + * @returns {Object.} JSON object + */ + SafetyMetricConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyMetricConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"; + }; + + return SafetyMetricConfig; + })(); + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + StudySpec.ParameterSpec = (function() { + + /** + * Properties of a ParameterSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IParameterSpec + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec|null} [doubleValueSpec] ParameterSpec doubleValueSpec + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec|null} [integerValueSpec] ParameterSpec integerValueSpec + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec|null} [categoricalValueSpec] ParameterSpec categoricalValueSpec + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec|null} [discreteValueSpec] ParameterSpec discreteValueSpec + * @property {string|null} [parameterId] ParameterSpec parameterId + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType|null} [scaleType] ParameterSpec scaleType + * @property {Array.|null} [conditionalParameterSpecs] ParameterSpec conditionalParameterSpecs + */ + + /** + * Constructs a new ParameterSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a ParameterSpec. + * @implements IParameterSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec=} [properties] Properties to set + */ + function ParameterSpec(properties) { + this.conditionalParameterSpecs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterSpec doubleValueSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec|null|undefined} doubleValueSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.doubleValueSpec = null; + + /** + * ParameterSpec integerValueSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec|null|undefined} integerValueSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.integerValueSpec = null; + + /** + * ParameterSpec categoricalValueSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec|null|undefined} categoricalValueSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.categoricalValueSpec = null; + + /** + * ParameterSpec discreteValueSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec|null|undefined} discreteValueSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.discreteValueSpec = null; + + /** + * ParameterSpec parameterId. + * @member {string} parameterId + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.parameterId = ""; + + /** + * ParameterSpec scaleType. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType} scaleType + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.scaleType = 0; + + /** + * ParameterSpec conditionalParameterSpecs. + * @member {Array.} conditionalParameterSpecs + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.conditionalParameterSpecs = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ParameterSpec parameterValueSpec. + * @member {"doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"|undefined} parameterValueSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + */ + Object.defineProperty(ParameterSpec.prototype, "parameterValueSpec", { + get: $util.oneOfGetter($oneOfFields = ["doubleValueSpec", "integerValueSpec", "categoricalValueSpec", "discreteValueSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ParameterSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec instance + */ + ParameterSpec.create = function create(properties) { + return new ParameterSpec(properties); + }; + + /** + * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); + if (message.doubleValueSpec != null && Object.hasOwnProperty.call(message, "doubleValueSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.encode(message.doubleValueSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.integerValueSpec != null && Object.hasOwnProperty.call(message, "integerValueSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.encode(message.integerValueSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.categoricalValueSpec != null && Object.hasOwnProperty.call(message, "categoricalValueSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.encode(message.categoricalValueSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.discreteValueSpec != null && Object.hasOwnProperty.call(message, "discreteValueSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.encode(message.discreteValueSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.scaleType != null && Object.hasOwnProperty.call(message, "scaleType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scaleType); + if (message.conditionalParameterSpecs != null && message.conditionalParameterSpecs.length) + for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.encode(message.conditionalParameterSpecs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParameterSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.decode(reader, reader.uint32()); + break; + } + case 1: { + message.parameterId = reader.string(); + break; + } + case 6: { + message.scaleType = reader.int32(); + break; + } + case 10: { + if (!(message.conditionalParameterSpecs && message.conditionalParameterSpecs.length)) + message.conditionalParameterSpecs = []; + message.conditionalParameterSpecs.push($root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParameterSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify(message.doubleValueSpec); + if (error) + return "doubleValueSpec." + error; + } + } + if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify(message.integerValueSpec); + if (error) + return "integerValueSpec." + error; + } + } + if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify(message.categoricalValueSpec); + if (error) + return "categoricalValueSpec." + error; + } + } + if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify(message.discreteValueSpec); + if (error) + return "discreteValueSpec." + error; + } + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + if (message.scaleType != null && message.hasOwnProperty("scaleType")) + switch (message.scaleType) { + default: + return "scaleType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.conditionalParameterSpecs != null && message.hasOwnProperty("conditionalParameterSpecs")) { + if (!Array.isArray(message.conditionalParameterSpecs)) + return "conditionalParameterSpecs: array expected"; + for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify(message.conditionalParameterSpecs[i]); + if (error) + return "conditionalParameterSpecs." + error; + } + } + return null; + }; + + /** + * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} ParameterSpec + */ + ParameterSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec(); + if (object.doubleValueSpec != null) { + if (typeof object.doubleValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.doubleValueSpec: object expected"); + message.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.fromObject(object.doubleValueSpec); + } + if (object.integerValueSpec != null) { + if (typeof object.integerValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.integerValueSpec: object expected"); + message.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.fromObject(object.integerValueSpec); + } + if (object.categoricalValueSpec != null) { + if (typeof object.categoricalValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.categoricalValueSpec: object expected"); + message.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.fromObject(object.categoricalValueSpec); + } + if (object.discreteValueSpec != null) { + if (typeof object.discreteValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.discreteValueSpec: object expected"); + message.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.fromObject(object.discreteValueSpec); + } + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + switch (object.scaleType) { + default: + if (typeof object.scaleType === "number") { + message.scaleType = object.scaleType; + break; + } + break; + case "SCALE_TYPE_UNSPECIFIED": + case 0: + message.scaleType = 0; + break; + case "UNIT_LINEAR_SCALE": + case 1: + message.scaleType = 1; + break; + case "UNIT_LOG_SCALE": + case 2: + message.scaleType = 2; + break; + case "UNIT_REVERSE_LOG_SCALE": + case 3: + message.scaleType = 3; + break; + } + if (object.conditionalParameterSpecs) { + if (!Array.isArray(object.conditionalParameterSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.conditionalParameterSpecs: array expected"); + message.conditionalParameterSpecs = []; + for (var i = 0; i < object.conditionalParameterSpecs.length; ++i) { + if (typeof object.conditionalParameterSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.conditionalParameterSpecs: object expected"); + message.conditionalParameterSpecs[i] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.fromObject(object.conditionalParameterSpecs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec} message ParameterSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParameterSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.conditionalParameterSpecs = []; + if (options.defaults) { + object.parameterId = ""; + object.scaleType = options.enums === String ? "SCALE_TYPE_UNSPECIFIED" : 0; + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { + object.doubleValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.toObject(message.doubleValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "doubleValueSpec"; + } + if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { + object.integerValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.toObject(message.integerValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "integerValueSpec"; + } + if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { + object.categoricalValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.toObject(message.categoricalValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "categoricalValueSpec"; + } + if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { + object.discreteValueSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.toObject(message.discreteValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "discreteValueSpec"; + } + if (message.scaleType != null && message.hasOwnProperty("scaleType")) + object.scaleType = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType[message.scaleType] === undefined ? message.scaleType : $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType[message.scaleType] : message.scaleType; + if (message.conditionalParameterSpecs && message.conditionalParameterSpecs.length) { + object.conditionalParameterSpecs = []; + for (var j = 0; j < message.conditionalParameterSpecs.length; ++j) + object.conditionalParameterSpecs[j] = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.toObject(message.conditionalParameterSpecs[j], options); + } + return object; + }; + + /** + * Converts this ParameterSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @instance + * @returns {Object.} JSON object + */ + ParameterSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ParameterSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ParameterSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec"; + }; + + ParameterSpec.DoubleValueSpec = (function() { + + /** + * Properties of a DoubleValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @interface IDoubleValueSpec + * @property {number|null} [minValue] DoubleValueSpec minValue + * @property {number|null} [maxValue] DoubleValueSpec maxValue + * @property {number|null} [defaultValue] DoubleValueSpec defaultValue + */ + + /** + * Constructs a new DoubleValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @classdesc Represents a DoubleValueSpec. + * @implements IDoubleValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set + */ + function DoubleValueSpec(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]]; + } + + /** + * DoubleValueSpec minValue. + * @member {number} minValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.minValue = 0; + + /** + * DoubleValueSpec maxValue. + * @member {number} maxValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.maxValue = 0; + + /** + * DoubleValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DoubleValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + Object.defineProperty(DoubleValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DoubleValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec instance + */ + DoubleValueSpec.create = function create(properties) { + return new DoubleValueSpec(properties); + }; + + /** + * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.minValue); + if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.maxValue); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.minValue = reader.double(); + break; + } + case 2: { + message.maxValue = reader.double(); + break; + } + case 4: { + message.defaultValue = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DoubleValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (typeof message.minValue !== "number") + return "minValue: number expected"; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (typeof message.maxValue !== "number") + return "maxValue: number expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (typeof message.defaultValue !== "number") + return "defaultValue: number expected"; + } + return null; + }; + + /** + * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + */ + DoubleValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(); + if (object.minValue != null) + message.minValue = Number(object.minValue); + if (object.maxValue != null) + message.maxValue = Number(object.maxValue); + if (object.defaultValue != null) + message.defaultValue = Number(object.defaultValue); + return message; + }; + + /** + * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec} message DoubleValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DoubleValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.minValue = 0; + object.maxValue = 0; + } + if (message.minValue != null && message.hasOwnProperty("minValue")) + object.minValue = options.json && !isFinite(message.minValue) ? String(message.minValue) : message.minValue; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + object.maxValue = options.json && !isFinite(message.maxValue) ? String(message.maxValue) : message.maxValue; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; + + /** + * Converts this DoubleValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + * @returns {Object.} JSON object + */ + DoubleValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DoubleValueSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DoubleValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec"; + }; + + return DoubleValueSpec; + })(); + + ParameterSpec.IntegerValueSpec = (function() { + + /** + * Properties of an IntegerValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @interface IIntegerValueSpec + * @property {number|Long|null} [minValue] IntegerValueSpec minValue + * @property {number|Long|null} [maxValue] IntegerValueSpec maxValue + * @property {number|Long|null} [defaultValue] IntegerValueSpec defaultValue + */ + + /** + * Constructs a new IntegerValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @classdesc Represents an IntegerValueSpec. + * @implements IIntegerValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set + */ + function IntegerValueSpec(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]]; + } + + /** + * IntegerValueSpec minValue. + * @member {number|Long} minValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.minValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IntegerValueSpec maxValue. + * @member {number|Long} maxValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.maxValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IntegerValueSpec defaultValue. + * @member {number|Long|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IntegerValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + Object.defineProperty(IntegerValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IntegerValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec instance + */ + IntegerValueSpec.create = function create(properties) { + return new IntegerValueSpec(properties); + }; + + /** + * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntegerValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minValue); + if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxValue); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntegerValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntegerValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.minValue = reader.int64(); + break; + } + case 2: { + message.maxValue = reader.int64(); + break; + } + case 4: { + message.defaultValue = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntegerValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IntegerValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntegerValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (!$util.isInteger(message.minValue) && !(message.minValue && $util.isInteger(message.minValue.low) && $util.isInteger(message.minValue.high))) + return "minValue: integer|Long expected"; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (!$util.isInteger(message.maxValue) && !(message.maxValue && $util.isInteger(message.maxValue.low) && $util.isInteger(message.maxValue.high))) + return "maxValue: integer|Long expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (!$util.isInteger(message.defaultValue) && !(message.defaultValue && $util.isInteger(message.defaultValue.low) && $util.isInteger(message.defaultValue.high))) + return "defaultValue: integer|Long expected"; + } + return null; + }; + + /** + * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + */ + IntegerValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(); + if (object.minValue != null) + if ($util.Long) + (message.minValue = $util.Long.fromValue(object.minValue)).unsigned = false; + else if (typeof object.minValue === "string") + message.minValue = parseInt(object.minValue, 10); + else if (typeof object.minValue === "number") + message.minValue = object.minValue; + else if (typeof object.minValue === "object") + message.minValue = new $util.LongBits(object.minValue.low >>> 0, object.minValue.high >>> 0).toNumber(); + if (object.maxValue != null) + if ($util.Long) + (message.maxValue = $util.Long.fromValue(object.maxValue)).unsigned = false; + else if (typeof object.maxValue === "string") + message.maxValue = parseInt(object.maxValue, 10); + else if (typeof object.maxValue === "number") + message.maxValue = object.maxValue; + else if (typeof object.maxValue === "object") + message.maxValue = new $util.LongBits(object.maxValue.low >>> 0, object.maxValue.high >>> 0).toNumber(); + if (object.defaultValue != null) + if ($util.Long) + (message.defaultValue = $util.Long.fromValue(object.defaultValue)).unsigned = false; + else if (typeof object.defaultValue === "string") + message.defaultValue = parseInt(object.defaultValue, 10); + else if (typeof object.defaultValue === "number") + message.defaultValue = object.defaultValue; + else if (typeof object.defaultValue === "object") + message.defaultValue = new $util.LongBits(object.defaultValue.low >>> 0, object.defaultValue.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec} message IntegerValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntegerValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxValue = options.longs === String ? "0" : 0; + } + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (typeof message.minValue === "number") + object.minValue = options.longs === String ? String(message.minValue) : message.minValue; + else + object.minValue = options.longs === String ? $util.Long.prototype.toString.call(message.minValue) : options.longs === Number ? new $util.LongBits(message.minValue.low >>> 0, message.minValue.high >>> 0).toNumber() : message.minValue; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (typeof message.maxValue === "number") + object.maxValue = options.longs === String ? String(message.maxValue) : message.maxValue; + else + object.maxValue = options.longs === String ? $util.Long.prototype.toString.call(message.maxValue) : options.longs === Number ? new $util.LongBits(message.maxValue.low >>> 0, message.maxValue.high >>> 0).toNumber() : message.maxValue; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + if (typeof message.defaultValue === "number") + object.defaultValue = options.longs === String ? String(message.defaultValue) : message.defaultValue; + else + object.defaultValue = options.longs === String ? $util.Long.prototype.toString.call(message.defaultValue) : options.longs === Number ? new $util.LongBits(message.defaultValue.low >>> 0, message.defaultValue.high >>> 0).toNumber() : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; + + /** + * Converts this IntegerValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + * @returns {Object.} JSON object + */ + IntegerValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IntegerValueSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IntegerValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec"; + }; + + return IntegerValueSpec; + })(); + + ParameterSpec.CategoricalValueSpec = (function() { + + /** + * Properties of a CategoricalValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @interface ICategoricalValueSpec + * @property {Array.|null} [values] CategoricalValueSpec values + * @property {string|null} [defaultValue] CategoricalValueSpec defaultValue + */ + + /** + * Constructs a new CategoricalValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @classdesc Represents a CategoricalValueSpec. + * @implements ICategoricalValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set + */ + function CategoricalValueSpec(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CategoricalValueSpec values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + CategoricalValueSpec.prototype.values = $util.emptyArray; + + /** + * CategoricalValueSpec defaultValue. + * @member {string|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + CategoricalValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CategoricalValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + Object.defineProperty(CategoricalValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CategoricalValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec instance + */ + CategoricalValueSpec.create = function create(properties) { + return new CategoricalValueSpec(properties); + }; + + /** + * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 3: { + message.defaultValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + } + return null; + }; + + /** + * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + */ + CategoricalValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + return message; + }; + + /** + * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec} message CategoricalValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; + + /** + * Converts this CategoricalValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CategoricalValueSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CategoricalValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec"; + }; + + return CategoricalValueSpec; + })(); + + ParameterSpec.DiscreteValueSpec = (function() { + + /** + * Properties of a DiscreteValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @interface IDiscreteValueSpec + * @property {Array.|null} [values] DiscreteValueSpec values + * @property {number|null} [defaultValue] DiscreteValueSpec defaultValue + */ + + /** + * Constructs a new DiscreteValueSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @classdesc Represents a DiscreteValueSpec. + * @implements IDiscreteValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set + */ + function DiscreteValueSpec(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DiscreteValueSpec values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + DiscreteValueSpec.prototype.values = $util.emptyArray; + + /** + * DiscreteValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + DiscreteValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DiscreteValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + Object.defineProperty(DiscreteValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DiscreteValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec instance + */ + DiscreteValueSpec.create = function create(properties) { + return new DiscreteValueSpec(properties); + }; + + /** + * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); + break; + } + case 3: { + message.defaultValue = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DiscreteValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiscreteValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (typeof message.defaultValue !== "number") + return "defaultValue: number expected"; + } + return null; + }; + + /** + * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + */ + DiscreteValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); + } + if (object.defaultValue != null) + message.defaultValue = Number(object.defaultValue); + return message; + }; + + /** + * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec} message DiscreteValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiscreteValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; + + /** + * Converts this DiscreteValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + * @returns {Object.} JSON object + */ + DiscreteValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DiscreteValueSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiscreteValueSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec"; + }; + + return DiscreteValueSpec; + })(); + + ParameterSpec.ConditionalParameterSpec = (function() { + + /** + * Properties of a ConditionalParameterSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @interface IConditionalParameterSpec + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null} [parentDiscreteValues] ConditionalParameterSpec parentDiscreteValues + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null} [parentIntValues] ConditionalParameterSpec parentIntValues + * @property {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null} [parentCategoricalValues] ConditionalParameterSpec parentCategoricalValues + * @property {google.cloud.aiplatform.v1.StudySpec.IParameterSpec|null} [parameterSpec] ConditionalParameterSpec parameterSpec + */ + + /** + * Constructs a new ConditionalParameterSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec + * @classdesc Represents a ConditionalParameterSpec. + * @implements IConditionalParameterSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set + */ + function ConditionalParameterSpec(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]]; + } + + /** + * ConditionalParameterSpec parentDiscreteValues. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null|undefined} parentDiscreteValues + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentDiscreteValues = null; + + /** + * ConditionalParameterSpec parentIntValues. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null|undefined} parentIntValues + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentIntValues = null; + + /** + * ConditionalParameterSpec parentCategoricalValues. + * @member {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null|undefined} parentCategoricalValues + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentCategoricalValues = null; + + /** + * ConditionalParameterSpec parameterSpec. + * @member {google.cloud.aiplatform.v1.StudySpec.IParameterSpec|null|undefined} parameterSpec + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parameterSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ConditionalParameterSpec parentValueCondition. + * @member {"parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"|undefined} parentValueCondition + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + Object.defineProperty(ConditionalParameterSpec.prototype, "parentValueCondition", { + get: $util.oneOfGetter($oneOfFields = ["parentDiscreteValues", "parentIntValues", "parentCategoricalValues"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ConditionalParameterSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec instance + */ + ConditionalParameterSpec.create = function create(properties) { + return new ConditionalParameterSpec(properties); + }; + + /** + * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalParameterSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterSpec != null && Object.hasOwnProperty.call(message, "parameterSpec")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.encode(message.parameterSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parentDiscreteValues != null && Object.hasOwnProperty.call(message, "parentDiscreteValues")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.encode(message.parentDiscreteValues, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentIntValues != null && Object.hasOwnProperty.call(message, "parentIntValues")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.encode(message.parentIntValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parentCategoricalValues != null && Object.hasOwnProperty.call(message, "parentCategoricalValues")) + $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.encode(message.parentCategoricalValues, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing @@ -73058,1751 +86638,8254 @@ message.parentDiscreteValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.decode(reader, reader.uint32()); break; } - case 3: { - message.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.decode(reader, reader.uint32()); + case 3: { + message.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.decode(reader, reader.uint32()); + break; + } + case 4: { + message.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.decode(reader, reader.uint32()); + break; + } + case 1: { + message.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalParameterSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConditionalParameterSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConditionalParameterSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify(message.parentDiscreteValues); + if (error) + return "parentDiscreteValues." + error; + } + } + if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { + if (properties.parentValueCondition === 1) + return "parentValueCondition: multiple values"; + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify(message.parentIntValues); + if (error) + return "parentIntValues." + error; + } + } + if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { + if (properties.parentValueCondition === 1) + return "parentValueCondition: multiple values"; + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify(message.parentCategoricalValues); + if (error) + return "parentCategoricalValues." + error; + } + } + if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) { + var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify(message.parameterSpec); + if (error) + return "parameterSpec." + error; + } + return null; + }; + + /** + * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec + */ + ConditionalParameterSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec(); + if (object.parentDiscreteValues != null) { + if (typeof object.parentDiscreteValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentDiscreteValues: object expected"); + message.parentDiscreteValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.fromObject(object.parentDiscreteValues); + } + if (object.parentIntValues != null) { + if (typeof object.parentIntValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentIntValues: object expected"); + message.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.fromObject(object.parentIntValues); + } + if (object.parentCategoricalValues != null) { + if (typeof object.parentCategoricalValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentCategoricalValues: object expected"); + message.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.fromObject(object.parentCategoricalValues); + } + if (object.parameterSpec != null) { + if (typeof object.parameterSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parameterSpec: object expected"); + message.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.fromObject(object.parameterSpec); + } + return message; + }; + + /** + * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} message ConditionalParameterSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConditionalParameterSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parameterSpec = null; + if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) + object.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.toObject(message.parameterSpec, options); + if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { + object.parentDiscreteValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.toObject(message.parentDiscreteValues, options); + if (options.oneofs) + object.parentValueCondition = "parentDiscreteValues"; + } + if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { + object.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.toObject(message.parentIntValues, options); + if (options.oneofs) + object.parentValueCondition = "parentIntValues"; + } + if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { + object.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.toObject(message.parentCategoricalValues, options); + if (options.oneofs) + object.parentValueCondition = "parentCategoricalValues"; + } + return object; + }; + + /** + * Converts this ConditionalParameterSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + * @returns {Object.} JSON object + */ + ConditionalParameterSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConditionalParameterSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConditionalParameterSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec"; + }; + + ConditionalParameterSpec.DiscreteValueCondition = (function() { + + /** + * Properties of a DiscreteValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface IDiscreteValueCondition + * @property {Array.|null} [values] DiscreteValueCondition values + */ + + /** + * Constructs a new DiscreteValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a DiscreteValueCondition. + * @implements IDiscreteValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set + */ + function DiscreteValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DiscreteValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @instance + */ + DiscreteValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new DiscreteValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition instance + */ + DiscreteValueCondition.create = function create(properties) { + return new DiscreteValueCondition(properties); + }; + + /** + * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DiscreteValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiscreteValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; + } + return null; + }; + + /** + * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + */ + DiscreteValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} message DiscreteValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiscreteValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + } + return object; + }; + + /** + * Converts this DiscreteValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @instance + * @returns {Object.} JSON object + */ + DiscreteValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DiscreteValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiscreteValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition"; + }; + + return DiscreteValueCondition; + })(); + + ConditionalParameterSpec.IntValueCondition = (function() { + + /** + * Properties of an IntValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface IIntValueCondition + * @property {Array.|null} [values] IntValueCondition values + */ + + /** + * Constructs a new IntValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents an IntValueCondition. + * @implements IIntValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set + */ + function IntValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IntValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + */ + IntValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new IntValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition instance + */ + IntValueCondition.create = function create(properties) { + return new IntValueCondition(properties); + }; + + /** + * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.int64(message.values[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IntValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.int64()); + } else + message.values.push(reader.int64()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IntValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; + } + return null; + }; + + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + */ + IntValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; + } + return object; + }; + + /** + * Converts this IntValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + * @returns {Object.} JSON object + */ + IntValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IntValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; + }; + + return IntValueCondition; + })(); + + ConditionalParameterSpec.CategoricalValueCondition = (function() { + + /** + * Properties of a CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface ICategoricalValueCondition + * @property {Array.|null} [values] CategoricalValueCondition values + */ + + /** + * Constructs a new CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a CategoricalValueCondition. + * @implements ICategoricalValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + */ + function CategoricalValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CategoricalValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + */ + CategoricalValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance + */ + CategoricalValueCondition.create = function create(properties) { + return new CategoricalValueCondition(properties); + }; + + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + */ + CategoricalValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; + + /** + * Converts this CategoricalValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CategoricalValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; + }; + + return CategoricalValueCondition; + })(); + + return ConditionalParameterSpec; + })(); + + /** + * ScaleType enum. + * @name google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType + * @enum {number} + * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value + * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value + * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value + * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value + */ + ParameterSpec.ScaleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; + values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; + values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; + return values; + })(); + + return ParameterSpec; + })(); + + StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + + /** + * Properties of a DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IDecayCurveAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a DecayCurveAutomatedStoppingSpec. + * @implements IDecayCurveAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + */ + function DecayCurveAutomatedStoppingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DecayCurveAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + */ + DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance + */ + DecayCurveAutomatedStoppingSpec.create = function create(properties) { + return new DecayCurveAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DecayCurveAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DecayCurveAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + */ + DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DecayCurveAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec"; + }; + + return DecayCurveAutomatedStoppingSpec; + })(); + + StudySpec.MedianAutomatedStoppingSpec = (function() { + + /** + * Properties of a MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IMedianAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a MedianAutomatedStoppingSpec. + * @implements IMedianAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + */ + function MedianAutomatedStoppingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MedianAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @instance + */ + MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance + */ + MedianAutomatedStoppingSpec.create = function create(properties) { + return new MedianAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MedianAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MedianAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + */ + MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this MedianAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MedianAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec"; + }; + + return MedianAutomatedStoppingSpec; + })(); + + StudySpec.ConvexAutomatedStoppingSpec = (function() { + + /** + * Properties of a ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IConvexAutomatedStoppingSpec + * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount + * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount + * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount + * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName + * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration + * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials + */ + + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a ConvexAutomatedStoppingSpec. + * @implements IConvexAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + */ + function ConvexAutomatedStoppingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConvexAutomatedStoppingSpec maxStepCount. + * @member {number|Long} maxStepCount + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minStepCount. + * @member {number|Long} minStepCount + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minMeasurementCount. + * @member {number|Long} minMeasurementCount + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * ConvexAutomatedStoppingSpec updateAllStoppedTrials. + * @member {boolean|null|undefined} updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. + * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { + get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + */ + ConvexAutomatedStoppingSpec.create = function create(properties) { + return new ConvexAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); + if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); + if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); + if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); + return writer; + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxStepCount = reader.int64(); + break; + } + case 2: { + message.minStepCount = reader.int64(); + break; + } + case 3: { + message.minMeasurementCount = reader.int64(); + break; + } + case 4: { + message.learningRateParameterName = reader.string(); + break; + } + case 5: { + message.useElapsedDuration = reader.bool(); + break; + } + case 6: { + message.updateAllStoppedTrials = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) + return "maxStepCount: integer|Long expected"; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) + return "minStepCount: integer|Long expected"; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) + return "minMeasurementCount: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + properties._updateAllStoppedTrials = 1; + if (typeof message.updateAllStoppedTrials !== "boolean") + return "updateAllStoppedTrials: boolean expected"; + } + return null; + }; + + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + */ + ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(); + if (object.maxStepCount != null) + if ($util.Long) + (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; + else if (typeof object.maxStepCount === "string") + message.maxStepCount = parseInt(object.maxStepCount, 10); + else if (typeof object.maxStepCount === "number") + message.maxStepCount = object.maxStepCount; + else if (typeof object.maxStepCount === "object") + message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); + if (object.minStepCount != null) + if ($util.Long) + (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; + else if (typeof object.minStepCount === "string") + message.minStepCount = parseInt(object.minStepCount, 10); + else if (typeof object.minStepCount === "number") + message.minStepCount = object.minStepCount; + else if (typeof object.minStepCount === "object") + message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); + if (object.minMeasurementCount != null) + if ($util.Long) + (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; + else if (typeof object.minMeasurementCount === "string") + message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); + else if (typeof object.minMeasurementCount === "number") + message.minMeasurementCount = object.minMeasurementCount; + else if (typeof object.minMeasurementCount === "object") + message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + if (object.updateAllStoppedTrials != null) + message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); + return message; + }; + + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minMeasurementCount = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useElapsedDuration = false; + } + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (typeof message.maxStepCount === "number") + object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; + else + object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (typeof message.minStepCount === "number") + object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; + else + object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (typeof message.minMeasurementCount === "number") + object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; + else + object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + object.updateAllStoppedTrials = message.updateAllStoppedTrials; + if (options.oneofs) + object._updateAllStoppedTrials = "updateAllStoppedTrials"; + } + return object; + }; + + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConvexAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec"; + }; + + return ConvexAutomatedStoppingSpec; + })(); + + StudySpec.StudyStoppingConfig = (function() { + + /** + * Properties of a StudyStoppingConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @interface IStudyStoppingConfig + * @property {google.protobuf.IBoolValue|null} [shouldStopAsap] StudyStoppingConfig shouldStopAsap + * @property {google.cloud.aiplatform.v1.IStudyTimeConstraint|null} [minimumRuntimeConstraint] StudyStoppingConfig minimumRuntimeConstraint + * @property {google.cloud.aiplatform.v1.IStudyTimeConstraint|null} [maximumRuntimeConstraint] StudyStoppingConfig maximumRuntimeConstraint + * @property {google.protobuf.IInt32Value|null} [minNumTrials] StudyStoppingConfig minNumTrials + * @property {google.protobuf.IInt32Value|null} [maxNumTrials] StudyStoppingConfig maxNumTrials + * @property {google.protobuf.IInt32Value|null} [maxNumTrialsNoProgress] StudyStoppingConfig maxNumTrialsNoProgress + * @property {google.protobuf.IDuration|null} [maxDurationNoProgress] StudyStoppingConfig maxDurationNoProgress + */ + + /** + * Constructs a new StudyStoppingConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec + * @classdesc Represents a StudyStoppingConfig. + * @implements IStudyStoppingConfig + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig=} [properties] Properties to set + */ + function StudyStoppingConfig(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]]; + } + + /** + * StudyStoppingConfig shouldStopAsap. + * @member {google.protobuf.IBoolValue|null|undefined} shouldStopAsap + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.shouldStopAsap = null; + + /** + * StudyStoppingConfig minimumRuntimeConstraint. + * @member {google.cloud.aiplatform.v1.IStudyTimeConstraint|null|undefined} minimumRuntimeConstraint + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.minimumRuntimeConstraint = null; + + /** + * StudyStoppingConfig maximumRuntimeConstraint. + * @member {google.cloud.aiplatform.v1.IStudyTimeConstraint|null|undefined} maximumRuntimeConstraint + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maximumRuntimeConstraint = null; + + /** + * StudyStoppingConfig minNumTrials. + * @member {google.protobuf.IInt32Value|null|undefined} minNumTrials + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.minNumTrials = null; + + /** + * StudyStoppingConfig maxNumTrials. + * @member {google.protobuf.IInt32Value|null|undefined} maxNumTrials + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxNumTrials = null; + + /** + * StudyStoppingConfig maxNumTrialsNoProgress. + * @member {google.protobuf.IInt32Value|null|undefined} maxNumTrialsNoProgress + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxNumTrialsNoProgress = null; + + /** + * StudyStoppingConfig maxDurationNoProgress. + * @member {google.protobuf.IDuration|null|undefined} maxDurationNoProgress + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxDurationNoProgress = null; + + /** + * Creates a new StudyStoppingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig} StudyStoppingConfig instance + */ + StudyStoppingConfig.create = function create(properties) { + return new StudyStoppingConfig(properties); + }; + + /** + * Encodes the specified StudyStoppingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig} message StudyStoppingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyStoppingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shouldStopAsap != null && Object.hasOwnProperty.call(message, "shouldStopAsap")) + $root.google.protobuf.BoolValue.encode(message.shouldStopAsap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumRuntimeConstraint != null && Object.hasOwnProperty.call(message, "minimumRuntimeConstraint")) + $root.google.cloud.aiplatform.v1.StudyTimeConstraint.encode(message.minimumRuntimeConstraint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.maximumRuntimeConstraint != null && Object.hasOwnProperty.call(message, "maximumRuntimeConstraint")) + $root.google.cloud.aiplatform.v1.StudyTimeConstraint.encode(message.maximumRuntimeConstraint, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.minNumTrials != null && Object.hasOwnProperty.call(message, "minNumTrials")) + $root.google.protobuf.Int32Value.encode(message.minNumTrials, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxNumTrials != null && Object.hasOwnProperty.call(message, "maxNumTrials")) + $root.google.protobuf.Int32Value.encode(message.maxNumTrials, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.maxNumTrialsNoProgress != null && Object.hasOwnProperty.call(message, "maxNumTrialsNoProgress")) + $root.google.protobuf.Int32Value.encode(message.maxNumTrialsNoProgress, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.maxDurationNoProgress != null && Object.hasOwnProperty.call(message, "maxDurationNoProgress")) + $root.google.protobuf.Duration.encode(message.maxDurationNoProgress, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudyStoppingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.IStudyStoppingConfig} message StudyStoppingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyStoppingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyStoppingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.shouldStopAsap = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 2: { + message.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.decode(reader, reader.uint32()); + break; + } + case 3: { + message.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.decode(reader, reader.uint32()); + break; + } + case 4: { + message.minNumTrials = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.maxNumTrials = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 7: { + message.maxDurationNoProgress = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyStoppingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudyStoppingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudyStoppingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.shouldStopAsap != null && message.hasOwnProperty("shouldStopAsap")) { + var error = $root.google.protobuf.BoolValue.verify(message.shouldStopAsap); + if (error) + return "shouldStopAsap." + error; + } + if (message.minimumRuntimeConstraint != null && message.hasOwnProperty("minimumRuntimeConstraint")) { + var error = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.verify(message.minimumRuntimeConstraint); + if (error) + return "minimumRuntimeConstraint." + error; + } + if (message.maximumRuntimeConstraint != null && message.hasOwnProperty("maximumRuntimeConstraint")) { + var error = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.verify(message.maximumRuntimeConstraint); + if (error) + return "maximumRuntimeConstraint." + error; + } + if (message.minNumTrials != null && message.hasOwnProperty("minNumTrials")) { + var error = $root.google.protobuf.Int32Value.verify(message.minNumTrials); + if (error) + return "minNumTrials." + error; + } + if (message.maxNumTrials != null && message.hasOwnProperty("maxNumTrials")) { + var error = $root.google.protobuf.Int32Value.verify(message.maxNumTrials); + if (error) + return "maxNumTrials." + error; + } + if (message.maxNumTrialsNoProgress != null && message.hasOwnProperty("maxNumTrialsNoProgress")) { + var error = $root.google.protobuf.Int32Value.verify(message.maxNumTrialsNoProgress); + if (error) + return "maxNumTrialsNoProgress." + error; + } + if (message.maxDurationNoProgress != null && message.hasOwnProperty("maxDurationNoProgress")) { + var error = $root.google.protobuf.Duration.verify(message.maxDurationNoProgress); + if (error) + return "maxDurationNoProgress." + error; + } + return null; + }; + + /** + * Creates a StudyStoppingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + */ + StudyStoppingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig(); + if (object.shouldStopAsap != null) { + if (typeof object.shouldStopAsap !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.shouldStopAsap: object expected"); + message.shouldStopAsap = $root.google.protobuf.BoolValue.fromObject(object.shouldStopAsap); + } + if (object.minimumRuntimeConstraint != null) { + if (typeof object.minimumRuntimeConstraint !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.minimumRuntimeConstraint: object expected"); + message.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.fromObject(object.minimumRuntimeConstraint); + } + if (object.maximumRuntimeConstraint != null) { + if (typeof object.maximumRuntimeConstraint !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.maximumRuntimeConstraint: object expected"); + message.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.fromObject(object.maximumRuntimeConstraint); + } + if (object.minNumTrials != null) { + if (typeof object.minNumTrials !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.minNumTrials: object expected"); + message.minNumTrials = $root.google.protobuf.Int32Value.fromObject(object.minNumTrials); + } + if (object.maxNumTrials != null) { + if (typeof object.maxNumTrials !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.maxNumTrials: object expected"); + message.maxNumTrials = $root.google.protobuf.Int32Value.fromObject(object.maxNumTrials); + } + if (object.maxNumTrialsNoProgress != null) { + if (typeof object.maxNumTrialsNoProgress !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.maxNumTrialsNoProgress: object expected"); + message.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.fromObject(object.maxNumTrialsNoProgress); + } + if (object.maxDurationNoProgress != null) { + if (typeof object.maxDurationNoProgress !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig.maxDurationNoProgress: object expected"); + message.maxDurationNoProgress = $root.google.protobuf.Duration.fromObject(object.maxDurationNoProgress); + } + return message; + }; + + /** + * Creates a plain object from a StudyStoppingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig} message StudyStoppingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudyStoppingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.shouldStopAsap = null; + object.minimumRuntimeConstraint = null; + object.maximumRuntimeConstraint = null; + object.minNumTrials = null; + object.maxNumTrials = null; + object.maxNumTrialsNoProgress = null; + object.maxDurationNoProgress = null; + } + if (message.shouldStopAsap != null && message.hasOwnProperty("shouldStopAsap")) + object.shouldStopAsap = $root.google.protobuf.BoolValue.toObject(message.shouldStopAsap, options); + if (message.minimumRuntimeConstraint != null && message.hasOwnProperty("minimumRuntimeConstraint")) + object.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.toObject(message.minimumRuntimeConstraint, options); + if (message.maximumRuntimeConstraint != null && message.hasOwnProperty("maximumRuntimeConstraint")) + object.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1.StudyTimeConstraint.toObject(message.maximumRuntimeConstraint, options); + if (message.minNumTrials != null && message.hasOwnProperty("minNumTrials")) + object.minNumTrials = $root.google.protobuf.Int32Value.toObject(message.minNumTrials, options); + if (message.maxNumTrials != null && message.hasOwnProperty("maxNumTrials")) + object.maxNumTrials = $root.google.protobuf.Int32Value.toObject(message.maxNumTrials, options); + if (message.maxNumTrialsNoProgress != null && message.hasOwnProperty("maxNumTrialsNoProgress")) + object.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.toObject(message.maxNumTrialsNoProgress, options); + if (message.maxDurationNoProgress != null && message.hasOwnProperty("maxDurationNoProgress")) + object.maxDurationNoProgress = $root.google.protobuf.Duration.toObject(message.maxDurationNoProgress, options); + return object; + }; + + /** + * Converts this StudyStoppingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @instance + * @returns {Object.} JSON object + */ + StudyStoppingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StudyStoppingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StudyStoppingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.StudyStoppingConfig"; + }; + + return StudyStoppingConfig; + })(); + + /** + * Algorithm enum. + * @name google.cloud.aiplatform.v1.StudySpec.Algorithm + * @enum {number} + * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + */ + StudySpec.Algorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[2] = "GRID_SEARCH"] = 2; + values[valuesById[3] = "RANDOM_SEARCH"] = 3; + return values; + })(); + + /** + * ObservationNoise enum. + * @name google.cloud.aiplatform.v1.StudySpec.ObservationNoise + * @enum {number} + * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} HIGH=2 HIGH value + */ + StudySpec.ObservationNoise = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "HIGH"] = 2; + return values; + })(); + + /** + * MeasurementSelectionType enum. + * @name google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType + * @enum {number} + * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value + * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value + * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + */ + StudySpec.MeasurementSelectionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LAST_MEASUREMENT"] = 1; + values[valuesById[2] = "BEST_MEASUREMENT"] = 2; + return values; + })(); + + return StudySpec; + })(); + + v1.Measurement = (function() { + + /** + * Properties of a Measurement. + * @memberof google.cloud.aiplatform.v1 + * @interface IMeasurement + * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration + * @property {number|Long|null} [stepCount] Measurement stepCount + * @property {Array.|null} [metrics] Measurement metrics + */ + + /** + * Constructs a new Measurement. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Measurement. + * @implements IMeasurement + * @constructor + * @param {google.cloud.aiplatform.v1.IMeasurement=} [properties] Properties to set + */ + function Measurement(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1.Measurement + * @instance + */ + Measurement.prototype.elapsedDuration = null; + + /** + * Measurement stepCount. + * @member {number|Long} stepCount + * @memberof google.cloud.aiplatform.v1.Measurement + * @instance + */ + Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Measurement metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1.Measurement + * @instance + */ + Measurement.prototype.metrics = $util.emptyArray; + + /** + * Creates a new Measurement instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {google.cloud.aiplatform.v1.IMeasurement=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Measurement} Measurement instance + */ + Measurement.create = function create(properties) { + return new Measurement(properties); + }; + + /** + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {google.cloud.aiplatform.v1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) + $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {google.cloud.aiplatform.v1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Measurement message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Measurement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.stepCount = reader.int64(); + break; + } + case 3: { + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1.Measurement.Metric.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Measurement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Measurement message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Measurement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { + var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (error) + return "elapsedDuration." + error; + } + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) + return "stepCount: integer|Long expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Measurement.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + return null; + }; + + /** + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + */ + Measurement.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Measurement) + return object; + var message = new $root.google.cloud.aiplatform.v1.Measurement(); + if (object.elapsedDuration != null) { + if (typeof object.elapsedDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Measurement.elapsedDuration: object expected"); + message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + } + if (object.stepCount != null) + if ($util.Long) + (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; + else if (typeof object.stepCount === "string") + message.stepCount = parseInt(object.stepCount, 10); + else if (typeof object.stepCount === "number") + message.stepCount = object.stepCount; + else if (typeof object.stepCount === "object") + message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1.Measurement.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Measurement.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1.Measurement.Metric.fromObject(object.metrics[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {google.cloud.aiplatform.v1.Measurement} message Measurement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Measurement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.elapsedDuration = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stepCount = options.longs === String ? "0" : 0; + } + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) + object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (typeof message.stepCount === "number") + object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; + else + object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1.Measurement.Metric.toObject(message.metrics[j], options); + } + return object; + }; + + /** + * Converts this Measurement to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Measurement + * @instance + * @returns {Object.} JSON object + */ + Measurement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Measurement + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Measurement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Measurement"; + }; + + Measurement.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof google.cloud.aiplatform.v1.Measurement + * @interface IMetric + * @property {string|null} [metricId] Metric metricId + * @property {number|null} [value] Metric value + */ + + /** + * Constructs a new Metric. + * @memberof google.cloud.aiplatform.v1.Measurement + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.aiplatform.v1.Measurement.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Metric metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @instance + */ + Metric.prototype.metricId = ""; + + /** + * Metric value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @instance + */ + Metric.prototype.value = 0; + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1.Measurement.IMetric=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Measurement.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Measurement.Metric) + return object; + var message = new $root.google.cloud.aiplatform.v1.Measurement.Metric(); + if (object.metricId != null) + message.metricId = String(object.metricId); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1.Measurement.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.value = 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Measurement.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Measurement.Metric"; + }; + + return Metric; + })(); + + return Measurement; + })(); + + v1.Index = (function() { + + /** + * Properties of an Index. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndex + * @property {string|null} [name] Index name + * @property {string|null} [displayName] Index displayName + * @property {string|null} [description] Index description + * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Index metadata + * @property {Array.|null} [deployedIndexes] Index deployedIndexes + * @property {string|null} [etag] Index etag + * @property {Object.|null} [labels] Index labels + * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime + * @property {google.cloud.aiplatform.v1.IIndexStats|null} [indexStats] Index indexStats + * @property {google.cloud.aiplatform.v1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Index encryptionSpec + */ + + /** + * Constructs a new Index. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an Index. + * @implements IIndex + * @constructor + * @param {google.cloud.aiplatform.v1.IIndex=} [properties] Properties to set + */ + function Index(properties) { + this.deployedIndexes = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Index name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.name = ""; + + /** + * Index displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.displayName = ""; + + /** + * Index description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.description = ""; + + /** + * Index metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.metadataSchemaUri = ""; + + /** + * Index metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.metadata = null; + + /** + * Index deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.deployedIndexes = $util.emptyArray; + + /** + * Index etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.etag = ""; + + /** + * Index labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.labels = $util.emptyObject; + + /** + * Index createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.createTime = null; + + /** + * Index updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.updateTime = null; + + /** + * Index indexStats. + * @member {google.cloud.aiplatform.v1.IIndexStats|null|undefined} indexStats + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.indexStats = null; + + /** + * Index indexUpdateMethod. + * @member {google.cloud.aiplatform.v1.Index.IndexUpdateMethod} indexUpdateMethod + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.indexUpdateMethod = 0; + + /** + * Index encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.encryptionSpec = null; + + /** + * Creates a new Index instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {google.cloud.aiplatform.v1.IIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Index} Index instance + */ + Index.create = function create(properties) { + return new Index(properties); + }; + + /** + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1.Index.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {google.cloud.aiplatform.v1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) + $root.google.cloud.aiplatform.v1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Index.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {google.cloud.aiplatform.v1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Index message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Index(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.metadataSchemaUri = reader.string(); + break; + } + case 6: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1.DeployedIndexRef.decode(reader, reader.uint32())); + break; + } + case 8: { + message.etag = reader.string(); + break; + } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 10: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.decode(reader, reader.uint32()); + break; + } + case 16: { + message.indexUpdateMethod = reader.int32(); + break; + } + case 17: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Index message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Index message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Index.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndexRef.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.indexStats != null && message.hasOwnProperty("indexStats")) { + var error = $root.google.cloud.aiplatform.v1.IndexStats.verify(message.indexStats); + if (error) + return "indexStats." + error; + } + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + switch (message.indexUpdateMethod) { + default: + return "indexUpdateMethod: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates an Index message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Index} Index + */ + Index.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Index) + return object; + var message = new $root.google.cloud.aiplatform.v1.Index(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1.Index.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.indexStats != null) { + if (typeof object.indexStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.indexStats: object expected"); + message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.fromObject(object.indexStats); + } + switch (object.indexUpdateMethod) { + default: + if (typeof object.indexUpdateMethod === "number") { + message.indexUpdateMethod = object.indexUpdateMethod; + break; + } + break; + case "INDEX_UPDATE_METHOD_UNSPECIFIED": + case 0: + message.indexUpdateMethod = 0; + break; + case "BATCH_UPDATE": + case 1: + message.indexUpdateMethod = 1; + break; + case "STREAM_UPDATE": + case 2: + message.indexUpdateMethod = 2; + break; + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Index.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {google.cloud.aiplatform.v1.Index} message Index + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Index.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.metadataSchemaUri = ""; + object.metadata = null; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.indexStats = null; + object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; + object.encryptionSpec = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.indexStats != null && message.hasOwnProperty("indexStats")) + object.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.toObject(message.indexStats, options); + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + return object; + }; + + /** + * Converts this Index to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Index + * @instance + * @returns {Object.} JSON object + */ + Index.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Index + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Index + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Index"; + }; + + /** + * IndexUpdateMethod enum. + * @name google.cloud.aiplatform.v1.Index.IndexUpdateMethod + * @enum {number} + * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value + * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value + * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value + */ + Index.IndexUpdateMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "BATCH_UPDATE"] = 1; + values[valuesById[2] = "STREAM_UPDATE"] = 2; + return values; + })(); + + return Index; + })(); + + v1.IndexDatapoint = (function() { + + /** + * Properties of an IndexDatapoint. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexDatapoint + * @property {string|null} [datapointId] IndexDatapoint datapointId + * @property {Array.|null} [featureVector] IndexDatapoint featureVector + * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {Array.|null} [numericRestricts] IndexDatapoint numericRestricts + * @property {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + */ + + /** + * Constructs a new IndexDatapoint. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexDatapoint. + * @implements IIndexDatapoint + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set + */ + function IndexDatapoint(properties) { + this.featureVector = []; + this.restricts = []; + this.numericRestricts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexDatapoint datapointId. + * @member {string} datapointId + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.datapointId = ""; + + /** + * IndexDatapoint featureVector. + * @member {Array.} featureVector + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.featureVector = $util.emptyArray; + + /** + * IndexDatapoint restricts. + * @member {Array.} restricts + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.restricts = $util.emptyArray; + + /** + * IndexDatapoint numericRestricts. + * @member {Array.} numericRestricts + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.numericRestricts = $util.emptyArray; + + /** + * IndexDatapoint crowdingTag. + * @member {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.crowdingTag = null; + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint instance + */ + IndexDatapoint.create = function create(properties) { + return new IndexDatapoint(properties); + }; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); + if (message.featureVector != null && message.featureVector.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.featureVector.length; ++i) + writer.float(message.featureVector[i]); + writer.ldelim(); + } + if (message.restricts != null && message.restricts.length) + for (var i = 0; i < message.restricts.length; ++i) + $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) + $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.numericRestricts != null && message.numericRestricts.length) + for (var i = 0; i < message.numericRestricts.length; ++i) + $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.encode(message.numericRestricts[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapointId = reader.string(); + break; + } + case 2: { + if (!(message.featureVector && message.featureVector.length)) + message.featureVector = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.featureVector.push(reader.float()); + } else + message.featureVector.push(reader.float()); + break; + } + case 4: { + if (!(message.restricts && message.restricts.length)) + message.restricts = []; + message.restricts.push($root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.numericRestricts && message.numericRestricts.length)) + message.numericRestricts = []; + message.numericRestricts.push($root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.decode(reader, reader.uint32())); + break; + } + case 5: { + message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexDatapoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexDatapoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + if (!$util.isString(message.datapointId)) + return "datapointId: string expected"; + if (message.featureVector != null && message.hasOwnProperty("featureVector")) { + if (!Array.isArray(message.featureVector)) + return "featureVector: array expected"; + for (var i = 0; i < message.featureVector.length; ++i) + if (typeof message.featureVector[i] !== "number") + return "featureVector: number[] expected"; + } + if (message.restricts != null && message.hasOwnProperty("restricts")) { + if (!Array.isArray(message.restricts)) + return "restricts: array expected"; + for (var i = 0; i < message.restricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify(message.restricts[i]); + if (error) + return "restricts." + error; + } + } + if (message.numericRestricts != null && message.hasOwnProperty("numericRestricts")) { + if (!Array.isArray(message.numericRestricts)) + return "numericRestricts: array expected"; + for (var i = 0; i < message.numericRestricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.verify(message.numericRestricts[i]); + if (error) + return "numericRestricts." + error; + } + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (error) + return "crowdingTag." + error; + } + return null; + }; + + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + */ + IndexDatapoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint(); + if (object.datapointId != null) + message.datapointId = String(object.datapointId); + if (object.featureVector) { + if (!Array.isArray(object.featureVector)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.featureVector: array expected"); + message.featureVector = []; + for (var i = 0; i < object.featureVector.length; ++i) + message.featureVector[i] = Number(object.featureVector[i]); + } + if (object.restricts) { + if (!Array.isArray(object.restricts)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: array expected"); + message.restricts = []; + for (var i = 0; i < object.restricts.length; ++i) { + if (typeof object.restricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: object expected"); + message.restricts[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); + } + } + if (object.numericRestricts) { + if (!Array.isArray(object.numericRestricts)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.numericRestricts: array expected"); + message.numericRestricts = []; + for (var i = 0; i < object.numericRestricts.length; ++i) { + if (typeof object.numericRestricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.numericRestricts: object expected"); + message.numericRestricts[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.fromObject(object.numericRestricts[i]); + } + } + if (object.crowdingTag != null) { + if (typeof object.crowdingTag !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.crowdingTag: object expected"); + message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + } + return message; + }; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint} message IndexDatapoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexDatapoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.featureVector = []; + object.restricts = []; + object.numericRestricts = []; + } + if (options.defaults) { + object.datapointId = ""; + object.crowdingTag = null; + } + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + object.datapointId = message.datapointId; + if (message.featureVector && message.featureVector.length) { + object.featureVector = []; + for (var j = 0; j < message.featureVector.length; ++j) + object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; + } + if (message.restricts && message.restricts.length) { + object.restricts = []; + for (var j = 0; j < message.restricts.length; ++j) + object.restricts[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) + object.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + if (message.numericRestricts && message.numericRestricts.length) { + object.numericRestricts = []; + for (var j = 0; j < message.numericRestricts.length; ++j) + object.numericRestricts[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.toObject(message.numericRestricts[j], options); + } + return object; + }; + + /** + * Converts this IndexDatapoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @instance + * @returns {Object.} JSON object + */ + IndexDatapoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexDatapoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint"; + }; + + IndexDatapoint.Restriction = (function() { + + /** + * Properties of a Restriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @interface IRestriction + * @property {string|null} [namespace] Restriction namespace + * @property {Array.|null} [allowList] Restriction allowList + * @property {Array.|null} [denyList] Restriction denyList + */ + + /** + * Constructs a new Restriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @classdesc Represents a Restriction. + * @implements IRestriction + * @constructor + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set + */ + function Restriction(properties) { + this.allowList = []; + this.denyList = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Restriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.namespace = ""; + + /** + * Restriction allowList. + * @member {Array.} allowList + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.allowList = $util.emptyArray; + + /** + * Restriction denyList. + * @member {Array.} denyList + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.denyList = $util.emptyArray; + + /** + * Creates a new Restriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction instance + */ + Restriction.create = function create(properties) { + return new Restriction(properties); + }; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.allowList != null && message.allowList.length) + for (var i = 0; i < message.allowList.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); + if (message.denyList != null && message.denyList.length) + for (var i = 0; i < message.denyList.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); + return writer; + }; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namespace = reader.string(); + break; + } + case 2: { + if (!(message.allowList && message.allowList.length)) + message.allowList = []; + message.allowList.push(reader.string()); + break; + } + case 3: { + if (!(message.denyList && message.denyList.length)) + message.denyList = []; + message.denyList.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Restriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Restriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.allowList != null && message.hasOwnProperty("allowList")) { + if (!Array.isArray(message.allowList)) + return "allowList: array expected"; + for (var i = 0; i < message.allowList.length; ++i) + if (!$util.isString(message.allowList[i])) + return "allowList: string[] expected"; + } + if (message.denyList != null && message.hasOwnProperty("denyList")) { + if (!Array.isArray(message.denyList)) + return "denyList: array expected"; + for (var i = 0; i < message.denyList.length; ++i) + if (!$util.isString(message.denyList[i])) + return "denyList: string[] expected"; + } + return null; + }; + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction + */ + Restriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(); + if (object.namespace != null) + message.namespace = String(object.namespace); + if (object.allowList) { + if (!Array.isArray(object.allowList)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.allowList: array expected"); + message.allowList = []; + for (var i = 0; i < object.allowList.length; ++i) + message.allowList[i] = String(object.allowList[i]); + } + if (object.denyList) { + if (!Array.isArray(object.denyList)) + throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.denyList: array expected"); + message.denyList = []; + for (var i = 0; i < object.denyList.length; ++i) + message.denyList[i] = String(object.denyList[i]); + } + return message; + }; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} message Restriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Restriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowList = []; + object.denyList = []; + } + if (options.defaults) + object.namespace = ""; + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.allowList && message.allowList.length) { + object.allowList = []; + for (var j = 0; j < message.allowList.length; ++j) + object.allowList[j] = message.allowList[j]; + } + if (message.denyList && message.denyList.length) { + object.denyList = []; + for (var j = 0; j < message.denyList.length; ++j) + object.denyList[j] = message.denyList[j]; + } + return object; + }; + + /** + * Converts this Restriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @instance + * @returns {Object.} JSON object + */ + Restriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Restriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.Restriction"; + }; + + return Restriction; + })(); + + IndexDatapoint.NumericRestriction = (function() { + + /** + * Properties of a NumericRestriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @interface INumericRestriction + * @property {number|Long|null} [valueInt] NumericRestriction valueInt + * @property {number|null} [valueFloat] NumericRestriction valueFloat + * @property {number|null} [valueDouble] NumericRestriction valueDouble + * @property {string|null} [namespace] NumericRestriction namespace + * @property {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator|null} [op] NumericRestriction op + */ + + /** + * Constructs a new NumericRestriction. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @classdesc Represents a NumericRestriction. + * @implements INumericRestriction + * @constructor + * @param {google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction=} [properties] Properties to set + */ + function NumericRestriction(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]]; + } + + /** + * NumericRestriction valueInt. + * @member {number|Long|null|undefined} valueInt + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueInt = null; + + /** + * NumericRestriction valueFloat. + * @member {number|null|undefined} valueFloat + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueFloat = null; + + /** + * NumericRestriction valueDouble. + * @member {number|null|undefined} valueDouble + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueDouble = null; + + /** + * NumericRestriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.namespace = ""; + + /** + * NumericRestriction op. + * @member {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator} op + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.op = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NumericRestriction Value. + * @member {"valueInt"|"valueFloat"|"valueDouble"|undefined} Value + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + */ + Object.defineProperty(NumericRestriction.prototype, "Value", { + get: $util.oneOfGetter($oneOfFields = ["valueInt", "valueFloat", "valueDouble"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NumericRestriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction} NumericRestriction instance + */ + NumericRestriction.create = function create(properties) { + return new NumericRestriction(properties); + }; + + /** + * Encodes the specified NumericRestriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction} message NumericRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericRestriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.valueInt != null && Object.hasOwnProperty.call(message, "valueInt")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.valueInt); + if (message.valueFloat != null && Object.hasOwnProperty.call(message, "valueFloat")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.valueFloat); + if (message.valueDouble != null && Object.hasOwnProperty.call(message, "valueDouble")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.valueDouble); + if (message.op != null && Object.hasOwnProperty.call(message, "op")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.op); + return writer; + }; + + /** + * Encodes the specified NumericRestriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.INumericRestriction} message NumericRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericRestriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction} NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericRestriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.valueInt = reader.int64(); + break; + } + case 3: { + message.valueFloat = reader.float(); + break; + } + case 4: { + message.valueDouble = reader.double(); + break; + } + case 1: { + message.namespace = reader.string(); + break; + } + case 5: { + message.op = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction} NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericRestriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericRestriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericRestriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.valueInt != null && message.hasOwnProperty("valueInt")) { + properties.Value = 1; + if (!$util.isInteger(message.valueInt) && !(message.valueInt && $util.isInteger(message.valueInt.low) && $util.isInteger(message.valueInt.high))) + return "valueInt: integer|Long expected"; + } + if (message.valueFloat != null && message.hasOwnProperty("valueFloat")) { + if (properties.Value === 1) + return "Value: multiple values"; + properties.Value = 1; + if (typeof message.valueFloat !== "number") + return "valueFloat: number expected"; + } + if (message.valueDouble != null && message.hasOwnProperty("valueDouble")) { + if (properties.Value === 1) + return "Value: multiple values"; + properties.Value = 1; + if (typeof message.valueDouble !== "number") + return "valueDouble: number expected"; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.op != null && message.hasOwnProperty("op")) + switch (message.op) { + default: + return "op: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a NumericRestriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction} NumericRestriction + */ + NumericRestriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction(); + if (object.valueInt != null) + if ($util.Long) + (message.valueInt = $util.Long.fromValue(object.valueInt)).unsigned = false; + else if (typeof object.valueInt === "string") + message.valueInt = parseInt(object.valueInt, 10); + else if (typeof object.valueInt === "number") + message.valueInt = object.valueInt; + else if (typeof object.valueInt === "object") + message.valueInt = new $util.LongBits(object.valueInt.low >>> 0, object.valueInt.high >>> 0).toNumber(); + if (object.valueFloat != null) + message.valueFloat = Number(object.valueFloat); + if (object.valueDouble != null) + message.valueDouble = Number(object.valueDouble); + if (object.namespace != null) + message.namespace = String(object.namespace); + switch (object.op) { + default: + if (typeof object.op === "number") { + message.op = object.op; + break; + } + break; + case "OPERATOR_UNSPECIFIED": + case 0: + message.op = 0; + break; + case "LESS": + case 1: + message.op = 1; + break; + case "LESS_EQUAL": + case 2: + message.op = 2; + break; + case "EQUAL": + case 3: + message.op = 3; + break; + case "GREATER_EQUAL": + case 4: + message.op = 4; + break; + case "GREATER": + case 5: + message.op = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a NumericRestriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction} message NumericRestriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericRestriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namespace = ""; + object.op = options.enums === String ? "OPERATOR_UNSPECIFIED" : 0; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.valueInt != null && message.hasOwnProperty("valueInt")) { + if (typeof message.valueInt === "number") + object.valueInt = options.longs === String ? String(message.valueInt) : message.valueInt; + else + object.valueInt = options.longs === String ? $util.Long.prototype.toString.call(message.valueInt) : options.longs === Number ? new $util.LongBits(message.valueInt.low >>> 0, message.valueInt.high >>> 0).toNumber() : message.valueInt; + if (options.oneofs) + object.Value = "valueInt"; + } + if (message.valueFloat != null && message.hasOwnProperty("valueFloat")) { + object.valueFloat = options.json && !isFinite(message.valueFloat) ? String(message.valueFloat) : message.valueFloat; + if (options.oneofs) + object.Value = "valueFloat"; + } + if (message.valueDouble != null && message.hasOwnProperty("valueDouble")) { + object.valueDouble = options.json && !isFinite(message.valueDouble) ? String(message.valueDouble) : message.valueDouble; + if (options.oneofs) + object.Value = "valueDouble"; + } + if (message.op != null && message.hasOwnProperty("op")) + object.op = options.enums === String ? $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator[message.op] === undefined ? message.op : $root.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator[message.op] : message.op; + return object; + }; + + /** + * Converts this NumericRestriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @instance + * @returns {Object.} JSON object + */ + NumericRestriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NumericRestriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericRestriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction"; + }; + + /** + * Operator enum. + * @name google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator + * @enum {number} + * @property {number} OPERATOR_UNSPECIFIED=0 OPERATOR_UNSPECIFIED value + * @property {number} LESS=1 LESS value + * @property {number} LESS_EQUAL=2 LESS_EQUAL value + * @property {number} EQUAL=3 EQUAL value + * @property {number} GREATER_EQUAL=4 GREATER_EQUAL value + * @property {number} GREATER=5 GREATER value + */ + NumericRestriction.Operator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPERATOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "LESS"] = 1; + values[valuesById[2] = "LESS_EQUAL"] = 2; + values[valuesById[3] = "EQUAL"] = 3; + values[valuesById[4] = "GREATER_EQUAL"] = 4; + values[valuesById[5] = "GREATER"] = 5; + return values; + })(); + + return NumericRestriction; + })(); + + IndexDatapoint.CrowdingTag = (function() { + + /** + * Properties of a CrowdingTag. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @interface ICrowdingTag + * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute + */ + + /** + * Constructs a new CrowdingTag. + * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @classdesc Represents a CrowdingTag. + * @implements ICrowdingTag + * @constructor + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + */ + function CrowdingTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CrowdingTag crowdingAttribute. + * @member {string} crowdingAttribute + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @instance + */ + CrowdingTag.prototype.crowdingAttribute = ""; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag instance + */ + CrowdingTag.create = function create(properties) { + return new CrowdingTag(properties); + }; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); + return writer; + }; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.crowdingAttribute = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CrowdingTag message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CrowdingTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + if (!$util.isString(message.crowdingAttribute)) + return "crowdingAttribute: string expected"; + return null; + }; + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag + */ + CrowdingTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(); + if (object.crowdingAttribute != null) + message.crowdingAttribute = String(object.crowdingAttribute); + return message; + }; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} message CrowdingTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CrowdingTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.crowdingAttribute = ""; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + object.crowdingAttribute = message.crowdingAttribute; + return object; + }; + + /** + * Converts this CrowdingTag to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @instance + * @returns {Object.} JSON object + */ + CrowdingTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CrowdingTag + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"; + }; + + return CrowdingTag; + })(); + + return IndexDatapoint; + })(); + + v1.IndexStats = (function() { + + /** + * Properties of an IndexStats. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexStats + * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount + * @property {number|null} [shardsCount] IndexStats shardsCount + */ + + /** + * Constructs a new IndexStats. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexStats. + * @implements IIndexStats + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set + */ + function IndexStats(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexStats vectorsCount. + * @member {number|Long} vectorsCount + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + */ + IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IndexStats shardsCount. + * @member {number} shardsCount + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + */ + IndexStats.prototype.shardsCount = 0; + + /** + * Creates a new IndexStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats instance + */ + IndexStats.create = function create(properties) { + return new IndexStats(properties); + }; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); + if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + return writer; + }; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vectorsCount = reader.int64(); + break; + } + case 2: { + message.shardsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) + return "vectorsCount: integer|Long expected"; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + if (!$util.isInteger(message.shardsCount)) + return "shardsCount: integer expected"; + return null; + }; + + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + */ + IndexStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexStats) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexStats(); + if (object.vectorsCount != null) + if ($util.Long) + (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; + else if (typeof object.vectorsCount === "string") + message.vectorsCount = parseInt(object.vectorsCount, 10); + else if (typeof object.vectorsCount === "number") + message.vectorsCount = object.vectorsCount; + else if (typeof object.vectorsCount === "object") + message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); + if (object.shardsCount != null) + message.shardsCount = object.shardsCount | 0; + return message; + }; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1.IndexStats} message IndexStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vectorsCount = options.longs === String ? "0" : 0; + object.shardsCount = 0; + } + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (typeof message.vectorsCount === "number") + object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; + else + object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + object.shardsCount = message.shardsCount; + return object; + }; + + /** + * Converts this IndexStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexStats + * @instance + * @returns {Object.} JSON object + */ + IndexStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexStats"; + }; + + return IndexStats; + })(); + + v1.IndexEndpoint = (function() { + + /** + * Properties of an IndexEndpoint. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexEndpoint + * @property {string|null} [name] IndexEndpoint name + * @property {string|null} [displayName] IndexEndpoint displayName + * @property {string|null} [description] IndexEndpoint description + * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes + * @property {string|null} [etag] IndexEndpoint etag + * @property {Object.|null} [labels] IndexEndpoint labels + * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime + * @property {string|null} [network] IndexEndpoint network + * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @property {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig + * @property {boolean|null} [publicEndpointEnabled] IndexEndpoint publicEndpointEnabled + * @property {string|null} [publicEndpointDomainName] IndexEndpoint publicEndpointDomainName + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] IndexEndpoint encryptionSpec + */ + + /** + * Constructs a new IndexEndpoint. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexEndpoint. + * @implements IIndexEndpoint + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexEndpoint=} [properties] Properties to set + */ + function IndexEndpoint(properties) { + this.deployedIndexes = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexEndpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.name = ""; + + /** + * IndexEndpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.displayName = ""; + + /** + * IndexEndpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.description = ""; + + /** + * IndexEndpoint deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + + /** + * IndexEndpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.etag = ""; + + /** + * IndexEndpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.labels = $util.emptyObject; + + /** + * IndexEndpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.createTime = null; + + /** + * IndexEndpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.updateTime = null; + + /** + * IndexEndpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.network = ""; + + /** + * IndexEndpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.enablePrivateServiceConnect = false; + + /** + * IndexEndpoint privateServiceConnectConfig. + * @member {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.privateServiceConnectConfig = null; + + /** + * IndexEndpoint publicEndpointEnabled. + * @member {boolean} publicEndpointEnabled + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.publicEndpointEnabled = false; + + /** + * IndexEndpoint publicEndpointDomainName. + * @member {string} publicEndpointDomainName + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.publicEndpointDomainName = ""; + + /** + * IndexEndpoint encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.encryptionSpec = null; + + /** + * Creates a new IndexEndpoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint instance + */ + IndexEndpoint.create = function create(properties) { + return new IndexEndpoint(properties); + }; + + /** + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexEndpoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) + $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.publicEndpointEnabled != null && Object.hasOwnProperty.call(message, "publicEndpointEnabled")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.publicEndpointEnabled); + if (message.publicEndpointDomainName != null && Object.hasOwnProperty.call(message, "publicEndpointDomainName")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.publicEndpointDomainName); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexEndpoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexEndpoint(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32())); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); break; - } - case 4: { - message.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.decode(reader, reader.uint32()); + case 2: + value = reader.string(); break; - } - case 1: { - message.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.decode(reader, reader.uint32()); + default: + reader.skipType(tag2 & 7); break; } - default: - reader.skipType(tag & 7); + } + message.labels[key] = value; + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.network = reader.string(); + break; + } + case 10: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 12: { + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); + break; + } + case 13: { + message.publicEndpointEnabled = reader.bool(); + break; + } + case 14: { + message.publicEndpointDomainName = reader.string(); + break; + } + case 15: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexEndpoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexEndpoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { + var error = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); + if (error) + return "privateServiceConnectConfig." + error; + } + if (message.publicEndpointEnabled != null && message.hasOwnProperty("publicEndpointEnabled")) + if (typeof message.publicEndpointEnabled !== "boolean") + return "publicEndpointEnabled: boolean expected"; + if (message.publicEndpointDomainName != null && message.hasOwnProperty("publicEndpointDomainName")) + if (!$util.isString(message.publicEndpointDomainName)) + return "publicEndpointDomainName: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + */ + IndexEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexEndpoint) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexEndpoint(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.network != null) + message.network = String(object.network); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.privateServiceConnectConfig != null) { + if (typeof object.privateServiceConnectConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.privateServiceConnectConfig: object expected"); + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); + } + if (object.publicEndpointEnabled != null) + message.publicEndpointEnabled = Boolean(object.publicEndpointEnabled); + if (object.publicEndpointDomainName != null) + message.publicEndpointDomainName = String(object.publicEndpointDomainName); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1.IndexEndpoint} message IndexEndpoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexEndpoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.network = ""; + object.enablePrivateServiceConnect = false; + object.privateServiceConnectConfig = null; + object.publicEndpointEnabled = false; + object.publicEndpointDomainName = ""; + object.encryptionSpec = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) + object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); + if (message.publicEndpointEnabled != null && message.hasOwnProperty("publicEndpointEnabled")) + object.publicEndpointEnabled = message.publicEndpointEnabled; + if (message.publicEndpointDomainName != null && message.hasOwnProperty("publicEndpointDomainName")) + object.publicEndpointDomainName = message.publicEndpointDomainName; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + return object; + }; + + /** + * Converts this IndexEndpoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + * @returns {Object.} JSON object + */ + IndexEndpoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexEndpoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexEndpoint"; + }; + + return IndexEndpoint; + })(); + + v1.DeployedIndex = (function() { + + /** + * Properties of a DeployedIndex. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeployedIndex + * @property {string|null} [id] DeployedIndex id + * @property {string|null} [index] DeployedIndex index + * @property {string|null} [displayName] DeployedIndex displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime + * @property {google.cloud.aiplatform.v1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints + * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime + * @property {google.cloud.aiplatform.v1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources + * @property {google.cloud.aiplatform.v1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources + * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging + * @property {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig + * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges + * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + */ + + /** + * Constructs a new DeployedIndex. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeployedIndex. + * @implements IDeployedIndex + * @constructor + * @param {google.cloud.aiplatform.v1.IDeployedIndex=} [properties] Properties to set + */ + function DeployedIndex(properties) { + this.reservedIpRanges = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeployedIndex id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.id = ""; + + /** + * DeployedIndex index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.index = ""; + + /** + * DeployedIndex displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.displayName = ""; + + /** + * DeployedIndex createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.createTime = null; + + /** + * DeployedIndex privateEndpoints. + * @member {google.cloud.aiplatform.v1.IIndexPrivateEndpoints|null|undefined} privateEndpoints + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.privateEndpoints = null; + + /** + * DeployedIndex indexSyncTime. + * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.indexSyncTime = null; + + /** + * DeployedIndex automaticResources. + * @member {google.cloud.aiplatform.v1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.automaticResources = null; + + /** + * DeployedIndex dedicatedResources. + * @member {google.cloud.aiplatform.v1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.dedicatedResources = null; + + /** + * DeployedIndex enableAccessLogging. + * @member {boolean} enableAccessLogging + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.enableAccessLogging = false; + + /** + * DeployedIndex deployedIndexAuthConfig. + * @member {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deployedIndexAuthConfig = null; + + /** + * DeployedIndex reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; + + /** + * DeployedIndex deploymentGroup. + * @member {string} deploymentGroup + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deploymentGroup = ""; + + /** + * Creates a new DeployedIndex instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex instance + */ + DeployedIndex.create = function create(properties) { + return new DeployedIndex(properties); + }; + + /** + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndex.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) + $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) + $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); + if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) + $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); + if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndex.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployedIndex message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndex(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.index = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.decode(reader, reader.uint32()); + break; + } + case 6: { + message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.decode(reader, reader.uint32()); + break; + } + case 16: { + message.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.decode(reader, reader.uint32()); + break; + } + case 8: { + message.enableAccessLogging = reader.bool(); + break; + } + case 9: { + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + case 11: { + message.deploymentGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployedIndex message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndex.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { + var error = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify(message.privateEndpoints); + if (error) + return "privateEndpoints." + error; + } + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); + if (error) + return "indexSyncTime." + error; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + var error = $root.google.cloud.aiplatform.v1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + var error = $root.google.cloud.aiplatform.v1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; + } + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + if (typeof message.enableAccessLogging !== "boolean") + return "enableAccessLogging: boolean expected"; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (error) + return "deployedIndexAuthConfig." + error; + } + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + if (!$util.isString(message.deploymentGroup)) + return "deploymentGroup: string expected"; + return null; + }; + + /** + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + */ + DeployedIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndex) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeployedIndex(); + if (object.id != null) + message.id = String(object.id); + if (object.index != null) + message.index = String(object.index); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.privateEndpoints != null) { + if (typeof object.privateEndpoints !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.privateEndpoints: object expected"); + message.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); + } + if (object.indexSyncTime != null) { + if (typeof object.indexSyncTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.indexSyncTime: object expected"); + message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.fromObject(object.automaticResources); + } + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.enableAccessLogging != null) + message.enableAccessLogging = Boolean(object.enableAccessLogging); + if (object.deployedIndexAuthConfig != null) { + if (typeof object.deployedIndexAuthConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.deployedIndexAuthConfig: object expected"); + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); + } + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.deploymentGroup != null) + message.deploymentGroup = String(object.deploymentGroup); + return message; + }; + + /** + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndex} message DeployedIndex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.reservedIpRanges = []; + if (options.defaults) { + object.id = ""; + object.index = ""; + object.displayName = ""; + object.createTime = null; + object.privateEndpoints = null; + object.indexSyncTime = null; + object.automaticResources = null; + object.enableAccessLogging = false; + object.deployedIndexAuthConfig = null; + object.deploymentGroup = ""; + object.dedicatedResources = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) + object.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) + object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) + object.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.toObject(message.automaticResources, options); + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + object.enableAccessLogging = message.enableAccessLogging; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) + object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + object.deploymentGroup = message.deploymentGroup; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) + object.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.toObject(message.dedicatedResources, options); + return object; + }; + + /** + * Converts this DeployedIndex to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @instance + * @returns {Object.} JSON object + */ + DeployedIndex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployedIndex + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndex"; + }; + + return DeployedIndex; + })(); + + v1.DeployedIndexAuthConfig = (function() { + + /** + * Properties of a DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeployedIndexAuthConfig + * @property {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + */ + + /** + * Constructs a new DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeployedIndexAuthConfig. + * @implements IDeployedIndexAuthConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig=} [properties] Properties to set + */ + function DeployedIndexAuthConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeployedIndexAuthConfig authProvider. + * @member {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @instance + */ + DeployedIndexAuthConfig.prototype.authProvider = null; + + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + */ + DeployedIndexAuthConfig.create = function create(properties) { + return new DeployedIndexAuthConfig(properties); + }; + + /** + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) + $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployedIndexAuthConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndexAuthConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (error) + return "authProvider." + error; + } + return null; + }; + + /** + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + */ + DeployedIndexAuthConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig(); + if (object.authProvider != null) { + if (typeof object.authProvider !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.authProvider: object expected"); + message.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + } + return message; + }; + + /** + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndexAuthConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.authProvider = null; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) + object.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + return object; + }; + + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @instance + * @returns {Object.} JSON object + */ + DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployedIndexAuthConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndexAuthConfig"; + }; + + DeployedIndexAuthConfig.AuthProvider = (function() { + + /** + * Properties of an AuthProvider. + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @interface IAuthProvider + * @property {Array.|null} [audiences] AuthProvider audiences + * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers + */ + + /** + * Constructs a new AuthProvider. + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @classdesc Represents an AuthProvider. + * @implements IAuthProvider + * @constructor + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + */ + function AuthProvider(properties) { + this.audiences = []; + this.allowedIssuers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuthProvider audiences. + * @member {Array.} audiences + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.audiences = $util.emptyArray; + + /** + * AuthProvider allowedIssuers. + * @member {Array.} allowedIssuers + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.allowedIssuers = $util.emptyArray; + + /** + * Creates a new AuthProvider instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance + */ + AuthProvider.create = function create(properties) { + return new AuthProvider(properties); + }; + + /** + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthProvider.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); + if (message.allowedIssuers != null && message.allowedIssuers.length) + for (var i = 0; i < message.allowedIssuers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); + return writer; + }; + + /** + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuthProvider message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthProvider.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push(reader.string()); + break; + } + case 2: { + if (!(message.allowedIssuers && message.allowedIssuers.length)) + message.allowedIssuers = []; + message.allowedIssuers.push(reader.string()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalParameterSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthProvider.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ConditionalParameterSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConditionalParameterSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify(message.parentDiscreteValues); - if (error) - return "parentDiscreteValues." + error; - } + /** + * Verifies an AuthProvider message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuthProvider.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) + if (!$util.isString(message.audiences[i])) + return "audiences: string[] expected"; + } + if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { + if (!Array.isArray(message.allowedIssuers)) + return "allowedIssuers: array expected"; + for (var i = 0; i < message.allowedIssuers.length; ++i) + if (!$util.isString(message.allowedIssuers[i])) + return "allowedIssuers: string[] expected"; + } + return null; + }; + + /** + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + */ + AuthProvider.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) + message.audiences[i] = String(object.audiences[i]); + } + if (object.allowedIssuers) { + if (!Array.isArray(object.allowedIssuers)) + throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); + message.allowedIssuers = []; + for (var i = 0; i < object.allowedIssuers.length; ++i) + message.allowedIssuers[i] = String(object.allowedIssuers[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuthProvider.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.audiences = []; + object.allowedIssuers = []; + } + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = message.audiences[j]; + } + if (message.allowedIssuers && message.allowedIssuers.length) { + object.allowedIssuers = []; + for (var j = 0; j < message.allowedIssuers.length; ++j) + object.allowedIssuers[j] = message.allowedIssuers[j]; + } + return object; + }; + + /** + * Converts this AuthProvider to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @instance + * @returns {Object.} JSON object + */ + AuthProvider.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AuthProvider + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider"; + }; + + return AuthProvider; + })(); + + return DeployedIndexAuthConfig; + })(); + + v1.IndexPrivateEndpoints = (function() { + + /** + * Properties of an IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1 + * @interface IIndexPrivateEndpoints + * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress + * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + */ + + /** + * Constructs a new IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexPrivateEndpoints. + * @implements IIndexPrivateEndpoints + * @constructor + * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints=} [properties] Properties to set + */ + function IndexPrivateEndpoints(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IndexPrivateEndpoints matchGrpcAddress. + * @member {string} matchGrpcAddress + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + + /** + * IndexPrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.serviceAttachment = ""; + + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + */ + IndexPrivateEndpoints.create = function create(properties) { + return new IndexPrivateEndpoints(properties); + }; + + /** + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + return writer; + }; + + /** + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchGrpcAddress = reader.string(); + break; } - if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { - if (properties.parentValueCondition === 1) - return "parentValueCondition: multiple values"; - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify(message.parentIntValues); - if (error) - return "parentIntValues." + error; - } + case 2: { + message.serviceAttachment = reader.string(); + break; } - if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { - if (properties.parentValueCondition === 1) - return "parentValueCondition: multiple values"; - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify(message.parentCategoricalValues); - if (error) - return "parentCategoricalValues." + error; - } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexPrivateEndpoints message. + * @function verify + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexPrivateEndpoints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + if (!$util.isString(message.matchGrpcAddress)) + return "matchGrpcAddress: string expected"; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; + return null; + }; + + /** + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + */ + IndexPrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints) + return object; + var message = new $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints(); + if (object.matchGrpcAddress != null) + message.matchGrpcAddress = String(object.matchGrpcAddress); + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); + return message; + }; + + /** + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexPrivateEndpoints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchGrpcAddress = ""; + object.serviceAttachment = ""; + } + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + object.matchGrpcAddress = message.matchGrpcAddress; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; + return object; + }; + + /** + * Converts this IndexPrivateEndpoints to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @instance + * @returns {Object.} JSON object + */ + IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexPrivateEndpoints + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexPrivateEndpoints"; + }; + + return IndexPrivateEndpoints; + })(); + + v1.PrivateServiceConnectConfig = (function() { + + /** + * Properties of a PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IPrivateServiceConnectConfig + * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect + * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + */ + + /** + * Constructs a new PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PrivateServiceConnectConfig. + * @implements IPrivateServiceConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + */ + function PrivateServiceConnectConfig(properties) { + this.projectAllowlist = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PrivateServiceConnectConfig enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + + /** + * PrivateServiceConnectConfig projectAllowlist. + * @member {Array.} projectAllowlist + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + */ + PrivateServiceConnectConfig.create = function create(properties) { + return new PrivateServiceConnectConfig(properties); + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); + if (message.projectAllowlist != null && message.projectAllowlist.length) + for (var i = 0; i < message.projectAllowlist.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + return writer; + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateServiceConnect = reader.bool(); + break; } - if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) { - var error = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.verify(message.parameterSpec); - if (error) - return "parameterSpec." + error; + case 2: { + if (!(message.projectAllowlist && message.projectAllowlist.length)) + message.projectAllowlist = []; + message.projectAllowlist.push(reader.string()); + break; } - return null; - }; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateServiceConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateServiceConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { + if (!Array.isArray(message.projectAllowlist)) + return "projectAllowlist: array expected"; + for (var i = 0; i < message.projectAllowlist.length; ++i) + if (!$util.isString(message.projectAllowlist[i])) + return "projectAllowlist: string[] expected"; + } + return null; + }; + + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + */ + PrivateServiceConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.projectAllowlist) { + if (!Array.isArray(object.projectAllowlist)) + throw TypeError(".google.cloud.aiplatform.v1.PrivateServiceConnectConfig.projectAllowlist: array expected"); + message.projectAllowlist = []; + for (var i = 0; i < object.projectAllowlist.length; ++i) + message.projectAllowlist[i] = String(object.projectAllowlist[i]); + } + return message; + }; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateServiceConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.projectAllowlist = []; + if (options.defaults) + object.enablePrivateServiceConnect = false; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.projectAllowlist && message.projectAllowlist.length) { + object.projectAllowlist = []; + for (var j = 0; j < message.projectAllowlist.length; ++j) + object.projectAllowlist[j] = message.projectAllowlist[j]; + } + return object; + }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PrivateServiceConnectConfig"; + }; + + return PrivateServiceConnectConfig; + })(); + + v1.IndexEndpointService = (function() { + + /** + * Constructs a new IndexEndpointService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an IndexEndpointService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. + */ + IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|createIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef CreateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { + return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndexEndpoint" }); + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|getIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef GetIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.IndexEndpoint} [response] IndexEndpoint + */ - /** - * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec - */ - ConditionalParameterSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec(); - if (object.parentDiscreteValues != null) { - if (typeof object.parentDiscreteValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentDiscreteValues: object expected"); - message.parentDiscreteValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.fromObject(object.parentDiscreteValues); - } - if (object.parentIntValues != null) { - if (typeof object.parentIntValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentIntValues: object expected"); - message.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.fromObject(object.parentIntValues); - } - if (object.parentCategoricalValues != null) { - if (typeof object.parentCategoricalValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentCategoricalValues: object expected"); - message.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.fromObject(object.parentCategoricalValues); - } - if (object.parameterSpec != null) { - if (typeof object.parameterSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.parameterSpec: object expected"); - message.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.fromObject(object.parameterSpec); - } - return message; - }; + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { + return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1.IndexEndpoint, request, callback); + }, "name", { value: "GetIndexEndpoint" }); - /** - * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec} message ConditionalParameterSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConditionalParameterSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.parameterSpec = null; - if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) - object.parameterSpec = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.toObject(message.parameterSpec, options); - if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { - object.parentDiscreteValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.toObject(message.parentDiscreteValues, options); - if (options.oneofs) - object.parentValueCondition = "parentDiscreteValues"; - } - if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { - object.parentIntValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.toObject(message.parentIntValues, options); - if (options.oneofs) - object.parentValueCondition = "parentIntValues"; - } - if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { - object.parentCategoricalValues = $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.toObject(message.parentCategoricalValues, options); - if (options.oneofs) - object.parentValueCondition = "parentCategoricalValues"; - } - return object; - }; + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this ConditionalParameterSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - * @returns {Object.} JSON object - */ - ConditionalParameterSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|listIndexEndpoints}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef ListIndexEndpointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse + */ - /** - * Gets the default type url for ConditionalParameterSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConditionalParameterSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec"; - }; + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { + return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse, request, callback); + }, "name", { value: "ListIndexEndpoints" }); - ConditionalParameterSpec.DiscreteValueCondition = (function() { + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Properties of a DiscreteValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IDiscreteValueCondition - * @property {Array.|null} [values] DiscreteValueCondition values - */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|updateIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef UpdateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.IndexEndpoint} [response] IndexEndpoint + */ - /** - * Constructs a new DiscreteValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a DiscreteValueCondition. - * @implements IDiscreteValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set - */ - function DiscreteValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { + return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1.IndexEndpoint, request, callback); + }, "name", { value: "UpdateIndexEndpoint" }); - /** - * DiscreteValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @instance - */ - DiscreteValueCondition.prototype.values = $util.emptyArray; + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a new DiscreteValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition instance - */ - DiscreteValueCondition.create = function create(properties) { - return new DiscreteValueCondition(properties); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|deleteIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef DeleteIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } - return writer; - }; + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { + return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndexEndpoint" }); - /** - * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|deployIndex}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef DeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { + return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployIndex" }); - /** - * Verifies a DiscreteValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DiscreteValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; - } - return null; - }; + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - */ - DiscreteValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|undeployIndex}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef UndeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} message DiscreteValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DiscreteValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; - } - return object; - }; + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { + return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UndeployIndex" }); - /** - * Converts this DiscreteValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @instance - * @returns {Object.} JSON object - */ - DiscreteValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for DiscreteValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DiscreteValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition"; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|mutateDeployedIndex}. + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @typedef MutateDeployedIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - return DiscreteValueCondition; - })(); + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { + return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "MutateDeployedIndex" }); - ConditionalParameterSpec.IntValueCondition = (function() { + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Properties of an IntValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IIntValueCondition - * @property {Array.|null} [values] IntValueCondition values - */ + return IndexEndpointService; + })(); - /** - * Constructs a new IntValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents an IntValueCondition. - * @implements IIntValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set - */ - function IntValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.CreateIndexEndpointRequest = (function() { - /** - * IntValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - */ - IntValueCondition.prototype.values = $util.emptyArray; + /** + * Properties of a CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateIndexEndpointRequest + * @property {string|null} [parent] CreateIndexEndpointRequest parent + * @property {google.cloud.aiplatform.v1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + */ - /** - * Creates a new IntValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition instance - */ - IntValueCondition.create = function create(properties) { - return new IntValueCondition(properties); - }; + /** + * Constructs a new CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateIndexEndpointRequest. + * @implements ICreateIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest=} [properties] Properties to set + */ + function CreateIndexEndpointRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.int64(message.values[i]); - writer.ldelim(); - } - return writer; - }; + /** + * CreateIndexEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.parent = ""; - /** - * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.indexEndpoint = null; - /** - * Decodes an IntValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.int64()); - } else - message.values.push(reader.int64()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + */ + CreateIndexEndpointRequest.create = function create(properties) { + return new CreateIndexEndpointRequest(properties); + }; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies an IntValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; - } - return null; - }; + /** + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - */ - IntValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); - } - return message; - }; + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; - } - return object; - }; + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this IntValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - * @returns {Object.} JSON object - */ - IntValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a CreateIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoint); + if (error) + return "indexEndpoint." + error; + } + return null; + }; - /** - * Gets the default type url for IntValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; - }; + /** + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + */ + CreateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoint); + } + return message; + }; - return IntValueCondition; - })(); + /** + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.indexEndpoint = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoint, options); + return object; + }; - ConditionalParameterSpec.CategoricalValueCondition = (function() { + /** + * Converts this CreateIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface ICategoricalValueCondition - * @property {Array.|null} [values] CategoricalValueCondition values - */ + /** + * Gets the default type url for CreateIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexEndpointRequest"; + }; - /** - * Constructs a new CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a CategoricalValueCondition. - * @implements ICategoricalValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - */ - function CategoricalValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return CreateIndexEndpointRequest; + })(); - /** - * CategoricalValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - */ - CategoricalValueCondition.prototype.values = $util.emptyArray; + v1.CreateIndexEndpointOperationMetadata = (function() { - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance - */ - CategoricalValueCondition.create = function create(properties) { - return new CategoricalValueCondition(properties); - }; + /** + * Properties of a CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateIndexEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + */ - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateIndexEndpointOperationMetadata. + * @implements ICreateIndexEndpointOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + */ + function CreateIndexEndpointOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateIndexEndpointOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @instance + */ + CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + */ + CreateIndexEndpointOperationMetadata.create = function create(properties) { + return new CreateIndexEndpointOperationMetadata(properties); + }; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Verifies a CategoricalValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - */ - CategoricalValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - return message; - }; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - return object; - }; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this CategoricalValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a CreateIndexEndpointOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Gets the default type url for CategoricalValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; - }; + /** + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + */ + CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; - return CategoricalValueCondition; - })(); + /** + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - return ConditionalParameterSpec; - })(); + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ScaleType enum. - * @name google.cloud.aiplatform.v1.StudySpec.ParameterSpec.ScaleType - * @enum {number} - * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value - * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value - * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value - * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value - */ - ParameterSpec.ScaleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; - values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; - values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; - return values; - })(); + /** + * Gets the default type url for CreateIndexEndpointOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata"; + }; - return ParameterSpec; - })(); + return CreateIndexEndpointOperationMetadata; + })(); - StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + v1.GetIndexEndpointRequest = (function() { - /** - * Properties of a DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @interface IDecayCurveAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration - */ + /** + * Properties of a GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetIndexEndpointRequest + * @property {string|null} [name] GetIndexEndpointRequest name + */ - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @classdesc Represents a DecayCurveAutomatedStoppingSpec. - * @implements IDecayCurveAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - */ - function DecayCurveAutomatedStoppingSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetIndexEndpointRequest. + * @implements IGetIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest=} [properties] Properties to set + */ + function GetIndexEndpointRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DecayCurveAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @instance - */ - DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * GetIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @instance + */ + GetIndexEndpointRequest.prototype.name = ""; - /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance - */ - DecayCurveAutomatedStoppingSpec.create = function create(properties) { - return new DecayCurveAutomatedStoppingSpec(properties); - }; + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + */ + GetIndexEndpointRequest.create = function create(properties) { + return new GetIndexEndpointRequest(properties); + }; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); - return writer; - }; + /** + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.useElapsedDuration = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a DecayCurveAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DecayCurveAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - return null; - }; + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - */ - DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - return message; - }; + /** + * Verifies a GetIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + */ + GetIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest) return object; - }; - - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Gets the default type url for DecayCurveAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.DecayCurveAutomatedStoppingSpec"; - }; + /** + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return DecayCurveAutomatedStoppingSpec; - })(); + /** + * Converts this GetIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - StudySpec.MedianAutomatedStoppingSpec = (function() { + /** + * Gets the default type url for GetIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetIndexEndpointRequest"; + }; - /** - * Properties of a MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @interface IMedianAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration - */ + return GetIndexEndpointRequest; + })(); - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @classdesc Represents a MedianAutomatedStoppingSpec. - * @implements IMedianAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - */ - function MedianAutomatedStoppingSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.ListIndexEndpointsRequest = (function() { - /** - * MedianAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @instance - */ - MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * Properties of a ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListIndexEndpointsRequest + * @property {string|null} [parent] ListIndexEndpointsRequest parent + * @property {string|null} [filter] ListIndexEndpointsRequest filter + * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize + * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + */ - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance - */ - MedianAutomatedStoppingSpec.create = function create(properties) { - return new MedianAutomatedStoppingSpec(properties); - }; + /** + * Constructs a new ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListIndexEndpointsRequest. + * @implements IListIndexEndpointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest=} [properties] Properties to set + */ + function ListIndexEndpointsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); - return writer; - }; + /** + * ListIndexEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.parent = ""; - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListIndexEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.filter = ""; - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.useElapsedDuration = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListIndexEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageSize = 0; - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ListIndexEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageToken = ""; - /** - * Verifies a MedianAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MedianAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - return null; - }; + /** + * ListIndexEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.readMask = null; - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - */ - MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - return message; - }; + /** + * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + */ + ListIndexEndpointsRequest.create = function create(properties) { + return new ListIndexEndpointsRequest(properties); + }; - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; - return object; - }; + /** + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for MedianAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MedianAutomatedStoppingSpec"; - }; + } + return message; + }; - return MedianAutomatedStoppingSpec; - })(); + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - StudySpec.ConvexAutomatedStoppingSpec = (function() { + /** + * Verifies a ListIndexEndpointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Properties of a ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @interface IConvexAutomatedStoppingSpec - * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount - * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount - * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount - * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName - * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration - * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials - */ + /** + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + */ + ListIndexEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Constructs a new ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1.StudySpec - * @classdesc Represents a ConvexAutomatedStoppingSpec. - * @implements IConvexAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - */ - function ConvexAutomatedStoppingSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListIndexEndpointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; - /** - * ConvexAutomatedStoppingSpec maxStepCount. - * @member {number|Long} maxStepCount - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Converts this ListIndexEndpointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @instance + * @returns {Object.} JSON object + */ + ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConvexAutomatedStoppingSpec minStepCount. - * @member {number|Long} minStepCount - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Gets the default type url for ListIndexEndpointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexEndpointsRequest"; + }; - /** - * ConvexAutomatedStoppingSpec minMeasurementCount. - * @member {number|Long} minMeasurementCount - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return ListIndexEndpointsRequest; + })(); - /** - * ConvexAutomatedStoppingSpec learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + v1.ListIndexEndpointsResponse = (function() { - /** - * ConvexAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * Properties of a ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListIndexEndpointsResponse + * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints + * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + */ - /** - * ConvexAutomatedStoppingSpec updateAllStoppedTrials. - * @member {boolean|null|undefined} updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + /** + * Constructs a new ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListIndexEndpointsResponse. + * @implements IListIndexEndpointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse=} [properties] Properties to set + */ + function ListIndexEndpointsResponse(properties) { + this.indexEndpoints = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListIndexEndpointsResponse indexEndpoints. + * @member {Array.} indexEndpoints + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; - /** - * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. - * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { - get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ListIndexEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.nextPageToken = ""; - /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance - */ - ConvexAutomatedStoppingSpec.create = function create(properties) { - return new ConvexAutomatedStoppingSpec(properties); - }; + /** + * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + */ + ListIndexEndpointsResponse.create = function create(properties) { + return new ListIndexEndpointsResponse(properties); + }; - /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); - if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); - if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); - if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); - return writer; - }; + /** + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoints != null && message.indexEndpoints.length) + for (var i = 0; i < message.indexEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.maxStepCount = reader.int64(); - break; - } - case 2: { - message.minStepCount = reader.int64(); - break; - } - case 3: { - message.minMeasurementCount = reader.int64(); - break; - } - case 4: { - message.learningRateParameterName = reader.string(); - break; - } - case 5: { - message.useElapsedDuration = reader.bool(); - break; - } - case 6: { - message.updateAllStoppedTrials = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.indexEndpoints && message.indexEndpoints.length)) + message.indexEndpoints = []; + message.indexEndpoints.push($root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ConvexAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConvexAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) - return "maxStepCount: integer|Long expected"; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) - return "minStepCount: integer|Long expected"; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) - return "minMeasurementCount: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - properties._updateAllStoppedTrials = 1; - if (typeof message.updateAllStoppedTrials !== "boolean") - return "updateAllStoppedTrials: boolean expected"; + /** + * Verifies a ListIndexEndpointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { + if (!Array.isArray(message.indexEndpoints)) + return "indexEndpoints: array expected"; + for (var i = 0; i < message.indexEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoints[i]); + if (error) + return "indexEndpoints." + error; } - return null; - }; - - /** - * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - */ - ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec(); - if (object.maxStepCount != null) - if ($util.Long) - (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; - else if (typeof object.maxStepCount === "string") - message.maxStepCount = parseInt(object.maxStepCount, 10); - else if (typeof object.maxStepCount === "number") - message.maxStepCount = object.maxStepCount; - else if (typeof object.maxStepCount === "object") - message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); - if (object.minStepCount != null) - if ($util.Long) - (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; - else if (typeof object.minStepCount === "string") - message.minStepCount = parseInt(object.minStepCount, 10); - else if (typeof object.minStepCount === "number") - message.minStepCount = object.minStepCount; - else if (typeof object.minStepCount === "object") - message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); - if (object.minMeasurementCount != null) - if ($util.Long) - (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; - else if (typeof object.minMeasurementCount === "string") - message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); - else if (typeof object.minMeasurementCount === "number") - message.minMeasurementCount = object.minMeasurementCount; - else if (typeof object.minMeasurementCount === "object") - message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - if (object.updateAllStoppedTrials != null) - message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minMeasurementCount = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useElapsedDuration = false; - } - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (typeof message.maxStepCount === "number") - object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; - else - object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (typeof message.minStepCount === "number") - object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; - else - object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (typeof message.minMeasurementCount === "number") - object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; - else - object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - object.updateAllStoppedTrials = message.updateAllStoppedTrials; - if (options.oneofs) - object._updateAllStoppedTrials = "updateAllStoppedTrials"; - } + /** + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + */ + ListIndexEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse) return object; - }; - - /** - * Converts this ConvexAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ConvexAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse(); + if (object.indexEndpoints) { + if (!Array.isArray(object.indexEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsResponse.indexEndpoints: array expected"); + message.indexEndpoints = []; + for (var i = 0; i < object.indexEndpoints.length; ++i) { + if (typeof object.indexEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsResponse.indexEndpoints: object expected"); + message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoints[i]); } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.ConvexAutomatedStoppingSpec"; - }; - - return ConvexAutomatedStoppingSpec; - })(); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Algorithm enum. - * @name google.cloud.aiplatform.v1.StudySpec.Algorithm - * @enum {number} - * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value - * @property {number} GRID_SEARCH=2 GRID_SEARCH value - * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - StudySpec.Algorithm = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; - values[valuesById[2] = "GRID_SEARCH"] = 2; - values[valuesById[3] = "RANDOM_SEARCH"] = 3; - return values; - })(); + ListIndexEndpointsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.indexEndpoints = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.indexEndpoints && message.indexEndpoints.length) { + object.indexEndpoints = []; + for (var j = 0; j < message.indexEndpoints.length; ++j) + object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * ObservationNoise enum. - * @name google.cloud.aiplatform.v1.StudySpec.ObservationNoise - * @enum {number} - * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value - * @property {number} LOW=1 LOW value - * @property {number} HIGH=2 HIGH value + * Converts this ListIndexEndpointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @instance + * @returns {Object.} JSON object */ - StudySpec.ObservationNoise = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LOW"] = 1; - values[valuesById[2] = "HIGH"] = 2; - return values; - })(); + ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * MeasurementSelectionType enum. - * @name google.cloud.aiplatform.v1.StudySpec.MeasurementSelectionType - * @enum {number} - * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value - * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value - * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + * Gets the default type url for ListIndexEndpointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - StudySpec.MeasurementSelectionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LAST_MEASUREMENT"] = 1; - values[valuesById[2] = "BEST_MEASUREMENT"] = 2; - return values; - })(); + ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexEndpointsResponse"; + }; - return StudySpec; + return ListIndexEndpointsResponse; })(); - v1.Measurement = (function() { + v1.UpdateIndexEndpointRequest = (function() { /** - * Properties of a Measurement. + * Properties of an UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IMeasurement - * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration - * @property {number|Long|null} [stepCount] Measurement stepCount - * @property {Array.|null} [metrics] Measurement metrics + * @interface IUpdateIndexEndpointRequest + * @property {google.cloud.aiplatform.v1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask */ /** - * Constructs a new Measurement. + * Constructs a new UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Measurement. - * @implements IMeasurement + * @classdesc Represents an UpdateIndexEndpointRequest. + * @implements IUpdateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1.IMeasurement=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest=} [properties] Properties to set */ - function Measurement(properties) { - this.metrics = []; + function UpdateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74810,106 +94893,311 @@ } /** - * Measurement elapsedDuration. - * @member {google.protobuf.IDuration|null|undefined} elapsedDuration - * @memberof google.cloud.aiplatform.v1.Measurement + * UpdateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.elapsedDuration = null; + UpdateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * Measurement stepCount. - * @member {number|Long} stepCount - * @memberof google.cloud.aiplatform.v1.Measurement + * UpdateIndexEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateIndexEndpointRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance + */ + UpdateIndexEndpointRequest.create = function create(properties) { + return new UpdateIndexEndpointRequest(properties); + }; + + /** + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIndexEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateIndexEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoint); + if (error) + return "indexEndpoint." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + */ + UpdateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest(); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoint); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = null; + object.updateMask = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexEndpointRequest"; + }; + + return UpdateIndexEndpointRequest; + })(); + + v1.DeleteIndexEndpointRequest = (function() { + + /** + * Properties of a DeleteIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteIndexEndpointRequest + * @property {string|null} [name] DeleteIndexEndpointRequest name + */ + + /** + * Constructs a new DeleteIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteIndexEndpointRequest. + * @implements IDeleteIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest=} [properties] Properties to set + */ + function DeleteIndexEndpointRequest(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]]; + } /** - * Measurement metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1.Measurement + * DeleteIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @instance */ - Measurement.prototype.metrics = $util.emptyArray; + DeleteIndexEndpointRequest.prototype.name = ""; /** - * Creates a new Measurement instance using the specified properties. + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1.IMeasurement=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Measurement} Measurement instance + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance */ - Measurement.create = function create(properties) { - return new Measurement(properties); + DeleteIndexEndpointRequest.create = function create(properties) { + return new DeleteIndexEndpointRequest(properties); }; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.verify|verify} messages. + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encode = function encode(message, writer) { + DeleteIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) - $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.verify|verify} messages. + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decode = function decode(reader, length) { + DeleteIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Measurement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.stepCount = reader.int64(); - break; - } - case 3: { - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1.Measurement.Metric.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -74921,417 +95209,123 @@ }; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Measurement message. + * Verifies a DeleteIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Measurement.verify = function verify(message) { + DeleteIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { - var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); - if (error) - return "elapsedDuration." + error; - } - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) - return "stepCount: integer|Long expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Measurement.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest */ - Measurement.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Measurement) + DeleteIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.Measurement(); - if (object.elapsedDuration != null) { - if (typeof object.elapsedDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Measurement.elapsedDuration: object expected"); - message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); - } - if (object.stepCount != null) - if ($util.Long) - (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; - else if (typeof object.stepCount === "string") - message.stepCount = parseInt(object.stepCount, 10); - else if (typeof object.stepCount === "number") - message.stepCount = object.stepCount; - else if (typeof object.stepCount === "object") - message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1.Measurement.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Measurement.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1.Measurement.Metric.fromObject(object.metrics[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1.Measurement} message Measurement + * @param {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Measurement.toObject = function toObject(message, options) { + DeleteIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.elapsedDuration = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stepCount = options.longs === String ? "0" : 0; - } - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) - object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (typeof message.stepCount === "number") - object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; - else - object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1.Measurement.Metric.toObject(message.metrics[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this Measurement to JSON. + * Converts this DeleteIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - Measurement.prototype.toJSON = function toJSON() { + DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Measurement + * Gets the default type url for DeleteIndexEndpointRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Measurement + * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Measurement"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteIndexEndpointRequest"; }; - Measurement.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof google.cloud.aiplatform.v1.Measurement - * @interface IMetric - * @property {string|null} [metricId] Metric metricId - * @property {number|null} [value] Metric value - */ - - /** - * Constructs a new Metric. - * @memberof google.cloud.aiplatform.v1.Measurement - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.aiplatform.v1.Measurement.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Metric metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @instance - */ - Metric.prototype.metricId = ""; - - /** - * Metric value. - * @member {number} value - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @instance - */ - Metric.prototype.value = 0; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1.Measurement.IMetric=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Measurement.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Measurement.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metricId = reader.string(); - break; - } - case 2: { - message.value = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Measurement.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Measurement.Metric) - return object; - var message = new $root.google.cloud.aiplatform.v1.Measurement.Metric(); - if (object.metricId != null) - message.metricId = String(object.metricId); - if (object.value != null) - message.value = Number(object.value); - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1.Measurement.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.value = 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Measurement.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Measurement.Metric"; - }; - - return Metric; - })(); - - return Measurement; + return DeleteIndexEndpointRequest; })(); - v1.Index = (function() { + v1.DeployIndexRequest = (function() { /** - * Properties of an Index. + * Properties of a DeployIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IIndex - * @property {string|null} [name] Index name - * @property {string|null} [displayName] Index displayName - * @property {string|null} [description] Index description - * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Index metadata - * @property {Array.|null} [deployedIndexes] Index deployedIndexes - * @property {string|null} [etag] Index etag - * @property {Object.|null} [labels] Index labels - * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime - * @property {google.cloud.aiplatform.v1.IIndexStats|null} [indexStats] Index indexStats - * @property {google.cloud.aiplatform.v1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Index encryptionSpec + * @interface IDeployIndexRequest + * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex */ /** - * Constructs a new Index. + * Constructs a new DeployIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an Index. - * @implements IIndex + * @classdesc Represents a DeployIndexRequest. + * @implements IDeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest=} [properties] Properties to set */ - function Index(properties) { - this.deployedIndexes = []; - this.labels = {}; + function DeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75339,266 +95333,89 @@ } /** - * Index name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.name = ""; - - /** - * Index displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.displayName = ""; - - /** - * Index description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.description = ""; - - /** - * Index metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.metadataSchemaUri = ""; - - /** - * Index metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.metadata = null; - - /** - * Index deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.deployedIndexes = $util.emptyArray; - - /** - * Index etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.etag = ""; - - /** - * Index labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.labels = $util.emptyObject; - - /** - * Index createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.createTime = null; - - /** - * Index updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.updateTime = null; - - /** - * Index indexStats. - * @member {google.cloud.aiplatform.v1.IIndexStats|null|undefined} indexStats - * @memberof google.cloud.aiplatform.v1.Index - * @instance - */ - Index.prototype.indexStats = null; - - /** - * Index indexUpdateMethod. - * @member {google.cloud.aiplatform.v1.Index.IndexUpdateMethod} indexUpdateMethod - * @memberof google.cloud.aiplatform.v1.Index + * DeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @instance */ - Index.prototype.indexUpdateMethod = 0; + DeployIndexRequest.prototype.indexEndpoint = ""; /** - * Index encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.Index + * DeployIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @instance */ - Index.prototype.encryptionSpec = null; + DeployIndexRequest.prototype.deployedIndex = null; /** - * Creates a new Index instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Index} Index instance + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest instance */ - Index.create = function create(properties) { - return new Index(properties); + DeployIndexRequest.create = function create(properties) { + return new DeployIndexRequest(properties); }; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encode = function encode(message, writer) { + DeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) - $root.google.cloud.aiplatform.v1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Index} Index + * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decode = function decode(reader, length) { + DeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Index(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.metadataSchemaUri = reader.string(); - break; - } - case 6: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1.DeployedIndexRef.decode(reader, reader.uint32())); - break; - } - case 8: { - message.etag = reader.string(); - break; - } - case 9: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 10: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.decode(reader, reader.uint32()); - break; - } - case 16: { - message.indexUpdateMethod = reader.int32(); - break; - } - case 17: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -75610,322 +95427,136 @@ }; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Index} Index + * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decodeDelimited = function decodeDelimited(reader) { + DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Index message. + * Verifies a DeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Index.verify = function verify(message) { + DeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndexRef.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.indexStats != null && message.hasOwnProperty("indexStats")) { - var error = $root.google.cloud.aiplatform.v1.IndexStats.verify(message.indexStats); - if (error) - return "indexStats." + error; - } - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - switch (message.indexUpdateMethod) { - default: - return "indexUpdateMethod: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); if (error) - return "encryptionSpec." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates an Index message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Index} Index + * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest */ - Index.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Index) + DeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.Index(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1.Index.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.indexStats != null) { - if (typeof object.indexStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.indexStats: object expected"); - message.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.fromObject(object.indexStats); - } - switch (object.indexUpdateMethod) { - default: - if (typeof object.indexUpdateMethod === "number") { - message.indexUpdateMethod = object.indexUpdateMethod; - break; - } - break; - case "INDEX_UPDATE_METHOD_UNSPECIFIED": - case 0: - message.indexUpdateMethod = 0; - break; - case "BATCH_UPDATE": - case 1: - message.indexUpdateMethod = 1; - break; - case "STREAM_UPDATE": - case 2: - message.indexUpdateMethod = 2; - break; - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Index.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1.DeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.Index} message Index + * @param {google.cloud.aiplatform.v1.DeployIndexRequest} message DeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Index.toObject = function toObject(message, options) { + DeployIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.metadataSchemaUri = ""; - object.metadata = null; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.indexStats = null; - object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; - object.encryptionSpec = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.indexEndpoint = ""; + object.deployedIndex = null; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.indexStats != null && message.hasOwnProperty("indexStats")) - object.indexStats = $root.google.cloud.aiplatform.v1.IndexStats.toObject(message.indexStats, options); - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this Index to JSON. + * Converts this DeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @instance * @returns {Object.} JSON object */ - Index.prototype.toJSON = function toJSON() { + DeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Index + * Gets the default type url for DeployIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Index + * @memberof google.cloud.aiplatform.v1.DeployIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Index"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexRequest"; }; - /** - * IndexUpdateMethod enum. - * @name google.cloud.aiplatform.v1.Index.IndexUpdateMethod - * @enum {number} - * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value - * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value - * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value - */ - Index.IndexUpdateMethod = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; - values[valuesById[1] = "BATCH_UPDATE"] = 1; - values[valuesById[2] = "STREAM_UPDATE"] = 2; - return values; - })(); - - return Index; + return DeployIndexRequest; })(); - v1.IndexDatapoint = (function() { + v1.DeployIndexResponse = (function() { /** - * Properties of an IndexDatapoint. + * Properties of a DeployIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IIndexDatapoint - * @property {string|null} [datapointId] IndexDatapoint datapointId - * @property {Array.|null} [featureVector] IndexDatapoint featureVector - * @property {Array.|null} [restricts] IndexDatapoint restricts - * @property {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + * @interface IDeployIndexResponse + * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex */ /** - * Constructs a new IndexDatapoint. + * Constructs a new DeployIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexDatapoint. - * @implements IIndexDatapoint + * @classdesc Represents a DeployIndexResponse. + * @implements IDeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeployIndexResponse=} [properties] Properties to set */ - function IndexDatapoint(properties) { - this.featureVector = []; - this.restricts = []; + function DeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75933,131 +95564,75 @@ } /** - * IndexDatapoint datapointId. - * @member {string} datapointId - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.datapointId = ""; - - /** - * IndexDatapoint featureVector. - * @member {Array.} featureVector - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.featureVector = $util.emptyArray; - - /** - * IndexDatapoint restricts. - * @member {Array.} restricts - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.restricts = $util.emptyArray; - - /** - * IndexDatapoint crowdingTag. - * @member {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * DeployIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @instance */ - IndexDatapoint.prototype.crowdingTag = null; + DeployIndexResponse.prototype.deployedIndex = null; /** - * Creates a new IndexDatapoint instance using the specified properties. + * Creates a new DeployIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexDatapoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint instance + * @param {google.cloud.aiplatform.v1.IDeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse instance */ - IndexDatapoint.create = function create(properties) { - return new IndexDatapoint(properties); + DeployIndexResponse.create = function create(properties) { + return new DeployIndexResponse(properties); }; /** - * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encode = function encode(message, writer) { + DeployIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); - if (message.featureVector != null && message.featureVector.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.featureVector.length; ++i) - writer.float(message.featureVector[i]); - writer.ldelim(); - } - if (message.restricts != null && message.restricts.length) - for (var i = 0; i < message.restricts.length; ++i) - $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) - $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer. + * Decodes a DeployIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decode = function decode(reader, length) { + DeployIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.datapointId = reader.string(); - break; - } - case 2: { - if (!(message.featureVector && message.featureVector.length)) - message.featureVector = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.featureVector.push(reader.float()); - } else - message.featureVector.push(reader.float()); - break; - } - case 4: { - if (!(message.restricts && message.restricts.length)) - message.restricts = []; - message.restricts.push($root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); - break; - } - case 5: { - message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -76069,670 +95644,128 @@ }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexDatapoint message. + * Verifies a DeployIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexDatapoint.verify = function verify(message) { + DeployIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - if (!$util.isString(message.datapointId)) - return "datapointId: string expected"; - if (message.featureVector != null && message.hasOwnProperty("featureVector")) { - if (!Array.isArray(message.featureVector)) - return "featureVector: array expected"; - for (var i = 0; i < message.featureVector.length; ++i) - if (typeof message.featureVector[i] !== "number") - return "featureVector: number[] expected"; - } - if (message.restricts != null && message.hasOwnProperty("restricts")) { - if (!Array.isArray(message.restricts)) - return "restricts: array expected"; - for (var i = 0; i < message.restricts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify(message.restricts[i]); - if (error) - return "restricts." + error; - } - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { - var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); if (error) - return "crowdingTag." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse */ - IndexDatapoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint) + DeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint(); - if (object.datapointId != null) - message.datapointId = String(object.datapointId); - if (object.featureVector) { - if (!Array.isArray(object.featureVector)) - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.featureVector: array expected"); - message.featureVector = []; - for (var i = 0; i < object.featureVector.length; ++i) - message.featureVector[i] = Number(object.featureVector[i]); - } - if (object.restricts) { - if (!Array.isArray(object.restricts)) - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: array expected"); - message.restricts = []; - for (var i = 0; i < object.restricts.length; ++i) { - if (typeof object.restricts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.restricts: object expected"); - message.restricts[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); - } - } - if (object.crowdingTag != null) { - if (typeof object.crowdingTag !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.crowdingTag: object expected"); - message.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + var message = new $root.google.cloud.aiplatform.v1.DeployIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint} message IndexDatapoint + * @param {google.cloud.aiplatform.v1.DeployIndexResponse} message DeployIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexDatapoint.toObject = function toObject(message, options) { + DeployIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.featureVector = []; - object.restricts = []; - } - if (options.defaults) { - object.datapointId = ""; - object.crowdingTag = null; - } - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - object.datapointId = message.datapointId; - if (message.featureVector && message.featureVector.length) { - object.featureVector = []; - for (var j = 0; j < message.featureVector.length; ++j) - object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; - } - if (message.restricts && message.restricts.length) { - object.restricts = []; - for (var j = 0; j < message.restricts.length; ++j) - object.restricts[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) - object.crowdingTag = $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this IndexDatapoint to JSON. + * Converts this DeployIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @instance * @returns {Object.} JSON object */ - IndexDatapoint.prototype.toJSON = function toJSON() { + DeployIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexDatapoint + * Gets the default type url for DeployIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1.DeployIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexResponse"; }; - IndexDatapoint.Restriction = (function() { - - /** - * Properties of a Restriction. - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @interface IRestriction - * @property {string|null} [namespace] Restriction namespace - * @property {Array.|null} [allowList] Restriction allowList - * @property {Array.|null} [denyList] Restriction denyList - */ - - /** - * Constructs a new Restriction. - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @classdesc Represents a Restriction. - * @implements IRestriction - * @constructor - * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set - */ - function Restriction(properties) { - this.allowList = []; - this.denyList = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Restriction namespace. - * @member {string} namespace - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.namespace = ""; - - /** - * Restriction allowList. - * @member {Array.} allowList - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.allowList = $util.emptyArray; - - /** - * Restriction denyList. - * @member {Array.} denyList - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.denyList = $util.emptyArray; - - /** - * Creates a new Restriction instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction instance - */ - Restriction.create = function create(properties) { - return new Restriction(properties); - }; - - /** - * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); - if (message.allowList != null && message.allowList.length) - for (var i = 0; i < message.allowList.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); - if (message.denyList != null && message.denyList.length) - for (var i = 0; i < message.denyList.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); - return writer; - }; - - /** - * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Restriction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namespace = reader.string(); - break; - } - case 2: { - if (!(message.allowList && message.allowList.length)) - message.allowList = []; - message.allowList.push(reader.string()); - break; - } - case 3: { - if (!(message.denyList && message.denyList.length)) - message.denyList = []; - message.denyList.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Restriction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Restriction message. - * @function verify - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Restriction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - if (message.allowList != null && message.hasOwnProperty("allowList")) { - if (!Array.isArray(message.allowList)) - return "allowList: array expected"; - for (var i = 0; i < message.allowList.length; ++i) - if (!$util.isString(message.allowList[i])) - return "allowList: string[] expected"; - } - if (message.denyList != null && message.hasOwnProperty("denyList")) { - if (!Array.isArray(message.denyList)) - return "denyList: array expected"; - for (var i = 0; i < message.denyList.length; ++i) - if (!$util.isString(message.denyList[i])) - return "denyList: string[] expected"; - } - return null; - }; - - /** - * Creates a Restriction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} Restriction - */ - Restriction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction) - return object; - var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.Restriction(); - if (object.namespace != null) - message.namespace = String(object.namespace); - if (object.allowList) { - if (!Array.isArray(object.allowList)) - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.allowList: array expected"); - message.allowList = []; - for (var i = 0; i < object.allowList.length; ++i) - message.allowList[i] = String(object.allowList[i]); - } - if (object.denyList) { - if (!Array.isArray(object.denyList)) - throw TypeError(".google.cloud.aiplatform.v1.IndexDatapoint.Restriction.denyList: array expected"); - message.denyList = []; - for (var i = 0; i < object.denyList.length; ++i) - message.denyList[i] = String(object.denyList[i]); - } - return message; - }; - - /** - * Creates a plain object from a Restriction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.Restriction} message Restriction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Restriction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.allowList = []; - object.denyList = []; - } - if (options.defaults) - object.namespace = ""; - if (message.namespace != null && message.hasOwnProperty("namespace")) - object.namespace = message.namespace; - if (message.allowList && message.allowList.length) { - object.allowList = []; - for (var j = 0; j < message.allowList.length; ++j) - object.allowList[j] = message.allowList[j]; - } - if (message.denyList && message.denyList.length) { - object.denyList = []; - for (var j = 0; j < message.denyList.length; ++j) - object.denyList[j] = message.denyList[j]; - } - return object; - }; - - /** - * Converts this Restriction to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @instance - * @returns {Object.} JSON object - */ - Restriction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Restriction - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.Restriction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.Restriction"; - }; - - return Restriction; - })(); - - IndexDatapoint.CrowdingTag = (function() { - - /** - * Properties of a CrowdingTag. - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @interface ICrowdingTag - * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute - */ - - /** - * Constructs a new CrowdingTag. - * @memberof google.cloud.aiplatform.v1.IndexDatapoint - * @classdesc Represents a CrowdingTag. - * @implements ICrowdingTag - * @constructor - * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - */ - function CrowdingTag(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CrowdingTag crowdingAttribute. - * @member {string} crowdingAttribute - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @instance - */ - CrowdingTag.prototype.crowdingAttribute = ""; - - /** - * Creates a new CrowdingTag instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag instance - */ - CrowdingTag.create = function create(properties) { - return new CrowdingTag(properties); - }; - - /** - * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); - return writer; - }; - - /** - * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.crowdingAttribute = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CrowdingTag message. - * @function verify - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CrowdingTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - if (!$util.isString(message.crowdingAttribute)) - return "crowdingAttribute: string expected"; - return null; - }; - - /** - * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} CrowdingTag - */ - CrowdingTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag) - return object; - var message = new $root.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag(); - if (object.crowdingAttribute != null) - message.crowdingAttribute = String(object.crowdingAttribute); - return message; - }; - - /** - * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag} message CrowdingTag - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CrowdingTag.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.crowdingAttribute = ""; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - object.crowdingAttribute = message.crowdingAttribute; - return object; - }; - - /** - * Converts this CrowdingTag to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @instance - * @returns {Object.} JSON object - */ - CrowdingTag.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CrowdingTag - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"; - }; - - return CrowdingTag; - })(); - - return IndexDatapoint; + return DeployIndexResponse; })(); - v1.IndexStats = (function() { + v1.DeployIndexOperationMetadata = (function() { /** - * Properties of an IndexStats. + * Properties of a DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IIndexStats - * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount - * @property {number|null} [shardsCount] IndexStats shardsCount + * @interface IDeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId */ /** - * Constructs a new IndexStats. + * Constructs a new DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexStats. - * @implements IIndexStats + * @classdesc Represents a DeployIndexOperationMetadata. + * @implements IDeployIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata=} [properties] Properties to set */ - function IndexStats(properties) { + function DeployIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76740,89 +95773,89 @@ } /** - * IndexStats vectorsCount. - * @member {number|Long} vectorsCount - * @memberof google.cloud.aiplatform.v1.IndexStats + * DeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @instance */ - IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * IndexStats shardsCount. - * @member {number} shardsCount - * @memberof google.cloud.aiplatform.v1.IndexStats + * DeployIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @instance */ - IndexStats.prototype.shardsCount = 0; + DeployIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new IndexStats instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IIndexStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats instance + * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance */ - IndexStats.create = function create(properties) { - return new IndexStats(properties); + DeployIndexOperationMetadata.create = function create(properties) { + return new DeployIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encode = function encode(message, writer) { + DeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); - if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexStats.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexStats message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decode = function decode(reader, length) { + DeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vectorsCount = reader.int64(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.shardsCount = reader.int32(); + message.deployedIndexId = reader.string(); break; } default: @@ -76834,160 +95867,137 @@ }; /** - * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decodeDelimited = function decodeDelimited(reader) { + DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexStats message. + * Verifies a DeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexStats.verify = function verify(message) { + DeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) - return "vectorsCount: integer|Long expected"; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - if (!$util.isInteger(message.shardsCount)) - return "shardsCount: integer expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata */ - IndexStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexStats) + DeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.IndexStats(); - if (object.vectorsCount != null) - if ($util.Long) - (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; - else if (typeof object.vectorsCount === "string") - message.vectorsCount = parseInt(object.vectorsCount, 10); - else if (typeof object.vectorsCount === "number") - message.vectorsCount = object.vectorsCount; - else if (typeof object.vectorsCount === "object") - message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); - if (object.shardsCount != null) - message.shardsCount = object.shardsCount | 0; + var message = new $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IndexStats} message IndexStats + * @param {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexStats.toObject = function toObject(message, options) { + DeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.vectorsCount = options.longs === String ? "0" : 0; - object.shardsCount = 0; + object.genericMetadata = null; + object.deployedIndexId = ""; } - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (typeof message.vectorsCount === "number") - object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; - else - object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - object.shardsCount = message.shardsCount; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this IndexStats to JSON. + * Converts this DeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - IndexStats.prototype.toJSON = function toJSON() { + DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexStats + * Gets the default type url for DeployIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexStats + * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexStats"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexOperationMetadata"; }; - return IndexStats; + return DeployIndexOperationMetadata; })(); - v1.IndexEndpoint = (function() { + v1.UndeployIndexRequest = (function() { /** - * Properties of an IndexEndpoint. + * Properties of an UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IIndexEndpoint - * @property {string|null} [name] IndexEndpoint name - * @property {string|null} [displayName] IndexEndpoint displayName - * @property {string|null} [description] IndexEndpoint description - * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes - * @property {string|null} [etag] IndexEndpoint etag - * @property {Object.|null} [labels] IndexEndpoint labels - * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime - * @property {string|null} [network] IndexEndpoint network - * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect - * @property {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig - * @property {boolean|null} [publicEndpointEnabled] IndexEndpoint publicEndpointEnabled - * @property {string|null} [publicEndpointDomainName] IndexEndpoint publicEndpointDomainName - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] IndexEndpoint encryptionSpec + * @interface IUndeployIndexRequest + * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint + * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId */ /** - * Constructs a new IndexEndpoint. + * Constructs a new UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexEndpoint. - * @implements IIndexEndpoint + * @classdesc Represents an UndeployIndexRequest. + * @implements IUndeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IIndexEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest=} [properties] Properties to set */ - function IndexEndpoint(properties) { - this.deployedIndexes = []; - this.labels = {}; + function UndeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76995,280 +96005,89 @@ } /** - * IndexEndpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.name = ""; - - /** - * IndexEndpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.displayName = ""; - - /** - * IndexEndpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.description = ""; - - /** - * IndexEndpoint deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; - - /** - * IndexEndpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.etag = ""; - - /** - * IndexEndpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.labels = $util.emptyObject; - - /** - * IndexEndpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.createTime = null; - - /** - * IndexEndpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.updateTime = null; - - /** - * IndexEndpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.network = ""; - - /** - * IndexEndpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.enablePrivateServiceConnect = false; - - /** - * IndexEndpoint privateServiceConnectConfig. - * @member {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.privateServiceConnectConfig = null; - - /** - * IndexEndpoint publicEndpointEnabled. - * @member {boolean} publicEndpointEnabled - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.publicEndpointEnabled = false; - - /** - * IndexEndpoint publicEndpointDomainName. - * @member {string} publicEndpointDomainName - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * UndeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @instance */ - IndexEndpoint.prototype.publicEndpointDomainName = ""; + UndeployIndexRequest.prototype.indexEndpoint = ""; /** - * IndexEndpoint encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * UndeployIndexRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @instance */ - IndexEndpoint.prototype.encryptionSpec = null; + UndeployIndexRequest.prototype.deployedIndexId = ""; /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.IndexEndpoint - * @static - * @param {google.cloud.aiplatform.v1.IIndexEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint instance + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest instance */ - IndexEndpoint.create = function create(properties) { - return new IndexEndpoint(properties); + UndeployIndexRequest.create = function create(properties) { + return new UndeployIndexRequest(properties); }; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encode = function encode(message, writer) { + UndeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); - if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) - $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.publicEndpointEnabled != null && Object.hasOwnProperty.call(message, "publicEndpointEnabled")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.publicEndpointEnabled); - if (message.publicEndpointDomainName != null && Object.hasOwnProperty.call(message, "publicEndpointDomainName")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.publicEndpointDomainName); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decode = function decode(reader, length) { + UndeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexEndpoint(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32())); - break; - } - case 5: { - message.etag = reader.string(); - break; - } - case 6: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.network = reader.string(); - break; - } - case 10: { - message.enablePrivateServiceConnect = reader.bool(); - break; - } - case 12: { - message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); - break; - } - case 13: { - message.publicEndpointEnabled = reader.bool(); - break; - } - case 14: { - message.publicEndpointDomainName = reader.string(); - break; - } - case 15: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + message.deployedIndexId = reader.string(); break; } default: @@ -77280,292 +96099,130 @@ }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexEndpoint message. + * Verifies an UndeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexEndpoint.verify = function verify(message) { + UndeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; - if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { - var error = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); - if (error) - return "privateServiceConnectConfig." + error; - } - if (message.publicEndpointEnabled != null && message.hasOwnProperty("publicEndpointEnabled")) - if (typeof message.publicEndpointEnabled !== "boolean") - return "publicEndpointEnabled: boolean expected"; - if (message.publicEndpointDomainName != null && message.hasOwnProperty("publicEndpointDomainName")) - if (!$util.isString(message.publicEndpointDomainName)) - return "publicEndpointDomainName: string expected"; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest */ - IndexEndpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexEndpoint) + UndeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.IndexEndpoint(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.network != null) - message.network = String(object.network); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); - if (object.privateServiceConnectConfig != null) { - if (typeof object.privateServiceConnectConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.privateServiceConnectConfig: object expected"); - message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); - } - if (object.publicEndpointEnabled != null) - message.publicEndpointEnabled = Boolean(object.publicEndpointEnabled); - if (object.publicEndpointDomainName != null) - message.publicEndpointDomainName = String(object.publicEndpointDomainName); - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } + var message = new $root.google.cloud.aiplatform.v1.UndeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IndexEndpoint} message IndexEndpoint + * @param {google.cloud.aiplatform.v1.UndeployIndexRequest} message UndeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexEndpoint.toObject = function toObject(message, options) { + UndeployIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.network = ""; - object.enablePrivateServiceConnect = false; - object.privateServiceConnectConfig = null; - object.publicEndpointEnabled = false; - object.publicEndpointDomainName = ""; - object.encryptionSpec = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; - if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) - object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); - if (message.publicEndpointEnabled != null && message.hasOwnProperty("publicEndpointEnabled")) - object.publicEndpointEnabled = message.publicEndpointEnabled; - if (message.publicEndpointDomainName != null && message.hasOwnProperty("publicEndpointDomainName")) - object.publicEndpointDomainName = message.publicEndpointDomainName; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this IndexEndpoint to JSON. + * Converts this UndeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @instance * @returns {Object.} JSON object */ - IndexEndpoint.prototype.toJSON = function toJSON() { + UndeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexEndpoint + * Gets the default type url for UndeployIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexEndpoint"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexRequest"; }; - return IndexEndpoint; + return UndeployIndexRequest; })(); - v1.DeployedIndex = (function() { + v1.UndeployIndexResponse = (function() { /** - * Properties of a DeployedIndex. + * Properties of an UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeployedIndex - * @property {string|null} [id] DeployedIndex id - * @property {string|null} [index] DeployedIndex index - * @property {string|null} [displayName] DeployedIndex displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime - * @property {google.cloud.aiplatform.v1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints - * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime - * @property {google.cloud.aiplatform.v1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources - * @property {google.cloud.aiplatform.v1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources - * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging - * @property {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig - * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges - * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + * @interface IUndeployIndexResponse */ /** - * Constructs a new DeployedIndex. + * Constructs a new UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeployedIndex. - * @implements IDeployedIndex + * @classdesc Represents an UndeployIndexResponse. + * @implements IUndeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeployedIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse=} [properties] Properties to set */ - function DeployedIndex(properties) { - this.reservedIpRanges = []; + function UndeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77573,232 +96230,251 @@ } /** - * DeployedIndex id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Creates a new UndeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse instance */ - DeployedIndex.prototype.id = ""; + UndeployIndexResponse.create = function create(properties) { + return new UndeployIndexResponse(properties); + }; /** - * DeployedIndex index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.index = ""; + UndeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * DeployedIndex displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.displayName = ""; + UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * DeployedIndex createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.createTime = null; + UndeployIndexResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * DeployedIndex privateEndpoints. - * @member {google.cloud.aiplatform.v1.IIndexPrivateEndpoints|null|undefined} privateEndpoints - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.privateEndpoints = null; + UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * DeployedIndex indexSyncTime. - * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Verifies an UndeployIndexResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.prototype.indexSyncTime = null; + UndeployIndexResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * DeployedIndex automaticResources. - * @member {google.cloud.aiplatform.v1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse */ - DeployedIndex.prototype.automaticResources = null; + UndeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexResponse) + return object; + return new $root.google.cloud.aiplatform.v1.UndeployIndexResponse(); + }; /** - * DeployedIndex dedicatedResources. - * @member {google.cloud.aiplatform.v1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1.UndeployIndexResponse} message UndeployIndexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - DeployedIndex.prototype.dedicatedResources = null; + UndeployIndexResponse.toObject = function toObject() { + return {}; + }; /** - * DeployedIndex enableAccessLogging. - * @member {boolean} enableAccessLogging - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * Converts this UndeployIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse * @instance + * @returns {Object.} JSON object */ - DeployedIndex.prototype.enableAccessLogging = false; + UndeployIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * DeployedIndex deployedIndexAuthConfig. - * @member {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Gets the default type url for UndeployIndexResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - DeployedIndex.prototype.deployedIndexAuthConfig = null; + UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexResponse"; + }; + + return UndeployIndexResponse; + })(); + + v1.UndeployIndexOperationMetadata = (function() { /** - * DeployedIndex reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1.DeployedIndex - * @instance + * Properties of an UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IUndeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata */ - DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; /** - * DeployedIndex deploymentGroup. - * @member {string} deploymentGroup - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * Constructs a new UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an UndeployIndexOperationMetadata. + * @implements IUndeployIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata=} [properties] Properties to set + */ + function UndeployIndexOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UndeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @instance */ - DeployedIndex.prototype.deploymentGroup = ""; + UndeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex instance + * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance */ - DeployedIndex.create = function create(properties) { - return new DeployedIndex(properties); + UndeployIndexOperationMetadata.create = function create(properties) { + return new UndeployIndexOperationMetadata(properties); }; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndex.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encode = function encode(message, writer) { + UndeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) - $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) - $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); - if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) - $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); - if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndex.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decode = function decode(reader, length) { + UndeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); - break; - } - case 2: { - message.index = reader.string(); - break; - } - case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.decode(reader, reader.uint32()); - break; - } - case 6: { - message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.decode(reader, reader.uint32()); - break; - } - case 16: { - message.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.decode(reader, reader.uint32()); - break; - } - case 8: { - message.enableAccessLogging = reader.bool(); - break; - } - case 9: { - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - } - case 11: { - message.deploymentGroup = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -77810,254 +96486,128 @@ }; /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndex message. + * Verifies an UndeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.verify = function verify(message) { + UndeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { - var error = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify(message.privateEndpoints); - if (error) - return "privateEndpoints." + error; - } - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); - if (error) - return "indexSyncTime." + error; - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - var error = $root.google.cloud.aiplatform.v1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - var error = $root.google.cloud.aiplatform.v1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - if (typeof message.enableAccessLogging !== "boolean") - return "enableAccessLogging: boolean expected"; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "deployedIndexAuthConfig." + error; - } - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; + return "genericMetadata." + error; } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - if (!$util.isString(message.deploymentGroup)) - return "deploymentGroup: string expected"; return null; }; /** - * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata */ - DeployedIndex.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndex) + UndeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DeployedIndex(); - if (object.id != null) - message.id = String(object.id); - if (object.index != null) - message.index = String(object.index); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.privateEndpoints != null) { - if (typeof object.privateEndpoints !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.privateEndpoints: object expected"); - message.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); - } - if (object.indexSyncTime != null) { - if (typeof object.indexSyncTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.indexSyncTime: object expected"); - message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.enableAccessLogging != null) - message.enableAccessLogging = Boolean(object.enableAccessLogging); - if (object.deployedIndexAuthConfig != null) { - if (typeof object.deployedIndexAuthConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.deployedIndexAuthConfig: object expected"); - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); - } - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndex.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + var message = new $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.deploymentGroup != null) - message.deploymentGroup = String(object.deploymentGroup); return message; }; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DeployedIndex} message DeployedIndex + * @param {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndex.toObject = function toObject(message, options) { + UndeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; - if (options.defaults) { - object.id = ""; - object.index = ""; - object.displayName = ""; - object.createTime = null; - object.privateEndpoints = null; - object.indexSyncTime = null; - object.automaticResources = null; - object.enableAccessLogging = false; - object.deployedIndexAuthConfig = null; - object.deploymentGroup = ""; - object.dedicatedResources = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) - object.privateEndpoints = $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) - object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) - object.automaticResources = $root.google.cloud.aiplatform.v1.AutomaticResources.toObject(message.automaticResources, options); - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - object.enableAccessLogging = message.enableAccessLogging; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) - object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - object.deploymentGroup = message.deploymentGroup; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) - object.dedicatedResources = $root.google.cloud.aiplatform.v1.DedicatedResources.toObject(message.dedicatedResources, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this DeployedIndex to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - DeployedIndex.prototype.toJSON = function toJSON() { + UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndex + * Gets the default type url for UndeployIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployedIndex + * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndex"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexOperationMetadata"; }; - return DeployedIndex; + return UndeployIndexOperationMetadata; })(); - v1.DeployedIndexAuthConfig = (function() { + v1.MutateDeployedIndexRequest = (function() { /** - * Properties of a DeployedIndexAuthConfig. + * Properties of a MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeployedIndexAuthConfig - * @property {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + * @interface IMutateDeployedIndexRequest + * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex */ /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeployedIndexAuthConfig. - * @implements IDeployedIndexAuthConfig + * @classdesc Represents a MutateDeployedIndexRequest. + * @implements IMutateDeployedIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest=} [properties] Properties to set */ - function DeployedIndexAuthConfig(properties) { + function MutateDeployedIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78065,75 +96615,89 @@ } /** - * DeployedIndexAuthConfig authProvider. - * @member {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * MutateDeployedIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @instance */ - DeployedIndexAuthConfig.prototype.authProvider = null; + MutateDeployedIndexRequest.prototype.indexEndpoint = ""; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * MutateDeployedIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @instance + */ + MutateDeployedIndexRequest.prototype.deployedIndex = null; + + /** + * Creates a new MutateDeployedIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance */ - DeployedIndexAuthConfig.create = function create(properties) { - return new DeployedIndexAuthConfig(properties); + MutateDeployedIndexRequest.create = function create(properties) { + return new MutateDeployedIndexRequest(properties); }; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encode = function encode(message, writer) { + MutateDeployedIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) - $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decode = function decode(reader, length) { + MutateDeployedIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + message.indexEndpoint = reader.string(); + break; + } + case 2: { + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -78145,387 +96709,136 @@ }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies a MutateDeployedIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndexAuthConfig.verify = function verify(message) { + MutateDeployedIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); if (error) - return "authProvider." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest */ - DeployedIndexAuthConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig) + MutateDeployedIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig(); - if (object.authProvider != null) { - if (typeof object.authProvider !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.authProvider: object expected"); - message.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexAuthConfig.toObject = function toObject(message, options) { + MutateDeployedIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.authProvider = null; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) - object.authProvider = $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this MutateDeployedIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @instance * @returns {Object.} JSON object */ - DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndexAuthConfig + * Gets the default type url for MutateDeployedIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndexAuthConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexRequest"; }; - DeployedIndexAuthConfig.AuthProvider = (function() { - - /** - * Properties of an AuthProvider. - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig - * @interface IAuthProvider - * @property {Array.|null} [audiences] AuthProvider audiences - * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers - */ - - /** - * Constructs a new AuthProvider. - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig - * @classdesc Represents an AuthProvider. - * @implements IAuthProvider - * @constructor - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - */ - function AuthProvider(properties) { - this.audiences = []; - this.allowedIssuers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuthProvider audiences. - * @member {Array.} audiences - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.audiences = $util.emptyArray; - - /** - * AuthProvider allowedIssuers. - * @member {Array.} allowedIssuers - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.allowedIssuers = $util.emptyArray; - - /** - * Creates a new AuthProvider instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance - */ - AuthProvider.create = function create(properties) { - return new AuthProvider(properties); - }; - - /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audiences != null && message.audiences.length) - for (var i = 0; i < message.audiences.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); - if (message.allowedIssuers != null && message.allowedIssuers.length) - for (var i = 0; i < message.allowedIssuers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); - return writer; - }; - - /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AuthProvider message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push(reader.string()); - break; - } - case 2: { - if (!(message.allowedIssuers && message.allowedIssuers.length)) - message.allowedIssuers = []; - message.allowedIssuers.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AuthProvider message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthProvider.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audiences != null && message.hasOwnProperty("audiences")) { - if (!Array.isArray(message.audiences)) - return "audiences: array expected"; - for (var i = 0; i < message.audiences.length; ++i) - if (!$util.isString(message.audiences[i])) - return "audiences: string[] expected"; - } - if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { - if (!Array.isArray(message.allowedIssuers)) - return "allowedIssuers: array expected"; - for (var i = 0; i < message.allowedIssuers.length; ++i) - if (!$util.isString(message.allowedIssuers[i])) - return "allowedIssuers: string[] expected"; - } - return null; - }; - - /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - */ - AuthProvider.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider(); - if (object.audiences) { - if (!Array.isArray(object.audiences)) - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); - message.audiences = []; - for (var i = 0; i < object.audiences.length; ++i) - message.audiences[i] = String(object.audiences[i]); - } - if (object.allowedIssuers) { - if (!Array.isArray(object.allowedIssuers)) - throw TypeError(".google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); - message.allowedIssuers = []; - for (var i = 0; i < object.allowedIssuers.length; ++i) - message.allowedIssuers[i] = String(object.allowedIssuers[i]); - } - return message; - }; - - /** - * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuthProvider.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.audiences = []; - object.allowedIssuers = []; - } - if (message.audiences && message.audiences.length) { - object.audiences = []; - for (var j = 0; j < message.audiences.length; ++j) - object.audiences[j] = message.audiences[j]; - } - if (message.allowedIssuers && message.allowedIssuers.length) { - object.allowedIssuers = []; - for (var j = 0; j < message.allowedIssuers.length; ++j) - object.allowedIssuers[j] = message.allowedIssuers[j]; - } - return object; - }; - - /** - * Converts this AuthProvider to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @instance - * @returns {Object.} JSON object - */ - AuthProvider.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AuthProvider - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider"; - }; - - return AuthProvider; - })(); - - return DeployedIndexAuthConfig; + return MutateDeployedIndexRequest; })(); - v1.IndexPrivateEndpoints = (function() { + v1.MutateDeployedIndexResponse = (function() { /** - * Properties of an IndexPrivateEndpoints. + * Properties of a MutateDeployedIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IIndexPrivateEndpoints - * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress - * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * @interface IMutateDeployedIndexResponse + * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex */ /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new MutateDeployedIndexResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexPrivateEndpoints. - * @implements IIndexPrivateEndpoints + * @classdesc Represents a MutateDeployedIndexResponse. + * @implements IMutateDeployedIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse=} [properties] Properties to set */ - function IndexPrivateEndpoints(properties) { + function MutateDeployedIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78533,89 +96846,75 @@ } /** - * IndexPrivateEndpoints matchGrpcAddress. - * @member {string} matchGrpcAddress - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints - * @instance - */ - IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; - - /** - * IndexPrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * MutateDeployedIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @instance */ - IndexPrivateEndpoints.prototype.serviceAttachment = ""; + MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance */ - IndexPrivateEndpoints.create = function create(properties) { - return new IndexPrivateEndpoints(properties); + MutateDeployedIndexResponse.create = function create(properties) { + return new MutateDeployedIndexResponse(properties); }; /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encode = function encode(message, writer) { + MutateDeployedIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); - if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decode = function decode(reader, length) { + MutateDeployedIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.matchGrpcAddress = reader.string(); - break; - } - case 2: { - message.serviceAttachment = reader.string(); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -78627,133 +96926,128 @@ }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexPrivateEndpoints message. + * Verifies a MutateDeployedIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexPrivateEndpoints.verify = function verify(message) { + MutateDeployedIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - if (!$util.isString(message.matchGrpcAddress)) - return "matchGrpcAddress: string expected"; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - if (!$util.isString(message.serviceAttachment)) - return "serviceAttachment: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } return null; }; /** - * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse */ - IndexPrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints) + MutateDeployedIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.IndexPrivateEndpoints(); - if (object.matchGrpcAddress != null) - message.matchGrpcAddress = String(object.matchGrpcAddress); - if (object.serviceAttachment != null) - message.serviceAttachment = String(object.serviceAttachment); + var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); + } return message; }; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexPrivateEndpoints.toObject = function toObject(message, options) { + MutateDeployedIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.matchGrpcAddress = ""; - object.serviceAttachment = ""; - } - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - object.matchGrpcAddress = message.matchGrpcAddress; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - object.serviceAttachment = message.serviceAttachment; + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @instance * @returns {Object.} JSON object */ - IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexPrivateEndpoints + * Gets the default type url for MutateDeployedIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.IndexPrivateEndpoints"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexResponse"; }; - return IndexPrivateEndpoints; + return MutateDeployedIndexResponse; })(); - v1.PrivateServiceConnectConfig = (function() { + v1.MutateDeployedIndexOperationMetadata = (function() { /** - * Properties of a PrivateServiceConnectConfig. + * Properties of a MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IPrivateServiceConnectConfig - * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect - * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + * @interface IMutateDeployedIndexOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId */ /** - * Constructs a new PrivateServiceConnectConfig. + * Constructs a new MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PrivateServiceConnectConfig. - * @implements IPrivateServiceConnectConfig + * @classdesc Represents a MutateDeployedIndexOperationMetadata. + * @implements IMutateDeployedIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set */ - function PrivateServiceConnectConfig(properties) { - this.projectAllowlist = []; + function MutateDeployedIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78761,92 +97055,89 @@ } /** - * PrivateServiceConnectConfig enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * MutateDeployedIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @instance */ - PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; /** - * PrivateServiceConnectConfig projectAllowlist. - * @member {Array.} projectAllowlist - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * MutateDeployedIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @instance */ - PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance */ - PrivateServiceConnectConfig.create = function create(properties) { - return new PrivateServiceConnectConfig(properties); + MutateDeployedIndexOperationMetadata.create = function create(properties) { + return new MutateDeployedIndexOperationMetadata(properties); }; /** - * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateServiceConnectConfig.encode = function encode(message, writer) { + MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); - if (message.projectAllowlist != null && message.projectAllowlist.length) - for (var i = 0; i < message.projectAllowlist.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateServiceConnectConfig.decode = function decode(reader, length) { + MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enablePrivateServiceConnect = reader.bool(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.projectAllowlist && message.projectAllowlist.length)) - message.projectAllowlist = []; - message.projectAllowlist.push(reader.string()); + message.deployedIndexId = reader.string(); break; } default: @@ -78858,443 +97149,403 @@ }; /** - * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateServiceConnectConfig message. + * Verifies a MutateDeployedIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateServiceConnectConfig.verify = function verify(message) { + MutateDeployedIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; - if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { - if (!Array.isArray(message.projectAllowlist)) - return "projectAllowlist: array expected"; - for (var i = 0; i < message.projectAllowlist.length; ++i) - if (!$util.isString(message.projectAllowlist[i])) - return "projectAllowlist: string[] expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata */ - PrivateServiceConnectConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig) + MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); - if (object.projectAllowlist) { - if (!Array.isArray(object.projectAllowlist)) - throw TypeError(".google.cloud.aiplatform.v1.PrivateServiceConnectConfig.projectAllowlist: array expected"); - message.projectAllowlist = []; - for (var i = 0; i < object.projectAllowlist.length; ++i) - message.projectAllowlist[i] = String(object.projectAllowlist[i]); + var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateServiceConnectConfig.toObject = function toObject(message, options) { + MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.projectAllowlist = []; - if (options.defaults) - object.enablePrivateServiceConnect = false; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; - if (message.projectAllowlist && message.projectAllowlist.length) { - object.projectAllowlist = []; - for (var j = 0; j < message.projectAllowlist.length; ++j) - object.projectAllowlist[j] = message.projectAllowlist[j]; + if (options.defaults) { + object.genericMetadata = null; + object.deployedIndexId = ""; } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this PrivateServiceConnectConfig to JSON. + * Converts this MutateDeployedIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PrivateServiceConnectConfig + * Gets the default type url for MutateDeployedIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PrivateServiceConnectConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata"; }; - return PrivateServiceConnectConfig; + return MutateDeployedIndexOperationMetadata; })(); - v1.IndexEndpointService = (function() { + v1.IndexService = (function() { /** - * Constructs a new IndexEndpointService service. + * Constructs a new IndexService service. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexEndpointService + * @classdesc Represents an IndexService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { + function IndexService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; /** - * Creates new IndexEndpointService service using the specified rpc implementation. + * Creates new IndexService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * @memberof google.cloud.aiplatform.v1.IndexService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. + * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. */ - IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|createIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef CreateIndexEndpointCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|createIndex}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef CreateIndexCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { - return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndexEndpoint" }); + Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { + return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndex" }); /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|getIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef GetIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.IndexEndpoint} [response] IndexEndpoint - */ - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { - return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1.IndexEndpoint, request, callback); - }, "name", { value: "GetIndexEndpoint" }); - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|listIndexEndpoints}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef ListIndexEndpointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|getIndex}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef GetIndexCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1.Index} [response] Index */ /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1.IGetIndexRequest} request GetIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { - return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse, request, callback); - }, "name", { value: "ListIndexEndpoints" }); + Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { + return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1.GetIndexRequest, $root.google.cloud.aiplatform.v1.Index, request, callback); + }, "name", { value: "GetIndex" }); /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IGetIndexRequest} request GetIndexRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|updateIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef UpdateIndexEndpointCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|listIndexes}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef ListIndexesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.IndexEndpoint} [response] IndexEndpoint + * @param {google.cloud.aiplatform.v1.ListIndexesResponse} [response] ListIndexesResponse */ /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @param {google.cloud.aiplatform.v1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { - return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1.IndexEndpoint, request, callback); - }, "name", { value: "UpdateIndexEndpoint" }); + Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { + return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1.ListIndexesRequest, $root.google.cloud.aiplatform.v1.ListIndexesResponse, request, callback); + }, "name", { value: "ListIndexes" }); /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|deleteIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef DeleteIndexEndpointCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|updateIndex}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef UpdateIndexCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { - return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndexEndpoint" }); + Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { + return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateIndex" }); /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|deployIndex}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef DeployIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|deleteIndex}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef DeleteIndexCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { - return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployIndex" }); + Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { + return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndex" }); /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|undeployIndex}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef UndeployIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|upsertDatapoints}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef UpsertDatapointsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse */ /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { - return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UndeployIndex" }); + Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { + return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse, request, callback); + }, "name", { value: "UpsertDatapoints" }); /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexEndpointService|mutateDeployedIndex}. - * @memberof google.cloud.aiplatform.v1.IndexEndpointService - * @typedef MutateDeployedIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|removeDatapoints}. + * @memberof google.cloud.aiplatform.v1.IndexService + * @typedef RemoveDatapointsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse */ /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { - return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "MutateDeployedIndex" }); + Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { + return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse, request, callback); + }, "name", { value: "RemoveDatapoints" }); /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1.IndexEndpointService + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1.IndexService * @instance - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return IndexEndpointService; + return IndexService; })(); - v1.CreateIndexEndpointRequest = (function() { + v1.CreateIndexRequest = (function() { /** - * Properties of a CreateIndexEndpointRequest. + * Properties of a CreateIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateIndexEndpointRequest - * @property {string|null} [parent] CreateIndexEndpointRequest parent - * @property {google.cloud.aiplatform.v1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + * @interface ICreateIndexRequest + * @property {string|null} [parent] CreateIndexRequest parent + * @property {google.cloud.aiplatform.v1.IIndex|null} [index] CreateIndexRequest index */ /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new CreateIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateIndexEndpointRequest. - * @implements ICreateIndexEndpointRequest + * @classdesc Represents a CreateIndexRequest. + * @implements ICreateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest=} [properties] Properties to set */ - function CreateIndexEndpointRequest(properties) { + function CreateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79302,80 +97553,80 @@ } /** - * CreateIndexEndpointRequest parent. + * CreateIndexRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @instance */ - CreateIndexEndpointRequest.prototype.parent = ""; + CreateIndexRequest.prototype.parent = ""; /** - * CreateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * CreateIndexRequest index. + * @member {google.cloud.aiplatform.v1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @instance */ - CreateIndexEndpointRequest.prototype.indexEndpoint = null; + CreateIndexRequest.prototype.index = null; /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest instance */ - CreateIndexEndpointRequest.create = function create(properties) { - return new CreateIndexEndpointRequest(properties); + CreateIndexRequest.create = function create(properties) { + return new CreateIndexRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encode = function encode(message, writer) { + CreateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a CreateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decode = function decode(reader, length) { + CreateIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -79384,7 +97635,7 @@ break; } case 2: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32()); + message.index = $root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32()); break; } default: @@ -79396,136 +97647,137 @@ }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointRequest message. + * Verifies a CreateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointRequest.verify = function verify(message) { + CreateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoint); + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1.Index.verify(message.index); if (error) - return "indexEndpoint." + error; + return "index." + error; } return null; }; /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest */ - CreateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest) + CreateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateIndexRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoint); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1.Index.fromObject(object.index); } return message; }; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1.CreateIndexRequest} message CreateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointRequest.toObject = function toObject(message, options) { + CreateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.indexEndpoint = null; + object.index = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1.Index.toObject(message.index, options); return object; }; /** - * Converts this CreateIndexEndpointRequest to JSON. + * Converts this CreateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + CreateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointRequest + * Gets the default type url for CreateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.CreateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexRequest"; }; - return CreateIndexEndpointRequest; + return CreateIndexRequest; })(); - v1.CreateIndexEndpointOperationMetadata = (function() { + v1.CreateIndexOperationMetadata = (function() { /** - * Properties of a CreateIndexEndpointOperationMetadata. + * Properties of a CreateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateIndexEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + * @interface ICreateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new CreateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateIndexEndpointOperationMetadata. - * @implements ICreateIndexEndpointOperationMetadata + * @classdesc Represents a CreateIndexOperationMetadata. + * @implements ICreateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata=} [properties] Properties to set */ - function CreateIndexEndpointOperationMetadata(properties) { + function CreateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79533,70 +97785,80 @@ } /** - * CreateIndexEndpointOperationMetadata genericMetadata. + * CreateIndexOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @instance */ - CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; + CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata + * @instance + */ + CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + + /** + * Creates a new CreateIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance */ - CreateIndexEndpointOperationMetadata.create = function create(properties) { - return new CreateIndexEndpointOperationMetadata(properties); + CreateIndexOperationMetadata.create = function create(properties) { + return new CreateIndexOperationMetadata(properties); }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + CreateIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { + CreateIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -79604,6 +97866,10 @@ message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } + case 2: { + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -79613,30 +97879,30 @@ }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointOperationMetadata message. + * Verifies a CreateIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointOperationMetadata.verify = function verify(message) { + CreateIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -79644,96 +97910,110 @@ if (error) return "genericMetadata." + error; } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } return null; }; /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata */ - CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata) + CreateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.CreateIndexOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } return message; }; /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + CreateIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); return object; }; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. + * Converts this CreateIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointOperationMetadata + * Gets the default type url for CreateIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexEndpointOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexOperationMetadata"; }; - return CreateIndexEndpointOperationMetadata; + return CreateIndexOperationMetadata; })(); - v1.GetIndexEndpointRequest = (function() { + v1.GetIndexRequest = (function() { /** - * Properties of a GetIndexEndpointRequest. + * Properties of a GetIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetIndexEndpointRequest - * @property {string|null} [name] GetIndexEndpointRequest name + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name */ /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new GetIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetIndexEndpointRequest. - * @implements IGetIndexEndpointRequest + * @classdesc Represents a GetIndexRequest. + * @implements IGetIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetIndexRequest=} [properties] Properties to set */ - function GetIndexEndpointRequest(properties) { + function GetIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79741,35 +98021,35 @@ } /** - * GetIndexEndpointRequest name. + * GetIndexRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @instance */ - GetIndexEndpointRequest.prototype.name = ""; + GetIndexRequest.prototype.name = ""; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1.IGetIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest instance */ - GetIndexEndpointRequest.create = function create(properties) { - return new GetIndexEndpointRequest(properties); + GetIndexRequest.create = function create(properties) { + return new GetIndexRequest(properties); }; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encode = function encode(message, writer) { + GetIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -79778,33 +98058,33 @@ }; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a GetIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decode = function decode(reader, length) { + GetIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -79821,30 +98101,30 @@ }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a GetIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexEndpointRequest.verify = function verify(message) { + GetIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -79854,32 +98134,32 @@ }; /** - * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest */ - GetIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest) + GetIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetIndexEndpointRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetIndexRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {google.cloud.aiplatform.v1.GetIndexRequest} message GetIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexEndpointRequest.toObject = function toObject(message, options) { + GetIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -79891,56 +98171,56 @@ }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this GetIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @instance * @returns {Object.} JSON object */ - GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + GetIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIndexEndpointRequest + * Gets the default type url for GetIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.GetIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetIndexRequest"; }; - return GetIndexEndpointRequest; + return GetIndexRequest; })(); - v1.ListIndexEndpointsRequest = (function() { + v1.ListIndexesRequest = (function() { /** - * Properties of a ListIndexEndpointsRequest. + * Properties of a ListIndexesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListIndexEndpointsRequest - * @property {string|null} [parent] ListIndexEndpointsRequest parent - * @property {string|null} [filter] ListIndexEndpointsRequest filter - * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize - * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + * @interface IListIndexesRequest + * @property {string|null} [parent] ListIndexesRequest parent + * @property {string|null} [filter] ListIndexesRequest filter + * @property {number|null} [pageSize] ListIndexesRequest pageSize + * @property {string|null} [pageToken] ListIndexesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask */ /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new ListIndexesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListIndexEndpointsRequest. - * @implements IListIndexEndpointsRequest + * @classdesc Represents a ListIndexesRequest. + * @implements IListIndexesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListIndexesRequest=} [properties] Properties to set */ - function ListIndexEndpointsRequest(properties) { + function ListIndexesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79948,67 +98228,67 @@ } /** - * ListIndexEndpointsRequest parent. + * ListIndexesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance */ - ListIndexEndpointsRequest.prototype.parent = ""; + ListIndexesRequest.prototype.parent = ""; /** - * ListIndexEndpointsRequest filter. + * ListIndexesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance */ - ListIndexEndpointsRequest.prototype.filter = ""; + ListIndexesRequest.prototype.filter = ""; /** - * ListIndexEndpointsRequest pageSize. + * ListIndexesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageSize = 0; + ListIndexesRequest.prototype.pageSize = 0; /** - * ListIndexEndpointsRequest pageToken. + * ListIndexesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageToken = ""; + ListIndexesRequest.prototype.pageToken = ""; /** - * ListIndexEndpointsRequest readMask. + * ListIndexesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance */ - ListIndexEndpointsRequest.prototype.readMask = null; + ListIndexesRequest.prototype.readMask = null; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new ListIndexesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + * @param {google.cloud.aiplatform.v1.IListIndexesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest instance */ - ListIndexEndpointsRequest.create = function create(properties) { - return new ListIndexEndpointsRequest(properties); + ListIndexesRequest.create = function create(properties) { + return new ListIndexesRequest(properties); }; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encode = function encode(message, writer) { + ListIndexesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -80025,33 +98305,33 @@ }; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decode = function decode(reader, length) { + ListIndexesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -80084,30 +98364,30 @@ }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies a ListIndexesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsRequest.verify = function verify(message) { + ListIndexesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -80131,17 +98411,17 @@ }; /** - * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest */ - ListIndexEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest) + ListIndexesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListIndexesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -80152,22 +98432,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListIndexesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {google.cloud.aiplatform.v1.ListIndexesRequest} message ListIndexesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsRequest.toObject = function toObject(message, options) { + ListIndexesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -80192,54 +98472,54 @@ }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this ListIndexesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + ListIndexesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexEndpointsRequest + * Gets the default type url for ListIndexesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexesRequest"; }; - return ListIndexEndpointsRequest; + return ListIndexesRequest; })(); - v1.ListIndexEndpointsResponse = (function() { + v1.ListIndexesResponse = (function() { /** - * Properties of a ListIndexEndpointsResponse. + * Properties of a ListIndexesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListIndexEndpointsResponse - * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints - * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + * @interface IListIndexesResponse + * @property {Array.|null} [indexes] ListIndexesResponse indexes + * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken */ /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new ListIndexesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListIndexEndpointsResponse. - * @implements IListIndexEndpointsResponse + * @classdesc Represents a ListIndexesResponse. + * @implements IListIndexesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListIndexesResponse=} [properties] Properties to set */ - function ListIndexEndpointsResponse(properties) { - this.indexEndpoints = []; + function ListIndexesResponse(properties) { + this.indexes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80247,558 +98527,92 @@ } /** - * ListIndexEndpointsResponse indexEndpoints. - * @member {Array.} indexEndpoints - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * ListIndexesResponse indexes. + * @member {Array.} indexes + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @instance */ - ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; + ListIndexesResponse.prototype.indexes = $util.emptyArray; /** - * ListIndexEndpointsResponse nextPageToken. + * ListIndexesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @instance */ - ListIndexEndpointsResponse.prototype.nextPageToken = ""; + ListIndexesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new ListIndexesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + * @param {google.cloud.aiplatform.v1.IListIndexesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse instance */ - ListIndexEndpointsResponse.create = function create(properties) { - return new ListIndexEndpointsResponse(properties); + ListIndexesResponse.create = function create(properties) { + return new ListIndexesResponse(properties); }; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encode = function encode(message, writer) { + ListIndexesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoints != null && message.indexEndpoints.length) - for (var i = 0; i < message.indexEndpoints.length; ++i) - $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.indexes != null && message.indexes.length) + for (var i = 0; i < message.indexes.length; ++i) + $root.google.cloud.aiplatform.v1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexEndpointsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListIndexEndpointsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.indexEndpoints && message.indexEndpoints.length)) - message.indexEndpoints = []; - message.indexEndpoints.push($root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListIndexEndpointsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListIndexEndpointsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { - if (!Array.isArray(message.indexEndpoints)) - return "indexEndpoints: array expected"; - for (var i = 0; i < message.indexEndpoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoints[i]); - if (error) - return "indexEndpoints." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} ListIndexEndpointsResponse - */ - ListIndexEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListIndexEndpointsResponse(); - if (object.indexEndpoints) { - if (!Array.isArray(object.indexEndpoints)) - throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsResponse.indexEndpoints: array expected"); - message.indexEndpoints = []; - for (var i = 0; i < object.indexEndpoints.length; ++i) { - if (typeof object.indexEndpoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListIndexEndpointsResponse.indexEndpoints: object expected"); - message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoints[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {google.cloud.aiplatform.v1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListIndexEndpointsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.indexEndpoints = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexEndpoints && message.indexEndpoints.length) { - object.indexEndpoints = []; - for (var j = 0; j < message.indexEndpoints.length; ++j) - object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoints[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListIndexEndpointsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @instance - * @returns {Object.} JSON object - */ - ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListIndexEndpointsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListIndexEndpointsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexEndpointsResponse"; - }; - - return ListIndexEndpointsResponse; - })(); - - v1.UpdateIndexEndpointRequest = (function() { - - /** - * Properties of an UpdateIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateIndexEndpointRequest - * @property {google.cloud.aiplatform.v1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask - */ - - /** - * Constructs a new UpdateIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateIndexEndpointRequest. - * @implements IUpdateIndexEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest=} [properties] Properties to set - */ - function UpdateIndexEndpointRequest(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]]; - } - - /** - * UpdateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @instance - */ - UpdateIndexEndpointRequest.prototype.indexEndpoint = null; - - /** - * UpdateIndexEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @instance - */ - UpdateIndexEndpointRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance - */ - UpdateIndexEndpointRequest.create = function create(properties) { - return new UpdateIndexEndpointRequest(properties); - }; - - /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateIndexEndpointRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateIndexEndpointRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateIndexEndpointRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateIndexEndpointRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; - - /** - * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest - */ - UpdateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest(); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.fromObject(object.indexEndpoint); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexEndpointRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; - - /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateIndexEndpointRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = null; - object.updateMask = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1.IndexEndpoint.toObject(message.indexEndpoint, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; - - /** - * Converts this UpdateIndexEndpointRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpdateIndexEndpointRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateIndexEndpointRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexEndpointRequest"; - }; - - return UpdateIndexEndpointRequest; - })(); - - v1.DeleteIndexEndpointRequest = (function() { - - /** - * Properties of a DeleteIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteIndexEndpointRequest - * @property {string|null} [name] DeleteIndexEndpointRequest name - */ - - /** - * Constructs a new DeleteIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteIndexEndpointRequest. - * @implements IDeleteIndexEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest=} [properties] Properties to set - */ - function DeleteIndexEndpointRequest(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]]; - } - - /** - * DeleteIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest - * @instance - */ - DeleteIndexEndpointRequest.prototype.name = ""; - - /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance - */ - DeleteIndexEndpointRequest.create = function create(properties) { - return new DeleteIndexEndpointRequest(properties); - }; - - /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexEndpointRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteIndexEndpointRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decode = function decode(reader, length) { + ListIndexesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.indexes && message.indexes.length)) + message.indexes = []; + message.indexes.push($root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -80810,123 +98624,149 @@ }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies a ListIndexesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexEndpointRequest.verify = function verify(message) { + ListIndexesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.indexes != null && message.hasOwnProperty("indexes")) { + if (!Array.isArray(message.indexes)) + return "indexes: array expected"; + for (var i = 0; i < message.indexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Index.verify(message.indexes[i]); + if (error) + return "indexes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse */ - DeleteIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest) + ListIndexesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ListIndexesResponse(); + if (object.indexes) { + if (!Array.isArray(object.indexes)) + throw TypeError(".google.cloud.aiplatform.v1.ListIndexesResponse.indexes: array expected"); + message.indexes = []; + for (var i = 0; i < object.indexes.length; ++i) { + if (typeof object.indexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListIndexesResponse.indexes: object expected"); + message.indexes[i] = $root.google.cloud.aiplatform.v1.Index.fromObject(object.indexes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {google.cloud.aiplatform.v1.ListIndexesResponse} message ListIndexesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + ListIndexesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.indexes = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.indexes && message.indexes.length) { + object.indexes = []; + for (var j = 0; j < message.indexes.length; ++j) + object.indexes[j] = $root.google.cloud.aiplatform.v1.Index.toObject(message.indexes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @instance * @returns {Object.} JSON object */ - DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + ListIndexesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexEndpointRequest + * Gets the default type url for ListIndexesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1.ListIndexesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexesResponse"; }; - return DeleteIndexEndpointRequest; + return ListIndexesResponse; })(); - v1.DeployIndexRequest = (function() { + v1.UpdateIndexRequest = (function() { /** - * Properties of a DeployIndexRequest. + * Properties of an UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeployIndexRequest - * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + * @interface IUpdateIndexRequest + * @property {google.cloud.aiplatform.v1.IIndex|null} [index] UpdateIndexRequest index + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask */ /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeployIndexRequest. - * @implements IDeployIndexRequest + * @classdesc Represents an UpdateIndexRequest. + * @implements IUpdateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest=} [properties] Properties to set */ - function DeployIndexRequest(properties) { + function UpdateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80934,89 +98774,89 @@ } /** - * DeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * UpdateIndexRequest index. + * @member {google.cloud.aiplatform.v1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @instance */ - DeployIndexRequest.prototype.indexEndpoint = ""; + UpdateIndexRequest.prototype.index = null; /** - * DeployIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * UpdateIndexRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @instance */ - DeployIndexRequest.prototype.deployedIndex = null; + UpdateIndexRequest.prototype.updateMask = null; /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest instance */ - DeployIndexRequest.create = function create(properties) { - return new DeployIndexRequest(properties); + UpdateIndexRequest.create = function create(properties) { + return new UpdateIndexRequest(properties); }; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encode = function encode(message, writer) { + UpdateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decode = function decode(reader, length) { + UpdateIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + message.index = $root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32()); break; } case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -81028,136 +98868,142 @@ }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpdateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexRequest.verify = function verify(message) { + UpdateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1.Index.verify(message.index); if (error) - return "deployedIndex." + error; + return "index." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest */ - DeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexRequest) + UpdateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1.UpdateIndexRequest(); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1.Index.fromObject(object.index); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1.DeployIndexRequest} message DeployIndexRequest + * @param {google.cloud.aiplatform.v1.UpdateIndexRequest} message UpdateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexRequest.toObject = function toObject(message, options) { + UpdateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; + object.index = null; + object.updateMask = null; } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1.Index.toObject(message.index, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @instance * @returns {Object.} JSON object */ - DeployIndexRequest.prototype.toJSON = function toJSON() { + UpdateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexRequest + * Gets the default type url for UpdateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexRequest"; }; - return DeployIndexRequest; + return UpdateIndexRequest; })(); - v1.DeployIndexResponse = (function() { + v1.UpdateIndexOperationMetadata = (function() { /** - * Properties of a DeployIndexResponse. + * Properties of an UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IDeployIndexResponse - * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + * @interface IUpdateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Constructs a new DeployIndexResponse. + * Constructs a new UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeployIndexResponse. - * @implements IDeployIndexResponse + * @classdesc Represents an UpdateIndexOperationMetadata. + * @implements IUpdateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IDeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata=} [properties] Properties to set */ - function DeployIndexResponse(properties) { + function UpdateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81165,75 +99011,89 @@ } /** - * DeployIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * UpdateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @instance */ - DeployIndexResponse.prototype.deployedIndex = null; + UpdateIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeployIndexResponse instance using the specified properties. + * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @instance + */ + UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + + /** + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse instance + * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance */ - DeployIndexResponse.create = function create(properties) { - return new DeployIndexResponse(properties); + UpdateIndexOperationMetadata.create = function create(properties) { + return new UpdateIndexOperationMetadata(properties); }; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encode = function encode(message, writer) { + UpdateIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decode = function decode(reader, length) { + UpdateIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -81245,128 +99105,141 @@ }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexResponse message. + * Verifies an UpdateIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexResponse.verify = function verify(message) { + UpdateIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "deployedIndex." + error; + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; } return null; }; /** - * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata */ - DeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexResponse) + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DeployIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); } return message; }; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DeployIndexResponse} message DeployIndexResponse + * @param {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexResponse.toObject = function toObject(message, options) { + UpdateIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); return object; }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - DeployIndexResponse.prototype.toJSON = function toJSON() { + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexResponse + * Gets the default type url for UpdateIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexOperationMetadata"; }; - return DeployIndexResponse; + return UpdateIndexOperationMetadata; })(); - v1.DeployIndexOperationMetadata = (function() { + v1.DeleteIndexRequest = (function() { /** - * Properties of a DeployIndexOperationMetadata. + * Properties of a DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name */ /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeployIndexOperationMetadata. - * @implements IDeployIndexOperationMetadata + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest=} [properties] Properties to set */ - function DeployIndexOperationMetadata(properties) { + function DeleteIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81374,89 +99247,75 @@ } /** - * DeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * DeployIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @instance */ - DeployIndexOperationMetadata.prototype.deployedIndexId = ""; + DeleteIndexRequest.prototype.name = ""; /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest instance */ - DeployIndexOperationMetadata.create = function create(properties) { - return new DeployIndexOperationMetadata(properties); + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); }; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encode = function encode(message, writer) { + DeleteIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decode = function decode(reader, length) { + DeleteIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.deployedIndexId = reader.string(); + message.name = reader.string(); break; } default: @@ -81468,137 +99327,124 @@ }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a DeleteIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexOperationMetadata.verify = function verify(message) { + DeleteIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest */ - DeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata) + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1.DeleteIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1.DeleteIndexRequest} message DeleteIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexOperationMetadata.toObject = function toObject(message, options) { + DeleteIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this DeleteIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @instance * @returns {Object.} JSON object */ - DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + DeleteIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexOperationMetadata + * Gets the default type url for DeleteIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeployIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteIndexRequest"; }; - return DeployIndexOperationMetadata; + return DeleteIndexRequest; })(); - v1.UndeployIndexRequest = (function() { + v1.UpsertDatapointsRequest = (function() { /** - * Properties of an UndeployIndexRequest. + * Properties of an UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUndeployIndexRequest - * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint - * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + * @interface IUpsertDatapointsRequest + * @property {string|null} [index] UpsertDatapointsRequest index + * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints */ /** - * Constructs a new UndeployIndexRequest. + * Constructs a new UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UndeployIndexRequest. - * @implements IUndeployIndexRequest + * @classdesc Represents an UpsertDatapointsRequest. + * @implements IUpsertDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set */ - function UndeployIndexRequest(properties) { + function UpsertDatapointsRequest(properties) { + this.datapoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81606,89 +99452,92 @@ } /** - * UndeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * UpsertDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @instance */ - UndeployIndexRequest.prototype.indexEndpoint = ""; + UpsertDatapointsRequest.prototype.index = ""; /** - * UndeployIndexRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * UpsertDatapointsRequest datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @instance */ - UndeployIndexRequest.prototype.deployedIndexId = ""; + UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new UpsertDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest instance + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest instance */ - UndeployIndexRequest.create = function create(properties) { - return new UndeployIndexRequest(properties); + UpsertDatapointsRequest.create = function create(properties) { + return new UpsertDatapointsRequest(properties); }; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encode = function encode(message, writer) { + UpsertDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapoints != null && message.datapoints.length) + for (var i = 0; i < message.datapoints.length; ++i) + $root.google.cloud.aiplatform.v1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decode = function decode(reader, length) { + UpsertDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + message.index = reader.string(); break; } case 2: { - message.deployedIndexId = reader.string(); + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1.IndexDatapoint.decode(reader, reader.uint32())); break; } default: @@ -81700,130 +99549,147 @@ }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexRequest message. + * Verifies an UpsertDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexRequest.verify = function verify(message) { + UpsertDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapoints != null && message.hasOwnProperty("datapoints")) { + if (!Array.isArray(message.datapoints)) + return "datapoints: array expected"; + for (var i = 0; i < message.datapoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.verify(message.datapoints[i]); + if (error) + return "datapoints." + error; + } + } return null; }; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest */ - UndeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexRequest) + UpsertDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UndeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: array expected"); + message.datapoints = []; + for (var i = 0; i < object.datapoints.length; ++i) { + if (typeof object.datapoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.fromObject(object.datapoints[i]); + } + } return message; }; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.UndeployIndexRequest} message UndeployIndexRequest + * @param {google.cloud.aiplatform.v1.UpsertDatapointsRequest} message UpsertDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexRequest.toObject = function toObject(message, options) { + UpsertDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; + if (options.arrays || options.defaults) + object.datapoints = []; + if (options.defaults) + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapoints && message.datapoints.length) { + object.datapoints = []; + for (var j = 0; j < message.datapoints.length; ++j) + object.datapoints[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.toObject(message.datapoints[j], options); } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this UpsertDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexRequest.prototype.toJSON = function toJSON() { + UpsertDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeployIndexRequest + * Gets the default type url for UpsertDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsRequest"; }; - return UndeployIndexRequest; + return UpsertDatapointsRequest; })(); - v1.UndeployIndexResponse = (function() { + v1.UpsertDatapointsResponse = (function() { /** - * Properties of an UndeployIndexResponse. + * Properties of an UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUndeployIndexResponse + * @interface IUpsertDatapointsResponse */ /** - * Constructs a new UndeployIndexResponse. + * Constructs a new UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UndeployIndexResponse. - * @implements IUndeployIndexResponse + * @classdesc Represents an UpsertDatapointsResponse. + * @implements IUpsertDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set */ - function UndeployIndexResponse(properties) { + function UpsertDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81831,60 +99697,60 @@ } /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * Creates a new UpsertDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse instance + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse instance */ - UndeployIndexResponse.create = function create(properties) { - return new UndeployIndexResponse(properties); + UpsertDatapointsResponse.create = function create(properties) { + return new UpsertDatapointsResponse(properties); }; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexResponse.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexResponse.encode = function encode(message, writer) { + UpsertDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexResponse.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexResponse.decode = function decode(reader, length) { + UpsertDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81897,109 +99763,111 @@ }; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexResponse message. + * Verifies an UpsertDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexResponse.verify = function verify(message) { + UpsertDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse */ - UndeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexResponse) + UpsertDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse) return object; - return new $root.google.cloud.aiplatform.v1.UndeployIndexResponse(); + return new $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse(); }; /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.UndeployIndexResponse} message UndeployIndexResponse + * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} message UpsertDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexResponse.toObject = function toObject() { + UpsertDatapointsResponse.toObject = function toObject() { return {}; }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this UpsertDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @instance * @returns {Object.} JSON object */ - UndeployIndexResponse.prototype.toJSON = function toJSON() { + UpsertDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeployIndexResponse + * Gets the default type url for UpsertDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsResponse"; }; - return UndeployIndexResponse; + return UpsertDatapointsResponse; })(); - v1.UndeployIndexOperationMetadata = (function() { + v1.RemoveDatapointsRequest = (function() { /** - * Properties of an UndeployIndexOperationMetadata. + * Properties of a RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUndeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + * @interface IRemoveDatapointsRequest + * @property {string|null} [index] RemoveDatapointsRequest index + * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds */ /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UndeployIndexOperationMetadata. - * @implements IUndeployIndexOperationMetadata + * @classdesc Represents a RemoveDatapointsRequest. + * @implements IRemoveDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set */ - function UndeployIndexOperationMetadata(properties) { + function RemoveDatapointsRequest(properties) { + this.datapointIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82007,75 +99875,92 @@ } /** - * UndeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * RemoveDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @instance */ - UndeployIndexOperationMetadata.prototype.genericMetadata = null; + RemoveDatapointsRequest.prototype.index = ""; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * RemoveDatapointsRequest datapointIds. + * @member {Array.} datapointIds + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest instance */ - UndeployIndexOperationMetadata.create = function create(properties) { - return new UndeployIndexOperationMetadata(properties); + RemoveDatapointsRequest.create = function create(properties) { + return new RemoveDatapointsRequest(properties); }; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexOperationMetadata.encode = function encode(message, writer) { + RemoveDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapointIds != null && message.datapointIds.length) + for (var i = 0; i < message.datapointIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); return writer; }; /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexOperationMetadata.decode = function decode(reader, length) { + RemoveDatapointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapointIds && message.datapointIds.length)) + message.datapointIds = []; + message.datapointIds.push(reader.string()); break; } default: @@ -82087,128 +99972,142 @@ }; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a RemoveDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexOperationMetadata.verify = function verify(message) { + RemoveDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { + if (!Array.isArray(message.datapointIds)) + return "datapointIds: array expected"; + for (var i = 0; i < message.datapointIds.length; ++i) + if (!$util.isString(message.datapointIds[i])) + return "datapointIds: string[] expected"; } return null; }; /** - * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest */ - UndeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata) + RemoveDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UndeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UndeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapointIds) { + if (!Array.isArray(object.datapointIds)) + throw TypeError(".google.cloud.aiplatform.v1.RemoveDatapointsRequest.datapointIds: array expected"); + message.datapointIds = []; + for (var i = 0; i < object.datapointIds.length; ++i) + message.datapointIds[i] = String(object.datapointIds[i]); } return message; }; /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1.RemoveDatapointsRequest} message RemoveDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexOperationMetadata.toObject = function toObject(message, options) { + RemoveDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datapointIds = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapointIds && message.datapointIds.length) { + object.datapointIds = []; + for (var j = 0; j < message.datapointIds.length; ++j) + object.datapointIds[j] = message.datapointIds[j]; + } return object; }; /** - * Converts this UndeployIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + RemoveDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeployIndexOperationMetadata + * Gets the default type url for RemoveDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UndeployIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsRequest"; }; - return UndeployIndexOperationMetadata; + return RemoveDatapointsRequest; })(); - v1.MutateDeployedIndexRequest = (function() { + v1.RemoveDatapointsResponse = (function() { /** - * Properties of a MutateDeployedIndexRequest. + * Properties of a RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IMutateDeployedIndexRequest - * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex + * @interface IRemoveDatapointsResponse */ /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MutateDeployedIndexRequest. - * @implements IMutateDeployedIndexRequest + * @classdesc Represents a RemoveDatapointsResponse. + * @implements IRemoveDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set */ - function MutateDeployedIndexRequest(properties) { + function RemoveDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82216,91 +100115,63 @@ } /** - * MutateDeployedIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.indexEndpoint = ""; - - /** - * MutateDeployedIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.deployedIndex = null; - - /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse instance */ - MutateDeployedIndexRequest.create = function create(properties) { - return new MutateDeployedIndexRequest(properties); + RemoveDatapointsResponse.create = function create(properties) { + return new RemoveDatapointsResponse(properties); }; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexRequest.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexRequest.encode = function encode(message, writer) { + RemoveDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexRequest.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexRequest.decode = function decode(reader, length) { + RemoveDatapointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.indexEndpoint = reader.string(); - break; - } - case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -82310,136 +100181,111 @@ }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MutateDeployedIndexRequest message. + * Verifies a RemoveDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MutateDeployedIndexRequest.verify = function verify(message) { + RemoveDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } return null; }; /** - * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse */ - MutateDeployedIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest) + RemoveDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; + return new $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse(); }; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} message RemoveDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); - return object; + RemoveDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + RemoveDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MutateDeployedIndexRequest + * Gets the default type url for RemoveDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsResponse"; }; - return MutateDeployedIndexRequest; + return RemoveDatapointsResponse; })(); - v1.MutateDeployedIndexResponse = (function() { + v1.NearestNeighborSearchOperationMetadata = (function() { /** - * Properties of a MutateDeployedIndexResponse. + * Properties of a NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IMutateDeployedIndexResponse - * @property {google.cloud.aiplatform.v1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + * @interface INearestNeighborSearchOperationMetadata + * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats + * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount */ /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MutateDeployedIndexResponse. - * @implements IMutateDeployedIndexResponse + * @classdesc Represents a NearestNeighborSearchOperationMetadata. + * @implements INearestNeighborSearchOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set */ - function MutateDeployedIndexResponse(properties) { + function NearestNeighborSearchOperationMetadata(properties) { + this.contentValidationStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82447,75 +100293,92 @@ } /** - * MutateDeployedIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * NearestNeighborSearchOperationMetadata contentValidationStats. + * @member {Array.} contentValidationStats + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @instance */ - MutateDeployedIndexResponse.prototype.deployedIndex = null; + NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * NearestNeighborSearchOperationMetadata dataBytesCount. + * @member {number|Long} dataBytesCount + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @instance + */ + NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance */ - MutateDeployedIndexResponse.create = function create(properties) { - return new MutateDeployedIndexResponse(properties); + NearestNeighborSearchOperationMetadata.create = function create(properties) { + return new NearestNeighborSearchOperationMetadata(properties); }; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexResponse.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexResponse.encode = function encode(message, writer) { + NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.contentValidationStats != null && message.contentValidationStats.length) + for (var i = 0; i < message.contentValidationStats.length; ++i) + $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); return writer; }; /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexResponse.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexResponse.decode = function decode(reader, length) { + NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.decode(reader, reader.uint32()); + if (!(message.contentValidationStats && message.contentValidationStats.length)) + message.contentValidationStats = []; + message.contentValidationStats.push($root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); + break; + } + case 2: { + message.dataBytesCount = reader.int64(); break; } default: @@ -82527,2084 +100390,2047 @@ }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { + NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MutateDeployedIndexResponse message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MutateDeployedIndexResponse.verify = function verify(message) { + NearestNeighborSearchOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; + if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { + if (!Array.isArray(message.contentValidationStats)) + return "contentValidationStats: array expected"; + for (var i = 0; i < message.contentValidationStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); + if (error) + return "contentValidationStats." + error; + } } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) + return "dataBytesCount: integer|Long expected"; return null; }; /** - * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata */ - MutateDeployedIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse) + NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata(); + if (object.contentValidationStats) { + if (!Array.isArray(object.contentValidationStats)) + throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); + message.contentValidationStats = []; + for (var i = 0; i < object.contentValidationStats.length; ++i) { + if (typeof object.contentValidationStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); + message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + } } + if (object.dataBytesCount != null) + if ($util.Long) + (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; + else if (typeof object.dataBytesCount === "string") + message.dataBytesCount = parseInt(object.dataBytesCount, 10); + else if (typeof object.dataBytesCount === "number") + message.dataBytesCount = object.dataBytesCount; + else if (typeof object.dataBytesCount === "object") + message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexResponse.toObject = function toObject(message, options) { + NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.contentValidationStats = []; if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1.DeployedIndex.toObject(message.deployedIndex, options); + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dataBytesCount = options.longs === String ? "0" : 0; + if (message.contentValidationStats && message.contentValidationStats.length) { + object.contentValidationStats = []; + for (var j = 0; j < message.contentValidationStats.length; ++j) + object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); + } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (typeof message.dataBytesCount === "number") + object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; + else + object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; return object; }; /** - * Converts this MutateDeployedIndexResponse to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { + NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MutateDeployedIndexResponse + * Gets the default type url for NearestNeighborSearchOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata"; }; - return MutateDeployedIndexResponse; - })(); + NearestNeighborSearchOperationMetadata.RecordError = (function() { - v1.MutateDeployedIndexOperationMetadata = (function() { + /** + * Properties of a RecordError. + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @interface IRecordError + * @property {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType + * @property {string|null} [errorMessage] RecordError errorMessage + * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri + * @property {string|null} [embeddingId] RecordError embeddingId + * @property {string|null} [rawRecord] RecordError rawRecord + */ - /** - * Properties of a MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IMutateDeployedIndexOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId - */ + /** + * Constructs a new RecordError. + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a RecordError. + * @implements IRecordError + * @constructor + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + */ + function RecordError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MutateDeployedIndexOperationMetadata. - * @implements IMutateDeployedIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - */ - function MutateDeployedIndexOperationMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RecordError errorType. + * @member {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorType = 0; - /** - * MutateDeployedIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @instance - */ - MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; + /** + * RecordError errorMessage. + * @member {string} errorMessage + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorMessage = ""; - /** - * MutateDeployedIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @instance - */ - MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; + /** + * RecordError sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.sourceGcsUri = ""; - /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance - */ - MutateDeployedIndexOperationMetadata.create = function create(properties) { - return new MutateDeployedIndexOperationMetadata(properties); - }; + /** + * RecordError embeddingId. + * @member {string} embeddingId + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.embeddingId = ""; - /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); - return writer; - }; + /** + * RecordError rawRecord. + * @member {string} rawRecord + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.rawRecord = ""; - /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new RecordError instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance + */ + RecordError.create = function create(properties) { + return new RecordError(properties); + }; - /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); + if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); + if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); + return writer; + }; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.errorType = reader.int32(); + break; + } + case 2: { + message.errorMessage = reader.string(); + break; + } + case 3: { + message.sourceGcsUri = reader.string(); + break; + } + case 4: { + message.embeddingId = reader.string(); + break; + } + case 5: { + message.rawRecord = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.deployedIndexId = reader.string(); + } + return message; + }; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordError message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.errorType != null && message.hasOwnProperty("errorType")) + switch (message.errorType) { + default: + return "errorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (!$util.isString(message.errorMessage)) + return "errorMessage: string expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + if (!$util.isString(message.embeddingId)) + return "embeddingId: string expected"; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + if (!$util.isString(message.rawRecord)) + return "rawRecord: string expected"; + return null; + }; + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + */ + RecordError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError) + return object; + var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError(); + switch (object.errorType) { + default: + if (typeof object.errorType === "number") { + message.errorType = object.errorType; + break; + } + break; + case "ERROR_TYPE_UNSPECIFIED": + case 0: + message.errorType = 0; + break; + case "EMPTY_LINE": + case 1: + message.errorType = 1; + break; + case "INVALID_JSON_SYNTAX": + case 2: + message.errorType = 2; + break; + case "INVALID_CSV_SYNTAX": + case 3: + message.errorType = 3; + break; + case "INVALID_AVRO_SYNTAX": + case 4: + message.errorType = 4; + break; + case "INVALID_EMBEDDING_ID": + case 5: + message.errorType = 5; + break; + case "EMBEDDING_SIZE_MISMATCH": + case 6: + message.errorType = 6; + break; + case "NAMESPACE_MISSING": + case 7: + message.errorType = 7; + break; + } + if (object.errorMessage != null) + message.errorMessage = String(object.errorMessage); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.embeddingId != null) + message.embeddingId = String(object.embeddingId); + if (object.rawRecord != null) + message.rawRecord = String(object.rawRecord); + return message; + }; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; + object.errorMessage = ""; + object.sourceGcsUri = ""; + object.embeddingId = ""; + object.rawRecord = ""; + } + if (message.errorType != null && message.hasOwnProperty("errorType")) + object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + object.errorMessage = message.errorMessage; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + object.embeddingId = message.embeddingId; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + object.rawRecord = message.rawRecord; + return object; + }; + + /** + * Converts this RecordError to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + * @returns {Object.} JSON object + */ + RecordError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordError + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError"; + }; + + /** + * RecordErrorType enum. + * @name google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType + * @enum {number} + * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value + * @property {number} EMPTY_LINE=1 EMPTY_LINE value + * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value + * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value + * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value + * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value + * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value + * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value + */ + RecordError.RecordErrorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY_LINE"] = 1; + values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; + values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; + values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; + values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; + values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; + values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + return values; + })(); + + return RecordError; + })(); + + NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { + + /** + * Properties of a ContentValidationStats. + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @interface IContentValidationStats + * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri + * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount + * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount + * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors + */ + + /** + * Constructs a new ContentValidationStats. + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a ContentValidationStats. + * @implements IContentValidationStats + * @constructor + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + */ + function ContentValidationStats(properties) { + this.partialErrors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContentValidationStats sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.sourceGcsUri = ""; + + /** + * ContentValidationStats validRecordCount. + * @member {number|Long} validRecordCount + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ContentValidationStats invalidRecordCount. + * @member {number|Long} invalidRecordCount + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ContentValidationStats partialErrors. + * @member {Array.} partialErrors + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.partialErrors = $util.emptyArray; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance + */ + ContentValidationStats.create = function create(properties) { + return new ContentValidationStats(properties); + }; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); + if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); + if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); + if (message.partialErrors != null && message.partialErrors.length) + for (var i = 0; i < message.partialErrors.length; ++i) + $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sourceGcsUri = reader.string(); + break; + } + case 2: { + message.validRecordCount = reader.int64(); + break; + } + case 3: { + message.invalidRecordCount = reader.int64(); + break; + } + case 4: { + if (!(message.partialErrors && message.partialErrors.length)) + message.partialErrors = []; + message.partialErrors.push($root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a MutateDeployedIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MutateDeployedIndexOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; - return null; - }; + /** + * Verifies a ContentValidationStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContentValidationStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) + return "validRecordCount: integer|Long expected"; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) + return "invalidRecordCount: integer|Long expected"; + if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { + if (!Array.isArray(message.partialErrors)) + return "partialErrors: array expected"; + for (var i = 0; i < message.partialErrors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); + if (error) + return "partialErrors." + error; + } + } + return null; + }; - /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - */ - MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata) + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + */ + ContentValidationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + return object; + var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.validRecordCount != null) + if ($util.Long) + (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; + else if (typeof object.validRecordCount === "string") + message.validRecordCount = parseInt(object.validRecordCount, 10); + else if (typeof object.validRecordCount === "number") + message.validRecordCount = object.validRecordCount; + else if (typeof object.validRecordCount === "object") + message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); + if (object.invalidRecordCount != null) + if ($util.Long) + (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; + else if (typeof object.invalidRecordCount === "string") + message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); + else if (typeof object.invalidRecordCount === "number") + message.invalidRecordCount = object.invalidRecordCount; + else if (typeof object.invalidRecordCount === "object") + message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); + if (object.partialErrors) { + if (!Array.isArray(object.partialErrors)) + throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); + message.partialErrors = []; + for (var i = 0; i < object.partialErrors.length; ++i) { + if (typeof object.partialErrors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); + message.partialErrors[i] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContentValidationStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.partialErrors = []; + if (options.defaults) { + object.sourceGcsUri = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.validRecordCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRecordCount = options.longs === String ? "0" : 0; + } + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (typeof message.validRecordCount === "number") + object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; + else + object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (typeof message.invalidRecordCount === "number") + object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; + else + object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; + if (message.partialErrors && message.partialErrors.length) { + object.partialErrors = []; + for (var j = 0; j < message.partialErrors.length; ++j) + object.partialErrors[j] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - return message; - }; + }; - /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - return object; - }; + /** + * Converts this ContentValidationStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + * @returns {Object.} JSON object + */ + ContentValidationStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ContentValidationStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; + }; - /** - * Gets the default type url for MutateDeployedIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata"; - }; + return ContentValidationStats; + })(); - return MutateDeployedIndexOperationMetadata; + return NearestNeighborSearchOperationMetadata; })(); - v1.IndexService = (function() { + v1.JobService = (function() { /** - * Constructs a new IndexService service. + * Constructs a new JobService service. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an IndexService + * @classdesc Represents a JobService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function IndexService(rpcImpl, requestDelimited, responseDelimited) { + function JobService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Creates new IndexService service using the specified rpc implementation. + * Creates new JobService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1.IndexService + * @memberof google.cloud.aiplatform.v1.JobService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. + * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. */ - IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|createIndex}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef CreateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createCustomJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1.CustomJob} [response] CustomJob */ /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { - return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndex" }); + Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { + return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1.CustomJob, request, callback); + }, "name", { value: "CreateCustomJob" }); /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|getIndex}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef GetIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getCustomJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Index} [response] Index + * @param {google.cloud.aiplatform.v1.CustomJob} [response] CustomJob */ /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IGetIndexRequest} request GetIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { - return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1.GetIndexRequest, $root.google.cloud.aiplatform.v1.Index, request, callback); - }, "name", { value: "GetIndex" }); + Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { + return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1.CustomJob, request, callback); + }, "name", { value: "GetCustomJob" }); /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IGetIndexRequest} request GetIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|listIndexes}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef ListIndexesCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listCustomJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListCustomJobsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListIndexesResponse} [response] ListIndexesResponse + * @param {google.cloud.aiplatform.v1.ListCustomJobsResponse} [response] ListCustomJobsResponse */ /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { - return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1.ListIndexesRequest, $root.google.cloud.aiplatform.v1.ListIndexesResponse, request, callback); - }, "name", { value: "ListIndexes" }); + Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { + return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1.ListCustomJobsResponse, request, callback); + }, "name", { value: "ListCustomJobs" }); /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|updateIndex}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef UpdateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteCustomJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteCustomJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { - return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateIndex" }); + Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { + return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCustomJob" }); /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|deleteIndex}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef DeleteIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelCustomJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelCustomJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { - return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndex" }); + Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { + return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelCustomJob" }); /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|upsertDatapoints}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef UpsertDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateDataLabelingJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1.DataLabelingJob} [response] DataLabelingJob */ /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { - return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse, request, callback); - }, "name", { value: "UpsertDatapoints" }); + Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { + return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1.DataLabelingJob, request, callback); + }, "name", { value: "CreateDataLabelingJob" }); /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.IndexService|removeDatapoints}. - * @memberof google.cloud.aiplatform.v1.IndexService - * @typedef RemoveDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetDataLabelingJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1.DataLabelingJob} [response] DataLabelingJob */ /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { - return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse, request, callback); - }, "name", { value: "RemoveDatapoints" }); + Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { + return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1.DataLabelingJob, request, callback); + }, "name", { value: "GetDataLabelingJob" }); /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1.IndexService + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return IndexService; - })(); - - v1.CreateIndexRequest = (function() { - - /** - * Properties of a CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateIndexRequest - * @property {string|null} [parent] CreateIndexRequest parent - * @property {google.cloud.aiplatform.v1.IIndex|null} [index] CreateIndexRequest index - */ - /** - * Constructs a new CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateIndexRequest. - * @implements ICreateIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listDataLabelingJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListDataLabelingJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse */ - function CreateIndexRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * CreateIndexRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { + return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse, request, callback); + }, "name", { value: "ListDataLabelingJobs" }); /** - * CreateIndexRequest index. - * @member {google.cloud.aiplatform.v1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.prototype.index = null; - - /** - * Creates a new CreateIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest instance - */ - CreateIndexRequest.create = function create(properties) { - return new CreateIndexRequest(properties); - }; - - /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.index = $root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1.Index.verify(message.index); - if (error) - return "index." + error; - } - return null; - }; - - /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateIndexRequest} CreateIndexRequest - */ - CreateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateIndexRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1.Index.fromObject(object.index); - } - return message; - }; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.CreateIndexRequest} message CreateIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.index = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1.Index.toObject(message.index, options); - return object; - }; /** - * Converts this CreateIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object - */ - CreateIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CreateIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexRequest"; - }; - - return CreateIndexRequest; - })(); - - v1.CreateIndexOperationMetadata = (function() { + Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { + return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataLabelingJob" }); /** - * Properties of a CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateIndexOperationMetadata. - * @implements ICreateIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function CreateIndexOperationMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * CreateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.prototype.genericMetadata = null; + Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { + return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelDataLabelingJob" }); /** - * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - CreateIndexOperationMetadata.create = function create(properties) { - return new CreateIndexOperationMetadata(properties); - }; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { + return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1.HyperparameterTuningJob, request, callback); + }, "name", { value: "CreateHyperparameterTuningJob" }); /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - CreateIndexOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { + return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1.HyperparameterTuningJob, request, callback); + }, "name", { value: "GetHyperparameterTuningJob" }); /** - * Verifies a CreateIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; - } - return null; - }; /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listHyperparameterTuningJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListHyperparameterTuningJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse */ - CreateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); - } - return message; - }; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); - return object; - }; + Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { + return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse, request, callback); + }, "name", { value: "ListHyperparameterTuningJobs" }); /** - * Converts this CreateIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreateIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateIndexOperationMetadata"; - }; - - return CreateIndexOperationMetadata; - })(); - v1.GetIndexRequest = (function() { + /** + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { + return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteHyperparameterTuningJob" }); /** - * Properties of a GetIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function GetIndexRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * GetIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetIndexRequest + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.name = ""; + Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { + return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Creates a new GetIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest instance + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); - }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob */ - GetIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { + return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "CreateNasJob" }); /** - * Decodes a GetIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob */ - GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { + return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1.GetNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "GetNasJob" }); /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetIndexRequest} GetIndexRequest + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetIndexRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.GetIndexRequest} message GetIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} [response] ListNasJobsResponse */ - GetIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this GetIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetIndexRequest + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { + return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1.ListNasJobsResponse, request, callback); + }, "name", { value: "ListNasJobs" }); /** - * Gets the default type url for GetIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetIndexRequest"; - }; - return GetIndexRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - v1.ListIndexesRequest = (function() { + /** + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { + return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNasJob" }); /** - * Properties of a ListIndexesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IListIndexesRequest - * @property {string|null} [parent] ListIndexesRequest parent - * @property {string|null} [filter] ListIndexesRequest filter - * @property {number|null} [pageSize] ListIndexesRequest pageSize - * @property {string|null} [pageToken] ListIndexesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListIndexesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListIndexesRequest. - * @implements IListIndexesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IListIndexesRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function ListIndexesRequest(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]]; - } /** - * ListIndexesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListIndexesRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { + return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelNasJob" }); /** - * ListIndexesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesRequest.prototype.filter = ""; /** - * ListIndexesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasTrialDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasTrialDetail} [response] NasTrialDetail */ - ListIndexesRequest.prototype.pageSize = 0; /** - * ListIndexesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail + * @returns {undefined} + * @variation 1 */ - ListIndexesRequest.prototype.pageToken = ""; + Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { + return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1.NasTrialDetail, request, callback); + }, "name", { value: "GetNasTrialDetail" }); /** - * ListIndexesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesRequest.prototype.readMask = null; /** - * Creates a new ListIndexesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasTrialDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse */ - ListIndexesRequest.create = function create(properties) { - return new ListIndexesRequest(properties); - }; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + * @returns {undefined} + * @variation 1 */ - ListIndexesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { + return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, request, callback); + }, "name", { value: "ListNasTrialDetails" }); /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchPredictionJob} [response] BatchPredictionJob */ - ListIndexesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { + return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1.BatchPredictionJob, request, callback); + }, "name", { value: "CreateBatchPredictionJob" }); /** - * Verifies a ListIndexesRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListIndexesRequest} ListIndexesRequest + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchPredictionJob} [response] BatchPredictionJob */ - ListIndexesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexesRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListIndexesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListIndexesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {google.cloud.aiplatform.v1.ListIndexesRequest} message ListIndexesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - ListIndexesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; + Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { + return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1.BatchPredictionJob, request, callback); + }, "name", { value: "GetBatchPredictionJob" }); /** - * Converts this ListIndexesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for ListIndexesRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListIndexesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listBatchPredictionJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListBatchPredictionJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ - ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexesRequest"; - }; - - return ListIndexesRequest; - })(); - v1.ListIndexesResponse = (function() { + /** + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { + return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, request, callback); + }, "name", { value: "ListBatchPredictionJobs" }); /** - * Properties of a ListIndexesResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListIndexesResponse - * @property {Array.|null} [indexes] ListIndexesResponse indexes - * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListIndexesResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListIndexesResponse. - * @implements IListIndexesResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListIndexesResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function ListIndexesResponse(properties) { - this.indexes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListIndexesResponse indexes. - * @member {Array.} indexes - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListIndexesResponse.prototype.indexes = $util.emptyArray; + Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { + return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteBatchPredictionJob" }); /** - * ListIndexesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListIndexesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListIndexesResponse.create = function create(properties) { - return new ListIndexesResponse(properties); - }; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListIndexesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.indexes != null && message.indexes.length) - for (var i = 0; i < message.indexes.length; ++i) - $root.google.cloud.aiplatform.v1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { + return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelBatchPredictionJob" }); /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListIndexesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - ListIndexesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListIndexesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.indexes && message.indexes.length)) - message.indexes = []; - message.indexes.push($root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "CreateModelDeploymentMonitoringJob" }); /** - * Verifies a ListIndexesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexes != null && message.hasOwnProperty("indexes")) { - if (!Array.isArray(message.indexes)) - return "indexes: array expected"; - for (var i = 0; i < message.indexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Index.verify(message.indexes[i]); - if (error) - return "indexes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListIndexesResponse} ListIndexesResponse + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - ListIndexesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListIndexesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListIndexesResponse(); - if (object.indexes) { - if (!Array.isArray(object.indexes)) - throw TypeError(".google.cloud.aiplatform.v1.ListIndexesResponse.indexes: array expected"); - message.indexes = []; - for (var i = 0; i < object.indexes.length; ++i) { - if (typeof object.indexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListIndexesResponse.indexes: object expected"); - message.indexes[i] = $root.google.cloud.aiplatform.v1.Index.fromObject(object.indexes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {google.cloud.aiplatform.v1.ListIndexesResponse} message ListIndexesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {undefined} + * @variation 1 */ - ListIndexesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.indexes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexes && message.indexes.length) { - object.indexes = []; - for (var j = 0; j < message.indexes.length; ++j) - object.indexes[j] = $root.google.cloud.aiplatform.v1.Index.toObject(message.indexes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { + return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); + }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); - /** - * Converts this ListIndexesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse + /** + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIndexesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for ListIndexesResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListIndexesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListIndexesResponse"; - }; - return ListIndexesResponse; - })(); + /** + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "GetModelDeploymentMonitoringJob" }); - v1.UpdateIndexRequest = (function() { + /** + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of an UpdateIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateIndexRequest - * @property {google.cloud.aiplatform.v1.IIndex|null} [index] UpdateIndexRequest index - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listModelDeploymentMonitoringJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListModelDeploymentMonitoringJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse */ /** - * Constructs a new UpdateIndexRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateIndexRequest. - * @implements IUpdateIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest=} [properties] Properties to set + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @returns {undefined} + * @variation 1 */ - function UpdateIndexRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { + return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, request, callback); + }, "name", { value: "ListModelDeploymentMonitoringJobs" }); /** - * UpdateIndexRequest index. - * @member {google.cloud.aiplatform.v1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateIndexRequest.prototype.index = null; /** - * UpdateIndexRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|updateModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef UpdateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - UpdateIndexRequest.prototype.updateMask = null; + Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); /** - * Creates a new UpdateIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest instance + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateIndexRequest.create = function create(properties) { - return new UpdateIndexRequest(properties); - }; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - UpdateIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateIndexRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.index = $root.google.cloud.aiplatform.v1.Index.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|pauseModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef PauseModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies an UpdateIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - UpdateIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1.Index.verify(message.index); - if (error) - return "index." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "PauseModelDeploymentMonitoringJob" }); /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateIndexRequest} UpdateIndexRequest + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateIndexRequest(); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1.Index.fromObject(object.index); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1.UpdateIndexRequest} message UpdateIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|resumeModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ResumeModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - UpdateIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.index = null; - object.updateMask = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1.Index.toObject(message.index, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; /** - * Converts this UpdateIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - UpdateIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); /** - * Gets the default type url for UpdateIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexRequest"; - }; - return UpdateIndexRequest; + return JobService; })(); - v1.UpdateIndexOperationMetadata = (function() { + v1.CreateCustomJobRequest = (function() { /** - * Properties of an UpdateIndexOperationMetadata. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateIndexOperationMetadata. - * @implements IUpdateIndexOperationMetadata + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest=} [properties] Properties to set */ - function UpdateIndexOperationMetadata(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84612,89 +102438,89 @@ } /** - * UpdateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * CreateCustomJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @instance */ - UpdateIndexOperationMetadata.prototype.genericMetadata = null; + CreateCustomJobRequest.prototype.parent = ""; /** - * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * CreateCustomJobRequest customJob. + * @member {google.cloud.aiplatform.v1.ICustomJob|null|undefined} customJob + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @instance */ - UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + CreateCustomJobRequest.prototype.customJob = null; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - UpdateIndexOperationMetadata.create = function create(properties) { - return new UpdateIndexOperationMetadata(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encode = function encode(message, writer) { + CreateCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + $root.google.cloud.aiplatform.v1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decode = function decode(reader, length) { + CreateCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.customJob = $root.google.cloud.aiplatform.v1.CustomJob.decode(reader, reader.uint32()); break; } default: @@ -84706,141 +102532,136 @@ }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexOperationMetadata.verify = function verify(message) { + CreateCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1.CustomJob.verify(message.customJob); if (error) - return "nearestNeighborSearchOperationMetadata." + error; + return "customJob." + error; } return null; }; /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + var message = new $root.google.cloud.aiplatform.v1.CreateCustomJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customJob != null) { + if (typeof object.customJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateCustomJobRequest.customJob: object expected"); + message.customJob = $root.google.cloud.aiplatform.v1.CustomJob.fromObject(object.customJob); } return message; }; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + CreateCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + object.parent = ""; + object.customJob = null; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = $root.google.cloud.aiplatform.v1.CustomJob.toObject(message.customJob, options); return object; }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for CreateCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateCustomJobRequest"; }; - return UpdateIndexOperationMetadata; + return CreateCustomJobRequest; })(); - v1.DeleteIndexRequest = (function() { + v1.GetCustomJobRequest = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest=} [properties] Properties to set */ - function DeleteIndexRequest(properties) { + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84848,35 +102669,35 @@ } /** - * DeleteIndexRequest name. + * GetCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @instance */ - DeleteIndexRequest.prototype.name = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encode = function encode(message, writer) { + GetCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -84885,33 +102706,33 @@ }; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decode = function decode(reader, length) { + GetCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84928,30 +102749,30 @@ }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexRequest message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexRequest.verify = function verify(message) { + GetCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -84961,32 +102782,32 @@ }; /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteIndexRequest) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteIndexRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -84998,54 +102819,56 @@ }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for GetCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetCustomJobRequest"; }; - return DeleteIndexRequest; + return GetCustomJobRequest; })(); - v1.UpsertDatapointsRequest = (function() { + v1.ListCustomJobsRequest = (function() { /** - * Properties of an UpsertDatapointsRequest. + * Properties of a ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpsertDatapointsRequest - * @property {string|null} [index] UpsertDatapointsRequest index - * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + * @interface IListCustomJobsRequest + * @property {string|null} [parent] ListCustomJobsRequest parent + * @property {string|null} [filter] ListCustomJobsRequest filter + * @property {number|null} [pageSize] ListCustomJobsRequest pageSize + * @property {string|null} [pageToken] ListCustomJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask */ /** - * Constructs a new UpsertDatapointsRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpsertDatapointsRequest. - * @implements IUpsertDatapointsRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest=} [properties] Properties to set */ - function UpsertDatapointsRequest(properties) { - this.datapoints = []; + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85053,308 +102876,133 @@ } /** - * UpsertDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * ListCustomJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @instance */ - UpsertDatapointsRequest.prototype.index = ""; + ListCustomJobsRequest.prototype.parent = ""; /** - * UpsertDatapointsRequest datapoints. - * @member {Array.} datapoints - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * ListCustomJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @instance */ - UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; - - /** - * Creates a new UpsertDatapointsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest instance - */ - UpsertDatapointsRequest.create = function create(properties) { - return new UpsertDatapointsRequest(properties); - }; - - /** - * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpsertDatapointsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapoints != null && message.datapoints.length) - for (var i = 0; i < message.datapoints.length; ++i) - $root.google.cloud.aiplatform.v1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpsertDatapointsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.index = reader.string(); - break; - } - case 2: { - if (!(message.datapoints && message.datapoints.length)) - message.datapoints = []; - message.datapoints.push($root.google.cloud.aiplatform.v1.IndexDatapoint.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpsertDatapointsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpsertDatapointsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapoints != null && message.hasOwnProperty("datapoints")) { - if (!Array.isArray(message.datapoints)) - return "datapoints: array expected"; - for (var i = 0; i < message.datapoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.IndexDatapoint.verify(message.datapoints[i]); - if (error) - return "datapoints." + error; - } - } - return null; - }; - - /** - * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsRequest} UpsertDatapointsRequest - */ - UpsertDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapoints) { - if (!Array.isArray(object.datapoints)) - throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: array expected"); - message.datapoints = []; - for (var i = 0; i < object.datapoints.length; ++i) { - if (typeof object.datapoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpsertDatapointsRequest.datapoints: object expected"); - message.datapoints[i] = $root.google.cloud.aiplatform.v1.IndexDatapoint.fromObject(object.datapoints[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {google.cloud.aiplatform.v1.UpsertDatapointsRequest} message UpsertDatapointsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpsertDatapointsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.datapoints = []; - if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapoints && message.datapoints.length) { - object.datapoints = []; - for (var j = 0; j < message.datapoints.length; ++j) - object.datapoints[j] = $root.google.cloud.aiplatform.v1.IndexDatapoint.toObject(message.datapoints[j], options); - } - return object; - }; + ListCustomJobsRequest.prototype.filter = ""; /** - * Converts this UpsertDatapointsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest + * ListCustomJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @instance - * @returns {Object.} JSON object - */ - UpsertDatapointsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpsertDatapointsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url */ - UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsRequest"; - }; - - return UpsertDatapointsRequest; - })(); - - v1.UpsertDatapointsResponse = (function() { + ListCustomJobsRequest.prototype.pageSize = 0; /** - * Properties of an UpsertDatapointsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IUpsertDatapointsResponse + * ListCustomJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @instance */ + ListCustomJobsRequest.prototype.pageToken = ""; /** - * Constructs a new UpsertDatapointsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpsertDatapointsResponse. - * @implements IUpsertDatapointsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set + * ListCustomJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @instance */ - function UpsertDatapointsResponse(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]]; - } + ListCustomJobsRequest.prototype.readMask = null; /** - * Creates a new UpsertDatapointsResponse instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse instance + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - UpsertDatapointsResponse.create = function create(properties) { - return new UpsertDatapointsResponse(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encode = function encode(message, writer) { + ListCustomJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decode = function decode(reader, length) { + ListCustomJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListCustomJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -85364,111 +103012,162 @@ }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsertDatapointsResponse message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsertDatapointsResponse.verify = function verify(message) { + ListCustomJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest */ - UpsertDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListCustomJobsRequest) return object; - return new $root.google.cloud.aiplatform.v1.UpsertDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListCustomJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; }; /** - * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1.UpsertDatapointsResponse} message UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsertDatapointsResponse.toObject = function toObject() { - return {}; + ListCustomJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; }; /** - * Converts this UpsertDatapointsResponse to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - UpsertDatapointsResponse.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsertDatapointsResponse + * Gets the default type url for ListCustomJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpsertDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListCustomJobsRequest"; }; - return UpsertDatapointsResponse; + return ListCustomJobsRequest; })(); - v1.RemoveDatapointsRequest = (function() { + v1.ListCustomJobsResponse = (function() { /** - * Properties of a RemoveDatapointsRequest. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveDatapointsRequest - * @property {string|null} [index] RemoveDatapointsRequest index - * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new RemoveDatapointsRequest. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveDatapointsRequest. - * @implements IRemoveDatapointsRequest + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse=} [properties] Properties to set */ - function RemoveDatapointsRequest(properties) { - this.datapointIds = []; + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85476,92 +103175,92 @@ } /** - * RemoveDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @instance */ - RemoveDatapointsRequest.prototype.index = ""; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * RemoveDatapointsRequest datapointIds. - * @member {Array.} datapointIds - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * ListCustomJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @instance */ - RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new RemoveDatapointsRequest instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest instance + * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - RemoveDatapointsRequest.create = function create(properties) { - return new RemoveDatapointsRequest(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encode = function encode(message, writer) { + ListCustomJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapointIds != null && message.datapointIds.length) - for (var i = 0; i < message.datapointIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); + if (message.customJobs != null && message.customJobs.length) + for (var i = 0; i < message.customJobs.length; ++i) + $root.google.cloud.aiplatform.v1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decode = function decode(reader, length) { + ListCustomJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListCustomJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = reader.string(); + if (!(message.customJobs && message.customJobs.length)) + message.customJobs = []; + message.customJobs.push($root.google.cloud.aiplatform.v1.CustomJob.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.datapointIds && message.datapointIds.length)) - message.datapointIds = []; - message.datapointIds.push(reader.string()); + message.nextPageToken = reader.string(); break; } default: @@ -85573,142 +103272,148 @@ }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsRequest message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsRequest.verify = function verify(message) { + ListCustomJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { - if (!Array.isArray(message.datapointIds)) - return "datapointIds: array expected"; - for (var i = 0; i < message.datapointIds.length; ++i) - if (!$util.isString(message.datapointIds[i])) - return "datapointIds: string[] expected"; + if (message.customJobs != null && message.hasOwnProperty("customJobs")) { + if (!Array.isArray(message.customJobs)) + return "customJobs: array expected"; + for (var i = 0; i < message.customJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.CustomJob.verify(message.customJobs[i]); + if (error) + return "customJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse */ - RemoveDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListCustomJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapointIds) { - if (!Array.isArray(object.datapointIds)) - throw TypeError(".google.cloud.aiplatform.v1.RemoveDatapointsRequest.datapointIds: array expected"); - message.datapointIds = []; - for (var i = 0; i < object.datapointIds.length; ++i) - message.datapointIds[i] = String(object.datapointIds[i]); + var message = new $root.google.cloud.aiplatform.v1.ListCustomJobsResponse(); + if (object.customJobs) { + if (!Array.isArray(object.customJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsResponse.customJobs: array expected"); + message.customJobs = []; + for (var i = 0; i < object.customJobs.length; ++i) { + if (typeof object.customJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsResponse.customJobs: object expected"); + message.customJobs[i] = $root.google.cloud.aiplatform.v1.CustomJob.fromObject(object.customJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1.RemoveDatapointsRequest} message RemoveDatapointsRequest + * @param {google.cloud.aiplatform.v1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsRequest.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.datapointIds = []; + object.customJobs = []; if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapointIds && message.datapointIds.length) { - object.datapointIds = []; - for (var j = 0; j < message.datapointIds.length; ++j) - object.datapointIds[j] = message.datapointIds[j]; + object.nextPageToken = ""; + if (message.customJobs && message.customJobs.length) { + object.customJobs = []; + for (var j = 0; j < message.customJobs.length; ++j) + object.customJobs[j] = $root.google.cloud.aiplatform.v1.CustomJob.toObject(message.customJobs[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this RemoveDatapointsRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - RemoveDatapointsRequest.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsRequest + * Gets the default type url for ListCustomJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListCustomJobsResponse"; }; - return RemoveDatapointsRequest; + return ListCustomJobsResponse; })(); - v1.RemoveDatapointsResponse = (function() { + v1.DeleteCustomJobRequest = (function() { /** - * Properties of a RemoveDatapointsResponse. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveDatapointsResponse + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new RemoveDatapointsResponse. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveDatapointsResponse. - * @implements IRemoveDatapointsResponse + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function RemoveDatapointsResponse(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85716,63 +103421,77 @@ } /** - * Creates a new RemoveDatapointsResponse instance using the specified properties. + * DeleteCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @instance + */ + DeleteCustomJobRequest.prototype.name = ""; + + /** + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - RemoveDatapointsResponse.create = function create(properties) { - return new RemoveDatapointsResponse(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decode = function decode(reader, length) { + DeleteCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -85782,111 +103501,122 @@ }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsResponse message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsResponse.verify = function verify(message) { + DeleteCustomJobRequest.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 RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - RemoveDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest) return object; - return new $root.google.cloud.aiplatform.v1.RemoveDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.RemoveDatapointsResponse} message RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsResponse.toObject = function toObject() { - return {}; + DeleteCustomJobRequest.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 RemoveDatapointsResponse to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - RemoveDatapointsResponse.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsResponse + * Gets the default type url for DeleteCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteCustomJobRequest"; }; - return RemoveDatapointsResponse; + return DeleteCustomJobRequest; })(); - v1.NearestNeighborSearchOperationMetadata = (function() { + v1.CancelCustomJobRequest = (function() { /** - * Properties of a NearestNeighborSearchOperationMetadata. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface INearestNeighborSearchOperationMetadata - * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats - * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NearestNeighborSearchOperationMetadata. - * @implements INearestNeighborSearchOperationMetadata + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest=} [properties] Properties to set */ - function NearestNeighborSearchOperationMetadata(properties) { - this.contentValidationStats = []; + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85894,92 +103624,75 @@ } /** - * NearestNeighborSearchOperationMetadata contentValidationStats. - * @member {Array.} contentValidationStats - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata - * @instance - */ - NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; - - /** - * NearestNeighborSearchOperationMetadata dataBytesCount. - * @member {number|Long} dataBytesCount - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * CancelCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @instance */ - NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - NearestNeighborSearchOperationMetadata.create = function create(properties) { - return new NearestNeighborSearchOperationMetadata(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { + CancelCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contentValidationStats != null && message.contentValidationStats.length) - for (var i = 0; i < message.contentValidationStats.length; ++i) - $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { + CancelCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contentValidationStats && message.contentValidationStats.length)) - message.contentValidationStats = []; - message.contentValidationStats.push($root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); - break; - } - case 2: { - message.dataBytesCount = reader.int64(); + message.name = reader.string(); break; } default: @@ -85991,2047 +103704,2273 @@ }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NearestNeighborSearchOperationMetadata.verify = function verify(message) { + CancelCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { - if (!Array.isArray(message.contentValidationStats)) - return "contentValidationStats: array expected"; - for (var i = 0; i < message.contentValidationStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); - if (error) - return "contentValidationStats." + error; - } - } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) - return "dataBytesCount: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest */ - NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata(); - if (object.contentValidationStats) { - if (!Array.isArray(object.contentValidationStats)) - throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); - message.contentValidationStats = []; - for (var i = 0; i < object.contentValidationStats.length; ++i) { - if (typeof object.contentValidationStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); - message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); - } - } - if (object.dataBytesCount != null) - if ($util.Long) - (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; - else if (typeof object.dataBytesCount === "string") - message.dataBytesCount = parseInt(object.dataBytesCount, 10); - else if (typeof object.dataBytesCount === "number") - message.dataBytesCount = object.dataBytesCount; - else if (typeof object.dataBytesCount === "object") - message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1.CancelCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {google.cloud.aiplatform.v1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + CancelCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.contentValidationStats = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataBytesCount = options.longs === String ? "0" : 0; - if (message.contentValidationStats && message.contentValidationStats.length) { - object.contentValidationStats = []; - for (var j = 0; j < message.contentValidationStats.length; ++j) - object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); - } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (typeof message.dataBytesCount === "number") - object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; - else - object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NearestNeighborSearchOperationMetadata + * Gets the default type url for CancelCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelCustomJobRequest"; }; - NearestNeighborSearchOperationMetadata.RecordError = (function() { - - /** - * Properties of a RecordError. - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata - * @interface IRecordError - * @property {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType - * @property {string|null} [errorMessage] RecordError errorMessage - * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri - * @property {string|null} [embeddingId] RecordError embeddingId - * @property {string|null} [rawRecord] RecordError rawRecord - */ - - /** - * Constructs a new RecordError. - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a RecordError. - * @implements IRecordError - * @constructor - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - */ - function RecordError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RecordError errorType. - * @member {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorType = 0; - - /** - * RecordError errorMessage. - * @member {string} errorMessage - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorMessage = ""; - - /** - * RecordError sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.sourceGcsUri = ""; + return CancelCustomJobRequest; + })(); - /** - * RecordError embeddingId. - * @member {string} embeddingId - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.embeddingId = ""; + v1.CreateDataLabelingJobRequest = (function() { - /** - * RecordError rawRecord. - * @member {string} rawRecord - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.rawRecord = ""; + /** + * Properties of a CreateDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob + */ - /** - * Creates a new RecordError instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance - */ - RecordError.create = function create(properties) { - return new RecordError(properties); - }; + /** + * Constructs a new CreateDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest=} [properties] Properties to set + */ + function CreateDataLabelingJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); - if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); - if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); - return writer; - }; + /** + * CreateDataLabelingJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.parent = ""; - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateDataLabelingJobRequest dataLabelingJob. + * @member {google.cloud.aiplatform.v1.IDataLabelingJob|null|undefined} dataLabelingJob + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; - /** - * Decodes a RecordError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.errorType = reader.int32(); - break; - } - case 2: { - message.errorMessage = reader.string(); - break; - } - case 3: { - message.sourceGcsUri = reader.string(); - break; - } - case 4: { - message.embeddingId = reader.string(); - break; - } - case 5: { - message.rawRecord = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance + */ + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); + }; - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataLabelingJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) + $root.google.cloud.aiplatform.v1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies a RecordError message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - if (!$util.isString(message.embeddingId)) - return "embeddingId: string expected"; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - if (!$util.isString(message.rawRecord)) - return "rawRecord: string expected"; - return null; - }; + /** + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - */ - RecordError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError) - return object; - var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError(); - switch (object.errorType) { - default: - if (typeof object.errorType === "number") { - message.errorType = object.errorType; + /** + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - break; - case "ERROR_TYPE_UNSPECIFIED": - case 0: - message.errorType = 0; - break; - case "EMPTY_LINE": - case 1: - message.errorType = 1; - break; - case "INVALID_JSON_SYNTAX": - case 2: - message.errorType = 2; - break; - case "INVALID_CSV_SYNTAX": - case 3: - message.errorType = 3; - break; - case "INVALID_AVRO_SYNTAX": - case 4: - message.errorType = 4; - break; - case "INVALID_EMBEDDING_ID": - case 5: - message.errorType = 5; - break; - case "EMBEDDING_SIZE_MISMATCH": - case 6: - message.errorType = 6; - break; - case "NAMESPACE_MISSING": - case 7: - message.errorType = 7; - break; - } - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.embeddingId != null) - message.embeddingId = String(object.embeddingId); - if (object.rawRecord != null) - message.rawRecord = String(object.rawRecord); - return message; - }; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; - object.errorMessage = ""; - object.sourceGcsUri = ""; - object.embeddingId = ""; - object.rawRecord = ""; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - object.embeddingId = message.embeddingId; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - object.rawRecord = message.rawRecord; - return object; - }; - - /** - * Converts this RecordError to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - * @returns {Object.} JSON object - */ - RecordError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RecordError - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 2: { + message.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError"; - }; + } + return message; + }; - /** - * RecordErrorType enum. - * @name google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType - * @enum {number} - * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value - * @property {number} EMPTY_LINE=1 EMPTY_LINE value - * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value - * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value - * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value - * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value - * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value - * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value - */ - RecordError.RecordErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY_LINE"] = 1; - values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; - values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; - values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; - values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; - values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; - values[valuesById[7] = "NAMESPACE_MISSING"] = 7; - return values; - })(); + /** + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return RecordError; - })(); + /** + * Verifies a CreateDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { + var error = $root.google.cloud.aiplatform.v1.DataLabelingJob.verify(message.dataLabelingJob); + if (error) + return "dataLabelingJob." + error; + } + return null; + }; - NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { + /** + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + */ + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataLabelingJob != null) { + if (typeof object.dataLabelingJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.fromObject(object.dataLabelingJob); + } + return message; + }; - /** - * Properties of a ContentValidationStats. - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata - * @interface IContentValidationStats - * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri - * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount - * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount - * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors - */ + /** + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataLabelingJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) + object.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.toObject(message.dataLabelingJob, options); + return object; + }; - /** - * Constructs a new ContentValidationStats. - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a ContentValidationStats. - * @implements IContentValidationStats - * @constructor - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - */ - function ContentValidationStats(properties) { - this.partialErrors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Converts this CreateDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @instance + * @returns {Object.} JSON object + */ + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateDataLabelingJobRequest"; + }; - /** - * ContentValidationStats sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.sourceGcsUri = ""; + return CreateDataLabelingJobRequest; + })(); - /** - * ContentValidationStats validRecordCount. - * @member {number|Long} validRecordCount - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + v1.GetDataLabelingJobRequest = (function() { - /** - * ContentValidationStats invalidRecordCount. - * @member {number|Long} invalidRecordCount - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Properties of a GetDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name + */ - /** - * ContentValidationStats partialErrors. - * @member {Array.} partialErrors - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.partialErrors = $util.emptyArray; + /** + * Constructs a new GetDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest=} [properties] Properties to set + */ + function GetDataLabelingJobRequest(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 ContentValidationStats instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance - */ - ContentValidationStats.create = function create(properties) { - return new ContentValidationStats(properties); - }; + /** + * GetDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @instance + */ + GetDataLabelingJobRequest.prototype.name = ""; - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); - if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); - if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); - if (message.partialErrors != null && message.partialErrors.length) - for (var i = 0; i < message.partialErrors.length; ++i) - $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + */ + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); + }; - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataLabelingJobRequest.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; + }; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.sourceGcsUri = reader.string(); - break; - } - case 2: { - message.validRecordCount = reader.int64(); - break; - } - case 3: { - message.invalidRecordCount = reader.int64(); - break; - } - case 4: { - if (!(message.partialErrors && message.partialErrors.length)) - message.partialErrors = []; - message.partialErrors.push($root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest(); + 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 ContentValidationStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ContentValidationStats message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContentValidationStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) - return "validRecordCount: integer|Long expected"; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) - return "invalidRecordCount: integer|Long expected"; - if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { - if (!Array.isArray(message.partialErrors)) - return "partialErrors: array expected"; - for (var i = 0; i < message.partialErrors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); - if (error) - return "partialErrors." + error; - } - } - return null; - }; + /** + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - */ - ContentValidationStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats) - return object; - var message = new $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.validRecordCount != null) - if ($util.Long) - (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; - else if (typeof object.validRecordCount === "string") - message.validRecordCount = parseInt(object.validRecordCount, 10); - else if (typeof object.validRecordCount === "number") - message.validRecordCount = object.validRecordCount; - else if (typeof object.validRecordCount === "object") - message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); - if (object.invalidRecordCount != null) - if ($util.Long) - (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; - else if (typeof object.invalidRecordCount === "string") - message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); - else if (typeof object.invalidRecordCount === "number") - message.invalidRecordCount = object.invalidRecordCount; - else if (typeof object.invalidRecordCount === "object") - message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); - if (object.partialErrors) { - if (!Array.isArray(object.partialErrors)) - throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); - message.partialErrors = []; - for (var i = 0; i < object.partialErrors.length; ++i) { - if (typeof object.partialErrors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); - message.partialErrors[i] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); - } - } - return message; - }; + /** + * Verifies a GetDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContentValidationStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialErrors = []; - if (options.defaults) { - object.sourceGcsUri = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.validRecordCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRecordCount = options.longs === String ? "0" : 0; - } - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (typeof message.validRecordCount === "number") - object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; - else - object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (typeof message.invalidRecordCount === "number") - object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; - else - object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; - if (message.partialErrors && message.partialErrors.length) { - object.partialErrors = []; - for (var j = 0; j < message.partialErrors.length; ++j) - object.partialErrors[j] = $root.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); - } + /** + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + */ + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ContentValidationStats to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - * @returns {Object.} JSON object - */ - ContentValidationStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Gets the default type url for ContentValidationStats - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; - }; + /** + * Converts this GetDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @instance + * @returns {Object.} JSON object + */ + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ContentValidationStats; - })(); + /** + * Gets the default type url for GetDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetDataLabelingJobRequest"; + }; - return NearestNeighborSearchOperationMetadata; + return GetDataLabelingJobRequest; })(); - v1.JobService = (function() { + v1.ListDataLabelingJobsRequest = (function() { /** - * Constructs a new JobService service. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a JobService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @interface IListDataLabelingJobsRequest + * @property {string|null} [parent] ListDataLabelingJobsRequest parent + * @property {string|null} [filter] ListDataLabelingJobsRequest filter + * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize + * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask + * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy */ - function JobService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Creates new JobService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.JobService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. + * Constructs a new ListDataLabelingJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + function ListDataLabelingJobsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createCustomJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.CustomJob} [response] CustomJob + * ListDataLabelingJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @instance */ + ListDataLabelingJobsRequest.prototype.parent = ""; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { - return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1.CustomJob, request, callback); - }, "name", { value: "CreateCustomJob" }); + ListDataLabelingJobsRequest.prototype.filter = ""; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListDataLabelingJobsRequest.prototype.pageSize = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getCustomJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.CustomJob} [response] CustomJob + * ListDataLabelingJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @instance */ + ListDataLabelingJobsRequest.prototype.pageToken = ""; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { - return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1.CustomJob, request, callback); - }, "name", { value: "GetCustomJob" }); + ListDataLabelingJobsRequest.prototype.readMask = null; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListDataLabelingJobsRequest.prototype.orderBy = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listCustomJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListCustomJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListCustomJobsResponse} [response] ListCustomJobsResponse + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { - return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1.ListCustomJobsResponse, request, callback); - }, "name", { value: "ListCustomJobs" }); + ListDataLabelingJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + return writer; + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteCustomJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListDataLabelingJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { - return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCustomJob" }); + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListDataLabelingJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListDataLabelingJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CancelCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { - return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelCustomJob" }); + ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this ListDataLabelingJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.DataLabelingJob} [response] DataLabelingJob + * @returns {Object.} JSON object */ + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 + * Gets the default type url for ListDataLabelingJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { - return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1.DataLabelingJob, request, callback); - }, "name", { value: "CreateDataLabelingJob" }); + ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListDataLabelingJobsRequest"; + }; + + return ListDataLabelingJobsRequest; + })(); + + v1.ListDataLabelingJobsResponse = (function() { /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListDataLabelingJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.DataLabelingJob} [response] DataLabelingJob + * Constructs a new ListDataLabelingJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse=} [properties] Properties to set */ + function ListDataLabelingJobsResponse(properties) { + this.dataLabelingJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse * @instance - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { - return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1.DataLabelingJob, request, callback); - }, "name", { value: "GetDataLabelingJob" }); + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListDataLabelingJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse * @instance - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListDataLabelingJobsResponse.prototype.nextPageToken = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listDataLabelingJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListDataLabelingJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); + }; /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { - return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse, request, callback); - }, "name", { value: "ListDataLabelingJobs" }); + ListDataLabelingJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) + for (var i = 0; i < message.dataLabelingJobs.length; ++i) + $root.google.cloud.aiplatform.v1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListDataLabelingJobsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) + message.dataLabelingJobs = []; + message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1.DataLabelingJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { - return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataLabelingJob" }); + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListDataLabelingJobsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListDataLabelingJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { + if (!Array.isArray(message.dataLabelingJobs)) + return "dataLabelingJobs: array expected"; + for (var i = 0; i < message.dataLabelingJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.DataLabelingJob.verify(message.dataLabelingJobs[i]); + if (error) + return "dataLabelingJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CancelDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse(); + if (object.dataLabelingJobs) { + if (!Array.isArray(object.dataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); + message.dataLabelingJobs = []; + for (var i = 0; i < object.dataLabelingJobs.length; ++i) { + if (typeof object.dataLabelingJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); + message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { - return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelDataLabelingJob" }); + ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataLabelingJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataLabelingJobs && message.dataLabelingJobs.length) { + object.dataLabelingJobs = []; + for (var j = 0; j < message.dataLabelingJobs.length; ++j) + object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this ListDataLabelingJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse * @instance - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Gets the default type url for ListDataLabelingJobsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListDataLabelingJobsResponse"; + }; - /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { - return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1.HyperparameterTuningJob, request, callback); - }, "name", { value: "CreateHyperparameterTuningJob" }); + return ListDataLabelingJobsResponse; + })(); + + v1.DeleteDataLabelingJobRequest = (function() { /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Constructs a new DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest=} [properties] Properties to set */ + function DeleteDataLabelingJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService + * DeleteDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { - return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1.HyperparameterTuningJob, request, callback); - }, "name", { value: "GetHyperparameterTuningJob" }); + DeleteDataLabelingJobRequest.prototype.name = ""; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance */ + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listHyperparameterTuningJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListHyperparameterTuningJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { - return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse, request, callback); - }, "name", { value: "ListHyperparameterTuningJobs" }); + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a DeleteDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { - return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteHyperparameterTuningJob" }); + DeleteDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest */ + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CancelHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this DeleteDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { - return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelHyperparameterTuningJob" }); + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for DeleteDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest"; + }; + + return DeleteDataLabelingJobRequest; + })(); + + v1.CancelDataLabelingJobRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateNasJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + * Properties of a CancelDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name */ /** - * Calls CreateNasJob. - * @function createNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob - * @returns {undefined} - * @variation 1 + * Constructs a new CancelDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { - return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); - }, "name", { value: "CreateNasJob" }); + function CancelDataLabelingJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateNasJob. - * @function createNasJob - * @memberof google.cloud.aiplatform.v1.JobService + * CancelDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetNasJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); + }; /** - * Calls GetNasJob. - * @function getNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { - return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1.GetNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); - }, "name", { value: "GetNasJob" }); + CancelDataLabelingJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls GetNasJob. - * @function getNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListNasJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} [response] ListNasJobsResponse + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelDataLabelingJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListNasJobs. - * @function listNasJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse - * @returns {undefined} - * @variation 1 + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { - return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1.ListNasJobsResponse, request, callback); - }, "name", { value: "ListNasJobs" }); + CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListNasJobs. - * @function listNasJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CancelDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CancelDataLabelingJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteNasJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls DeleteNasJob. - * @function deleteNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { - return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteNasJob" }); + CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls DeleteNasJob. - * @function deleteNasJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this CancelDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CancelNasJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Gets the default type url for CancelDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelDataLabelingJobRequest"; + }; + + return CancelDataLabelingJobRequest; + })(); + + v1.CreateHyperparameterTuningJobRequest = (function() { /** - * Calls CancelNasJob. - * @function cancelNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Properties of a CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { - return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelNasJob" }); /** - * Calls CancelNasJob. - * @function cancelNasJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set */ + function CreateHyperparameterTuningJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetNasTrialDetailCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.NasTrialDetail} [response] NasTrialDetail + * CreateHyperparameterTuningJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @instance */ + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * Calls GetNasTrialDetail. - * @function getNasTrialDetail - * @memberof google.cloud.aiplatform.v1.JobService + * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. + * @member {google.cloud.aiplatform.v1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { - return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1.NasTrialDetail, request, callback); - }, "name", { value: "GetNasTrialDetail" }); + CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; /** - * Calls GetNasTrialDetail. - * @function getNasTrialDetail - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListNasTrialDetailsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) + $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls ListNasTrialDetails. - * @function listNasTrialDetails - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { - return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, request, callback); - }, "name", { value: "ListNasTrialDetails" }); + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListNasTrialDetails. - * @function listNasTrialDetails - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.BatchPredictionJob} [response] BatchPredictionJob + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * Verifies a CreateHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { - return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1.BatchPredictionJob, request, callback); - }, "name", { value: "CreateBatchPredictionJob" }); + CreateHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { + var error = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (error) + return "hyperparameterTuningJob." + error; + } + return null; + }; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hyperparameterTuningJob != null) { + if (typeof object.hyperparameterTuningJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.BatchPredictionJob} [response] BatchPredictionJob + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.hyperparameterTuningJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) + object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + return object; + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { - return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1.BatchPredictionJob, request, callback); - }, "name", { value: "GetBatchPredictionJob" }); + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CreateHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listBatchPredictionJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListBatchPredictionJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse - */ + return CreateHyperparameterTuningJobRequest; + })(); - /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { - return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, request, callback); - }, "name", { value: "ListBatchPredictionJobs" }); + v1.GetHyperparameterTuningJobRequest = (function() { /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ + function GetHyperparameterTuningJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService + * GetHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { - return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteBatchPredictionJob" }); + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CancelBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { - return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelBatchPredictionJob" }); + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef CreateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Verifies a GetHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "CreateModelDeploymentMonitoringJob" }); + GetHyperparameterTuningJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest */ + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this GetHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { - return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); - }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for GetHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef GetModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob - */ + return GetHyperparameterTuningJobRequest; + })(); + + v1.ListHyperparameterTuningJobsRequest = (function() { /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Properties of a ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListHyperparameterTuningJobsRequest + * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent + * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter + * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize + * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask */ - Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "GetModelDeploymentMonitoringJob" }); /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ + function ListHyperparameterTuningJobsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listModelDeploymentMonitoringJobs}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ListModelDeploymentMonitoringJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + * ListHyperparameterTuningJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @instance */ + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1.JobService + * ListHyperparameterTuningJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { - return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, request, callback); - }, "name", { value: "ListModelDeploymentMonitoringJobs" }); + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1.JobService + * ListHyperparameterTuningJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|updateModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef UpdateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * ListHyperparameterTuningJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @instance */ + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService + * ListHyperparameterTuningJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); + ListHyperparameterTuningJobsRequest.prototype.readMask = null; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef DeleteModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|pauseModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef PauseModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Verifies a ListHyperparameterTuningJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "PauseModelDeploymentMonitoringJob" }); + ListHyperparameterTuningJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.JobService|resumeModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1.JobService - * @typedef ResumeModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.JobService - * @instance - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListHyperparameterTuningJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest"; + }; - return JobService; + return ListHyperparameterTuningJobsRequest; })(); - v1.CreateCustomJobRequest = (function() { + v1.ListHyperparameterTuningJobsResponse = (function() { /** - * Properties of a CreateCustomJobRequest. + * Properties of a ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob + * @interface IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ - function CreateCustomJobRequest(properties) { + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88039,89 +105978,92 @@ } /** - * CreateCustomJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @instance */ - CreateCustomJobRequest.prototype.parent = ""; + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * ListHyperparameterTuningJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @instance */ - CreateCustomJobRequest.prototype.customJob = null; + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest instance + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); }; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encode = function encode(message, writer) { + ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - $root.google.cloud.aiplatform.v1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) + $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decode = function decode(reader, length) { + ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) + message.hyperparameterTuningJobs = []; + message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1.HyperparameterTuningJob.decode(reader, reader.uint32())); break; } case 2: { - message.customJob = $root.google.cloud.aiplatform.v1.CustomJob.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -88133,136 +106075,148 @@ }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomJobRequest.verify = function verify(message) { + ListHyperparameterTuningJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1.CustomJob.verify(message.customJob); - if (error) - return "customJob." + error; + if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { + if (!Array.isArray(message.hyperparameterTuningJobs)) + return "hyperparameterTuningJobs: array expected"; + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); + if (error) + return "hyperparameterTuningJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateCustomJobRequest) + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateCustomJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customJob != null) { - if (typeof object.customJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateCustomJobRequest.customJob: object expected"); - message.customJob = $root.google.cloud.aiplatform.v1.CustomJob.fromObject(object.customJob); + var message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse(); + if (object.hyperparameterTuningJobs) { + if (!Array.isArray(object.hyperparameterTuningJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); + message.hyperparameterTuningJobs = []; + for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { + if (typeof object.hyperparameterTuningJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); + message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateCustomJobRequest} message CreateCustomJobRequest + * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomJobRequest.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customJob = null; + if (options.arrays || options.defaults) + object.hyperparameterTuningJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { + object.hyperparameterTuningJobs = []; + for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) + object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = $root.google.cloud.aiplatform.v1.CustomJob.toObject(message.customJob, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @instance * @returns {Object.} JSON object */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCustomJobRequest + * Gets the default type url for ListHyperparameterTuningJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse"; }; - return CreateCustomJobRequest; + return ListHyperparameterTuningJobsResponse; })(); - v1.GetCustomJobRequest = (function() { + v1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Properties of a GetCustomJobRequest. + * Properties of a DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Constructs a new GetCustomJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest + * Constructs a new DeleteHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - function GetCustomJobRequest(properties) { + function DeleteHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88270,35 +106224,35 @@ } /** - * GetCustomJobRequest name. + * DeleteHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @instance */ - GetCustomJobRequest.prototype.name = ""; + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encode = function encode(message, writer) { + DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -88307,33 +106261,33 @@ }; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decode = function decode(reader, length) { + DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -88350,30 +106304,30 @@ }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomJobRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomJobRequest.verify = function verify(message) { + DeleteHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -88383,32 +106337,32 @@ }; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetCustomJobRequest) + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetCustomJobRequest} message GetCustomJobRequest + * @param {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomJobRequest.toObject = function toObject(message, options) { + DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -88420,56 +106374,52 @@ }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCustomJobRequest + * Gets the default type url for DeleteHyperparameterTuningJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest"; }; - return GetCustomJobRequest; + return DeleteHyperparameterTuningJobRequest; })(); - v1.ListCustomJobsRequest = (function() { + v1.CancelHyperparameterTuningJobRequest = (function() { /** - * Properties of a ListCustomJobsRequest. + * Properties of a CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListCustomJobsRequest - * @property {string|null} [parent] ListCustomJobsRequest parent - * @property {string|null} [filter] ListCustomJobsRequest filter - * @property {number|null} [pageSize] ListCustomJobsRequest pageSize - * @property {string|null} [pageToken] ListCustomJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask + * @interface ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ - function ListCustomJobsRequest(properties) { + function CancelHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88477,131 +106427,75 @@ } /** - * ListCustomJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.parent = ""; - - /** - * ListCustomJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.filter = ""; - - /** - * ListCustomJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.pageSize = 0; - - /** - * ListCustomJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest - * @instance - */ - ListCustomJobsRequest.prototype.pageToken = ""; - - /** - * ListCustomJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * CancelHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @instance */ - ListCustomJobsRequest.prototype.readMask = null; + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest instance + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encode = function encode(message, writer) { + CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decode = function decode(reader, length) { + CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListCustomJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -88613,162 +106507,123 @@ }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { + CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a CancelHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsRequest.verify = function verify(message) { + CancelHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListCustomJobsRequest) + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListCustomJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListCustomJobsRequest} message ListCustomJobsRequest + * @param {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsRequest.toObject = function toObject(message, options) { + CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsRequest + * Gets the default type url for CancelHyperparameterTuningJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListCustomJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest"; }; - return ListCustomJobsRequest; + return CancelHyperparameterTuningJobRequest; })(); - v1.ListCustomJobsResponse = (function() { + v1.CreateNasJobRequest = (function() { /** - * Properties of a ListCustomJobsResponse. + * Properties of a CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * @interface ICreateNasJobRequest + * @property {string|null} [parent] CreateNasJobRequest parent + * @property {google.cloud.aiplatform.v1.INasJob|null} [nasJob] CreateNasJobRequest nasJob */ /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse + * @classdesc Represents a CreateNasJobRequest. + * @implements ICreateNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; + function CreateNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88776,92 +106631,89 @@ } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * CreateNasJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; + CreateNasJobRequest.prototype.parent = ""; /** - * ListCustomJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * CreateNasJobRequest nasJob. + * @member {google.cloud.aiplatform.v1.INasJob|null|undefined} nasJob + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - ListCustomJobsResponse.prototype.nextPageToken = ""; + CreateNasJobRequest.prototype.nasJob = null; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest instance */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); + CreateNasJobRequest.create = function create(properties) { + return new CreateNasJobRequest(properties); }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encode = function encode(message, writer) { + CreateNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customJobs != null && message.customJobs.length) - for (var i = 0; i < message.customJobs.length; ++i) - $root.google.cloud.aiplatform.v1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decode = function decode(reader, length) { + CreateNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListCustomJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.customJobs && message.customJobs.length)) - message.customJobs = []; - message.customJobs.push($root.google.cloud.aiplatform.v1.CustomJob.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32()); break; } default: @@ -88873,148 +106725,136 @@ }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a CreateNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsResponse.verify = function verify(message) { + CreateNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customJobs != null && message.hasOwnProperty("customJobs")) { - if (!Array.isArray(message.customJobs)) - return "customJobs: array expected"; - for (var i = 0; i < message.customJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.CustomJob.verify(message.customJobs[i]); - if (error) - return "customJobs." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.nasJob != null && message.hasOwnProperty("nasJob")) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJob); + if (error) + return "nasJob." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListCustomJobsResponse) + CreateNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListCustomJobsResponse(); - if (object.customJobs) { - if (!Array.isArray(object.customJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsResponse.customJobs: array expected"); - message.customJobs = []; - for (var i = 0; i < object.customJobs.length; ++i) { - if (typeof object.customJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListCustomJobsResponse.customJobs: object expected"); - message.customJobs[i] = $root.google.cloud.aiplatform.v1.CustomJob.fromObject(object.customJobs[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.nasJob != null) { + if (typeof object.nasJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateNasJobRequest.nasJob: object expected"); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJob); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListCustomJobsResponse} message ListCustomJobsResponse + * @param {google.cloud.aiplatform.v1.CreateNasJobRequest} message CreateNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsResponse.toObject = function toObject(message, options) { + CreateNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.customJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customJobs && message.customJobs.length) { - object.customJobs = []; - for (var j = 0; j < message.customJobs.length; ++j) - object.customJobs[j] = $root.google.cloud.aiplatform.v1.CustomJob.toObject(message.customJobs[j], options); + if (options.defaults) { + object.parent = ""; + object.nasJob = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.nasJob != null && message.hasOwnProperty("nasJob")) + object.nasJob = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJob, options); return object; }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this CreateNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { + CreateNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsResponse + * Gets the default type url for CreateNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListCustomJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateNasJobRequest"; }; - return ListCustomJobsResponse; + return CreateNasJobRequest; })(); - v1.DeleteCustomJobRequest = (function() { + v1.GetNasJobRequest = (function() { /** - * Properties of a DeleteCustomJobRequest. + * Properties of a GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name + * @interface IGetNasJobRequest + * @property {string|null} [name] GetNasJobRequest name */ /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest + * @classdesc Represents a GetNasJobRequest. + * @implements IGetNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set */ - function DeleteCustomJobRequest(properties) { + function GetNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89022,35 +106862,35 @@ } /** - * DeleteCustomJobRequest name. + * GetNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance */ - DeleteCustomJobRequest.prototype.name = ""; + GetNasJobRequest.prototype.name = ""; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest instance */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); + GetNasJobRequest.create = function create(properties) { + return new GetNasJobRequest(properties); }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encode = function encode(message, writer) { + GetNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -89059,33 +106899,33 @@ }; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decode = function decode(reader, length) { + GetNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -89102,30 +106942,30 @@ }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a GetNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCustomJobRequest.verify = function verify(message) { + GetNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -89135,32 +106975,32 @@ }; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest) + GetNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteCustomJobRequest} message DeleteCustomJobRequest + * @param {google.cloud.aiplatform.v1.GetNasJobRequest} message GetNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { + GetNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -89172,52 +107012,56 @@ }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance * @returns {Object.} JSON object */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { + GetNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCustomJobRequest + * Gets the default type url for GetNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasJobRequest"; }; - return DeleteCustomJobRequest; + return GetNasJobRequest; })(); - v1.CancelCustomJobRequest = (function() { + v1.ListNasJobsRequest = (function() { /** - * Properties of a CancelCustomJobRequest. + * Properties of a ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * @interface IListNasJobsRequest + * @property {string|null} [parent] ListNasJobsRequest parent + * @property {string|null} [filter] ListNasJobsRequest filter + * @property {number|null} [pageSize] ListNasJobsRequest pageSize + * @property {string|null} [pageToken] ListNasJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask */ /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest + * @classdesc Represents a ListNasJobsRequest. + * @implements IListNasJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set */ - function CancelCustomJobRequest(properties) { + function ListNasJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89225,75 +107069,131 @@ } /** - * CancelCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * ListNasJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - CancelCustomJobRequest.prototype.name = ""; + ListNasJobsRequest.prototype.parent = ""; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * ListNasJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @instance + */ + ListNasJobsRequest.prototype.filter = ""; + + /** + * ListNasJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @instance + */ + ListNasJobsRequest.prototype.pageSize = 0; + + /** + * ListNasJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @instance + */ + ListNasJobsRequest.prototype.pageToken = ""; + + /** + * ListNasJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @instance + */ + ListNasJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListNasJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest instance */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); + ListNasJobsRequest.create = function create(properties) { + return new ListNasJobsRequest(properties); }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encode = function encode(message, writer) { + ListNasJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decode = function decode(reader, length) { + ListNasJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -89305,123 +107205,162 @@ }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelCustomJobRequest message. + * Verifies a ListNasJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelCustomJobRequest.verify = function verify(message) { + ListNasJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelCustomJobRequest) + ListNasJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.CancelCustomJobRequest} message CancelCustomJobRequest + * @param {google.cloud.aiplatform.v1.ListNasJobsRequest} message ListNasJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelCustomJobRequest.toObject = function toObject(message, options) { + ListNasJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CancelCustomJobRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance * @returns {Object.} JSON object */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { + ListNasJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelCustomJobRequest + * Gets the default type url for ListNasJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsRequest"; }; - return CancelCustomJobRequest; + return ListNasJobsRequest; })(); - v1.CreateDataLabelingJobRequest = (function() { + v1.ListNasJobsResponse = (function() { /** - * Properties of a CreateDataLabelingJobRequest. + * Properties of a ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob + * @interface IListNasJobsResponse + * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs + * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken */ /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest + * @classdesc Represents a ListNasJobsResponse. + * @implements IListNasJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set */ - function CreateDataLabelingJobRequest(properties) { + function ListNasJobsResponse(properties) { + this.nasJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89429,89 +107368,92 @@ } /** - * CreateDataLabelingJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * ListNasJobsResponse nasJobs. + * @member {Array.} nasJobs + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - CreateDataLabelingJobRequest.prototype.parent = ""; + ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * ListNasJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + ListNasJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse instance */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); + ListNasJobsResponse.create = function create(properties) { + return new ListNasJobsResponse(properties); }; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataLabelingJobRequest.encode = function encode(message, writer) { + ListNasJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) - $root.google.cloud.aiplatform.v1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nasJobs != null && message.nasJobs.length) + for (var i = 0; i < message.nasJobs.length; ++i) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataLabelingJobRequest.decode = function decode(reader, length) { + ListNasJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.nasJobs && message.nasJobs.length)) + message.nasJobs = []; + message.nasJobs.push($root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32())); break; } case 2: { - message.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -89523,136 +107465,148 @@ }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDataLabelingJobRequest message. + * Verifies a ListNasJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDataLabelingJobRequest.verify = function verify(message) { + ListNasJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { - var error = $root.google.cloud.aiplatform.v1.DataLabelingJob.verify(message.dataLabelingJob); - if (error) - return "dataLabelingJob." + error; + if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { + if (!Array.isArray(message.nasJobs)) + return "nasJobs: array expected"; + for (var i = 0; i < message.nasJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJobs[i]); + if (error) + return "nasJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest) + ListNasJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataLabelingJob != null) { - if (typeof object.dataLabelingJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); - message.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.fromObject(object.dataLabelingJob); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); + if (object.nasJobs) { + if (!Array.isArray(object.nasJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: array expected"); + message.nasJobs = []; + for (var i = 0; i < object.nasJobs.length; ++i) { + if (typeof object.nasJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: object expected"); + message.nasJobs[i] = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} message ListNasJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + ListNasJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataLabelingJob = null; + if (options.arrays || options.defaults) + object.nasJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.nasJobs && message.nasJobs.length) { + object.nasJobs = []; + for (var j = 0; j < message.nasJobs.length; ++j) + object.nasJobs[j] = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJobs[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) - object.dataLabelingJob = $root.google.cloud.aiplatform.v1.DataLabelingJob.toObject(message.dataLabelingJob, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this ListNasJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance * @returns {Object.} JSON object */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ListNasJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for ListNasJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsResponse"; }; - return CreateDataLabelingJobRequest; + return ListNasJobsResponse; })(); - v1.GetDataLabelingJobRequest = (function() { + v1.DeleteNasJobRequest = (function() { /** - * Properties of a GetDataLabelingJobRequest. + * Properties of a DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * @interface IDeleteNasJobRequest + * @property {string|null} [name] DeleteNasJobRequest name */ /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest + * @classdesc Represents a DeleteNasJobRequest. + * @implements IDeleteNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set */ - function GetDataLabelingJobRequest(properties) { + function DeleteNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89660,35 +107614,35 @@ } /** - * GetDataLabelingJobRequest name. + * DeleteNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance */ - GetDataLabelingJobRequest.prototype.name = ""; + DeleteNasJobRequest.prototype.name = ""; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest instance */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); + DeleteNasJobRequest.create = function create(properties) { + return new DeleteNasJobRequest(properties); }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encode = function encode(message, writer) { + DeleteNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -89697,33 +107651,33 @@ }; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { + DeleteNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -89740,30 +107694,30 @@ }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a DeleteNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataLabelingJobRequest.verify = function verify(message) { + DeleteNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -89773,32 +107727,32 @@ }; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest) + DeleteNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1.DeleteNasJobRequest} message DeleteNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { + DeleteNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -89810,57 +107764,52 @@ }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance * @returns {Object.} JSON object */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + DeleteNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for DeleteNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteNasJobRequest"; }; - return GetDataLabelingJobRequest; + return DeleteNasJobRequest; })(); - v1.ListDataLabelingJobsRequest = (function() { + v1.CancelNasJobRequest = (function() { /** - * Properties of a ListDataLabelingJobsRequest. + * Properties of a CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListDataLabelingJobsRequest - * @property {string|null} [parent] ListDataLabelingJobsRequest parent - * @property {string|null} [filter] ListDataLabelingJobsRequest filter - * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize - * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask - * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy + * @interface ICancelNasJobRequest + * @property {string|null} [name] CancelNasJobRequest name */ /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest + * @classdesc Represents a CancelNasJobRequest. + * @implements ICancelNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set */ - function ListDataLabelingJobsRequest(properties) { + function CancelNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89868,145 +107817,75 @@ } /** - * ListDataLabelingJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.parent = ""; - - /** - * ListDataLabelingJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.filter = ""; - - /** - * ListDataLabelingJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.pageSize = 0; - - /** - * ListDataLabelingJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; - - /** - * ListDataLabelingJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.readMask = null; - - /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * CancelNasJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; + CancelNasJobRequest.prototype.name = ""; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest instance */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); + CancelNasJobRequest.create = function create(properties) { + return new CancelNasJobRequest(properties); }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { + CancelNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { + CancelNasJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 6: { - message.orderBy = reader.string(); + message.name = reader.string(); break; } default: @@ -90018,170 +107897,122 @@ }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a CancelNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsRequest.verify = function verify(message) { + CancelNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest) + CancelNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {google.cloud.aiplatform.v1.CancelNasJobRequest} message CancelNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + CancelNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + CancelNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for CancelNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListDataLabelingJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelNasJobRequest"; }; - return ListDataLabelingJobsRequest; + return CancelNasJobRequest; })(); - v1.ListDataLabelingJobsResponse = (function() { + v1.GetNasTrialDetailRequest = (function() { /** - * Properties of a ListDataLabelingJobsResponse. + * Properties of a GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * @interface IGetNasTrialDetailRequest + * @property {string|null} [name] GetNasTrialDetailRequest name */ /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse + * @classdesc Represents a GetNasTrialDetailRequest. + * @implements IGetNasTrialDetailRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; + function GetNasTrialDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90189,92 +108020,75 @@ } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse - * @instance - */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; - - /** - * ListDataLabelingJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * GetNasTrialDetailRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + GetNasTrialDetailRequest.prototype.name = ""; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); + GetNasTrialDetailRequest.create = function create(properties) { + return new GetNasTrialDetailRequest(properties); }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { + GetNasTrialDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) - for (var i = 0; i < message.dataLabelingJobs.length; ++i) - $root.google.cloud.aiplatform.v1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decode = function decode(reader, length) { + GetNasTrialDetailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1.DataLabelingJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -90286,148 +108100,124 @@ }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { + GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a GetNasTrialDetailRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsResponse.verify = function verify(message) { + GetNasTrialDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { - if (!Array.isArray(message.dataLabelingJobs)) - return "dataLabelingJobs: array expected"; - for (var i = 0; i < message.dataLabelingJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.DataLabelingJob.verify(message.dataLabelingJobs[i]); - if (error) - return "dataLabelingJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse) + GetNasTrialDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListDataLabelingJobsResponse(); - if (object.dataLabelingJobs) { - if (!Array.isArray(object.dataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); - message.dataLabelingJobs = []; - for (var i = 0; i < object.dataLabelingJobs.length; ++i) { - if (typeof object.dataLabelingJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); - message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + GetNasTrialDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.dataLabelingJobs && message.dataLabelingJobs.length) { - object.dataLabelingJobs = []; - for (var j = 0; j < message.dataLabelingJobs.length; ++j) - object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for GetNasTrialDetailRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListDataLabelingJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasTrialDetailRequest"; }; - return ListDataLabelingJobsResponse; + return GetNasTrialDetailRequest; })(); - v1.DeleteDataLabelingJobRequest = (function() { + v1.ListNasTrialDetailsRequest = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface IListNasTrialDetailsRequest + * @property {string|null} [parent] ListNasTrialDetailsRequest parent + * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize + * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a ListNasTrialDetailsRequest. + * @implements IListNasTrialDetailsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function ListNasTrialDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90435,75 +108225,103 @@ } /** - * DeleteDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * ListNasTrialDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + ListNasTrialDetailsRequest.prototype.parent = ""; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * ListNasTrialDetailsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @instance + */ + ListNasTrialDetailsRequest.prototype.pageSize = 0; + + /** + * ListNasTrialDetailsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @instance + */ + ListNasTrialDetailsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + ListNasTrialDetailsRequest.create = function create(properties) { + return new ListNasTrialDetailsRequest(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + ListNasTrialDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + ListNasTrialDetailsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -90515,122 +108333,141 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + ListNasTrialDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest) + ListNasTrialDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsRequest"; }; - return DeleteDataLabelingJobRequest; + return ListNasTrialDetailsRequest; })(); - v1.CancelDataLabelingJobRequest = (function() { + v1.ListNasTrialDetailsResponse = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @interface IListNasTrialDetailsResponse + * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails + * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken */ /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a ListNasTrialDetailsResponse. + * @implements IListNasTrialDetailsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(properties) { + function ListNasTrialDetailsResponse(properties) { + this.nasTrialDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90638,75 +108475,92 @@ } /** - * CancelDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * ListNasTrialDetailsResponse nasTrialDetails. + * @member {Array.} nasTrialDetails + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * ListNasTrialDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + */ + ListNasTrialDetailsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + ListNasTrialDetailsResponse.create = function create(properties) { + return new ListNasTrialDetailsResponse(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + ListNasTrialDetailsResponse.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.nasTrialDetails != null && message.nasTrialDetails.length) + for (var i = 0; i < message.nasTrialDetails.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decode = function decode(reader, length) { + ListNasTrialDetailsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.nasTrialDetails && message.nasTrialDetails.length)) + message.nasTrialDetails = []; + message.nasTrialDetails.push($root.google.cloud.aiplatform.v1.NasTrialDetail.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -90718,123 +108572,149 @@ }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDataLabelingJobRequest.verify = function verify(message) { + ListNasTrialDetailsResponse.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.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { + if (!Array.isArray(message.nasTrialDetails)) + return "nasTrialDetails: array expected"; + for (var i = 0; i < message.nasTrialDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrialDetail.verify(message.nasTrialDetails[i]); + if (error) + return "nasTrialDetails." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest) + ListNasTrialDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); + if (object.nasTrialDetails) { + if (!Array.isArray(object.nasTrialDetails)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); + message.nasTrialDetails = []; + for (var i = 0; i < object.nasTrialDetails.length; ++i) { + if (typeof object.nasTrialDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); + message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.nasTrialDetails = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.nasTrialDetails && message.nasTrialDetails.length) { + object.nasTrialDetails = []; + for (var j = 0; j < message.nasTrialDetails.length; ++j) + object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsResponse"; }; - return CancelDataLabelingJobRequest; + return ListNasTrialDetailsResponse; })(); - v1.CreateHyperparameterTuningJobRequest = (function() { + v1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90842,80 +108722,80 @@ } /** - * CreateHyperparameterTuningJobRequest parent. + * CreateBatchPredictionJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) - $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -90924,7 +108804,7 @@ break; } case 2: { - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.decode(reader, reader.uint32()); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); break; } default: @@ -90936,136 +108816,136 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + CreateBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { - var error = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); if (error) - return "hyperparameterTuningJob." + error; + return "batchPredictionJob." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hyperparameterTuningJob != null) { - if (typeof object.hyperparameterTuningJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hyperparameterTuningJob = null; + object.batchPredictionJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) - object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; }; - return CreateHyperparameterTuningJobRequest; + return CreateBatchPredictionJobRequest; })(); - v1.GetHyperparameterTuningJobRequest = (function() { + v1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a GetHyperparameterTuningJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function GetHyperparameterTuningJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91073,35 +108953,35 @@ } /** - * GetHyperparameterTuningJobRequest name. + * GetBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -91110,33 +108990,33 @@ }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -91153,30 +109033,30 @@ }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHyperparameterTuningJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -91186,32 +109066,32 @@ }; /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -91223,56 +109103,56 @@ }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; }; - return GetHyperparameterTuningJobRequest; + return GetBatchPredictionJobRequest; })(); - v1.ListHyperparameterTuningJobsRequest = (function() { + v1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListHyperparameterTuningJobsRequest - * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent - * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter - * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize - * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91280,67 +109160,67 @@ } /** - * ListHyperparameterTuningJobsRequest parent. + * ListBatchPredictionJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * ListHyperparameterTuningJobsRequest filter. + * ListBatchPredictionJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * ListHyperparameterTuningJobsRequest pageSize. + * ListBatchPredictionJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; + ListBatchPredictionJobsRequest.prototype.pageSize = 0; /** - * ListHyperparameterTuningJobsRequest pageToken. + * ListBatchPredictionJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; + ListBatchPredictionJobsRequest.prototype.pageToken = ""; /** - * ListHyperparameterTuningJobsRequest readMask. + * ListBatchPredictionJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + ListBatchPredictionJobsRequest.prototype.readMask = null; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -91357,33 +109237,33 @@ }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -91416,30 +109296,30 @@ }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -91463,17 +109343,17 @@ }; /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -91484,22 +109364,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -91524,54 +109404,54 @@ }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; }; - return ListHyperparameterTuningJobsRequest; + return ListBatchPredictionJobsRequest; })(); - v1.ListHyperparameterTuningJobsResponse = (function() { + v1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a ListHyperparameterTuningJobsResponse. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91579,88 +109459,88 @@ } /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * ListHyperparameterTuningJobsResponse nextPageToken. + * ListBatchPredictionJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) - $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) - message.hyperparameterTuningJobs = []; - message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1.HyperparameterTuningJob.decode(reader, reader.uint32())); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); break; } case 2: { @@ -91676,39 +109556,39 @@ }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsResponse.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { - if (!Array.isArray(message.hyperparameterTuningJobs)) - return "hyperparameterTuningJobs: array expected"; - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); if (error) - return "hyperparameterTuningJobs." + error; + return "batchPredictionJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -91718,25 +109598,25 @@ }; /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse(); - if (object.hyperparameterTuningJobs) { - if (!Array.isArray(object.hyperparameterTuningJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); - message.hyperparameterTuningJobs = []; - for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { - if (typeof object.hyperparameterTuningJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); - message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); } } if (object.nextPageToken != null) @@ -91745,26 +109625,26 @@ }; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.hyperparameterTuningJobs = []; + object.batchPredictionJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { - object.hyperparameterTuningJobs = []; - for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) - object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -91772,255 +109652,52 @@ }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse - * @instance - * @returns {Object.} JSON object - */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListHyperparameterTuningJobsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse"; - }; - - return ListHyperparameterTuningJobsResponse; - })(); - - v1.DeleteHyperparameterTuningJobRequest = (function() { - - /** - * Properties of a DeleteHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name - */ - - /** - * Constructs a new DeleteHyperparameterTuningJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - */ - function DeleteHyperparameterTuningJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @instance - */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; - - /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance - */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); - }; - - /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteHyperparameterTuningJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteHyperparameterTuningJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest - */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; }; - return DeleteHyperparameterTuningJobRequest; + return ListBatchPredictionJobsResponse; })(); - v1.CancelHyperparameterTuningJobRequest = (function() { + v1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a CancelHyperparameterTuningJobRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function CancelHyperparameterTuningJobRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92028,35 +109705,35 @@ } /** - * CancelHyperparameterTuningJobRequest name. + * DeleteBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -92065,33 +109742,33 @@ }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -92108,354 +109785,122 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CancelHyperparameterTuningJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { - 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 CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest - */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @static - * @param {google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @instance - * @returns {Object.} JSON object - */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CancelHyperparameterTuningJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest"; - }; - - return CancelHyperparameterTuningJobRequest; - })(); - - v1.CreateNasJobRequest = (function() { - - /** - * Properties of a CreateNasJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateNasJobRequest - * @property {string|null} [parent] CreateNasJobRequest parent - * @property {google.cloud.aiplatform.v1.INasJob|null} [nasJob] CreateNasJobRequest nasJob - */ - - /** - * Constructs a new CreateNasJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateNasJobRequest. - * @implements ICreateNasJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set - */ - function CreateNasJobRequest(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]]; - } - - /** - * CreateNasJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @instance - */ - CreateNasJobRequest.prototype.parent = ""; - - /** - * CreateNasJobRequest nasJob. - * @member {google.cloud.aiplatform.v1.INasJob|null|undefined} nasJob - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @instance - */ - CreateNasJobRequest.prototype.nasJob = null; - - /** - * Creates a new CreateNasJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest instance - */ - CreateNasJobRequest.create = function create(properties) { - return new CreateNasJobRequest(properties); - }; - - /** - * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateNasJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) - $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateNasJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateNasJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNasJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNasJobRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.nasJob != null && message.hasOwnProperty("nasJob")) { - var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJob); - if (error) - return "nasJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - CreateNasJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateNasJobRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.nasJob != null) { - if (typeof object.nasJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateNasJobRequest.nasJob: object expected"); - message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJob); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.CreateNasJobRequest} message CreateNasJobRequest + * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNasJobRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.nasJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.nasJob != null && message.hasOwnProperty("nasJob")) - object.nasJob = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateNasJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CreateNasJobRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateNasJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateNasJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; }; - return CreateNasJobRequest; + return DeleteBatchPredictionJobRequest; })(); - v1.GetNasJobRequest = (function() { + v1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a GetNasJobRequest. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetNasJobRequest - * @property {string|null} [name] GetNasJobRequest name + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new GetNasJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetNasJobRequest. - * @implements IGetNasJobRequest + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function GetNasJobRequest(properties) { + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92463,35 +109908,35 @@ } /** - * GetNasJobRequest name. + * CancelBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance */ - GetNasJobRequest.prototype.name = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new GetNasJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - GetNasJobRequest.create = function create(properties) { - return new GetNasJobRequest(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNasJobRequest.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -92500,33 +109945,33 @@ }; /** - * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNasJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNasJobRequest.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -92543,30 +109988,30 @@ }; /** - * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNasJobRequest message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNasJobRequest.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -92576,32 +110021,32 @@ }; /** - * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - GetNasJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetNasJobRequest) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetNasJobRequest} message GetNasJobRequest + * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNasJobRequest.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -92613,56 +110058,53 @@ }; /** - * Converts this GetNasJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - GetNasJobRequest.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNasJobRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetNasJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; }; - return GetNasJobRequest; + return CancelBatchPredictionJobRequest; })(); - v1.ListNasJobsRequest = (function() { + v1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListNasJobsRequest. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListNasJobsRequest - * @property {string|null} [parent] ListNasJobsRequest parent - * @property {string|null} [filter] ListNasJobsRequest filter - * @property {number|null} [pageSize] ListNasJobsRequest pageSize - * @property {string|null} [pageToken] ListNasJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * Constructs a new ListNasJobsRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListNasJobsRequest. - * @implements IListNasJobsRequest + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListNasJobsRequest(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92670,110 +110112,80 @@ } /** - * ListNasJobsRequest parent. + * CreateModelDeploymentMonitoringJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest - * @instance - */ - ListNasJobsRequest.prototype.parent = ""; - - /** - * ListNasJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest - * @instance - */ - ListNasJobsRequest.prototype.filter = ""; - - /** - * ListNasJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest - * @instance - */ - ListNasJobsRequest.prototype.pageSize = 0; - - /** - * ListNasJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance */ - ListNasJobsRequest.prototype.pageToken = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * ListNasJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance */ - ListNasJobsRequest.prototype.readMask = null; + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new ListNasJobsRequest instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - ListNasJobsRequest.create = function create(properties) { - return new ListNasJobsRequest(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasJobsRequest.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNasJobsRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasJobsRequest.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -92782,19 +110194,7 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -92806,162 +110206,144 @@ }; /** - * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNasJobsRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNasJobsRequest.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "readMask." + error; + return "modelDeploymentMonitoringJob." + error; } return null; }; /** - * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - ListNasJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsRequest) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); } return message; }; /** - * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListNasJobsRequest} message ListNasJobsRequest + * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNasJobsRequest.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.modelDeploymentMonitoringJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this ListNasJobsRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListNasJobsRequest.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNasJobsRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; }; - return ListNasJobsRequest; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1.ListNasJobsResponse = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a ListNasJobsResponse. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListNasJobsResponse - * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs - * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new ListNasJobsResponse. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListNasJobsResponse. - * @implements IListNasJobsResponse + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function ListNasJobsResponse(properties) { - this.nasJobs = []; + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92969,92 +110351,176 @@ } /** - * ListNasJobsResponse nasJobs. - * @member {Array.} nasJobs - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * ListNasJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ListNasJobsResponse.prototype.nextPageToken = ""; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; /** - * Creates a new ListNasJobsResponse instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - ListNasJobsResponse.create = function create(properties) { - return new ListNasJobsResponse(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasJobsResponse.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nasJobs != null && message.nasJobs.length) - for (var i = 0; i < message.nasJobs.length; ++i) - $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNasJobsResponse message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasJobsResponse.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nasJobs && message.nasJobs.length)) - message.nasJobs = []; - message.nasJobs.push($root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32())); + message.modelDeploymentMonitoringJob = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -93066,351 +110532,470 @@ }; /** - * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNasJobsResponse message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNasJobsResponse.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { - if (!Array.isArray(message.nasJobs)) - return "nasJobs: array expected"; - for (var i = 0; i < message.nasJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJobs[i]); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); if (error) - return "nasJobs." + error; + return "objectives." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - ListNasJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsResponse) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); - if (object.nasJobs) { - if (!Array.isArray(object.nasJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: array expected"); - message.nasJobs = []; - for (var i = 0; i < object.nasJobs.length; ++i) { - if (typeof object.nasJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: object expected"); - message.nasJobs[i] = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} message ListNasJobsResponse + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNasJobsResponse.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.nasJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.nasJobs && message.nasJobs.length) { - object.nasJobs = []; - for (var j = 0; j < message.nasJobs.length; ++j) - object.nasJobs[j] = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJobs[j], options); + object.objectives = []; + if (options.defaults) { + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ListNasJobsResponse to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - ListNasJobsResponse.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNasJobsResponse + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; }; - return ListNasJobsResponse; - })(); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - v1.DeleteNasJobRequest = (function() { + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ - /** - * Properties of a DeleteNasJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteNasJobRequest - * @property {string|null} [name] DeleteNasJobRequest name - */ + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeleteNasJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteNasJobRequest. - * @implements IDeleteNasJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set - */ - function DeleteNasJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; - /** - * DeleteNasJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @instance - */ - DeleteNasJobRequest.prototype.name = ""; + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; - /** - * Creates a new DeleteNasJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest instance - */ - DeleteNasJobRequest.create = function create(properties) { - return new DeleteNasJobRequest(properties); - }; + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; - /** - * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteNasJobRequest.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 StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; - /** - * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DeleteNasJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteNasJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeleteNasJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteNasJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; - /** - * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest - */ - DeleteNasJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteNasJobRequest) + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteNasJobRequest} message DeleteNasJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteNasJobRequest.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 StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DeleteNasJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteNasJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; - /** - * Gets the default type url for DeleteNasJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteNasJobRequest"; - }; + return StatsAnomaliesObjective; + })(); - return DeleteNasJobRequest; + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1.CancelNasJobRequest = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of a CancelNasJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelNasJobRequest - * @property {string|null} [name] CancelNasJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new CancelNasJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelNasJobRequest. - * @implements ICancelNasJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function CancelNasJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93418,75 +111003,92 @@ } /** - * CancelNasJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - CancelNasJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * Creates a new CancelNasJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - CancelNasJobRequest.create = function create(properties) { - return new CancelNasJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelNasJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelNasJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelNasJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -93498,122 +111100,148 @@ }; /** - * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelNasJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelNasJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - CancelNasJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelNasJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.CancelNasJobRequest} message CancelNasJobRequest + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelNasJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.monitoringStats = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CancelNasJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - CancelNasJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelNasJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelNasJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return CancelNasJobRequest; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1.GetNasTrialDetailRequest = (function() { + v1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a GetNasTrialDetailRequest. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetNasTrialDetailRequest - * @property {string|null} [name] GetNasTrialDetailRequest name + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new GetNasTrialDetailRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetNasTrialDetailRequest. - * @implements IGetNasTrialDetailRequest + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function GetNasTrialDetailRequest(properties) { + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93621,35 +111249,35 @@ } /** - * GetNasTrialDetailRequest name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance */ - GetNasTrialDetailRequest.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new GetNasTrialDetailRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - GetNasTrialDetailRequest.create = function create(properties) { - return new GetNasTrialDetailRequest(properties); + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNasTrialDetailRequest.encode = function encode(message, writer) { + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -93658,33 +111286,33 @@ }; /** - * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNasTrialDetailRequest.decode = function decode(reader, length) { + GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -93701,30 +111329,30 @@ }; /** - * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNasTrialDetailRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNasTrialDetailRequest.verify = function verify(message) { + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -93734,32 +111362,32 @@ }; /** - * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - GetNasTrialDetailRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest) + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest + * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNasTrialDetailRequest.toObject = function toObject(message, options) { + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -93771,54 +111399,56 @@ }; /** - * Converts this GetNasTrialDetailRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetNasTrialDetailRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasTrialDetailRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; }; - return GetNasTrialDetailRequest; + return GetModelDeploymentMonitoringJobRequest; })(); - v1.ListNasTrialDetailsRequest = (function() { + v1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * Properties of a ListNasTrialDetailsRequest. + * Properties of a ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListNasTrialDetailsRequest - * @property {string|null} [parent] ListNasTrialDetailsRequest parent - * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize - * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ /** - * Constructs a new ListNasTrialDetailsRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListNasTrialDetailsRequest. - * @implements IListNasTrialDetailsRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - function ListNasTrialDetailsRequest(properties) { + function ListModelDeploymentMonitoringJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93826,90 +111456,110 @@ } /** - * ListNasTrialDetailsRequest parent. + * ListModelDeploymentMonitoringJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListNasTrialDetailsRequest.prototype.parent = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * ListNasTrialDetailsRequest pageSize. + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListNasTrialDetailsRequest.prototype.pageSize = 0; + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; /** - * ListNasTrialDetailsRequest pageToken. + * ListModelDeploymentMonitoringJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListNasTrialDetailsRequest.prototype.pageToken = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; /** - * Creates a new ListNasTrialDetailsRequest instance using the specified properties. + * ListModelDeploymentMonitoringJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ListNasTrialDetailsRequest.create = function create(properties) { - return new ListNasTrialDetailsRequest(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasTrialDetailsRequest.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) 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 2, wireType 0 =*/16).int32(message.pageSize); + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasTrialDetailsRequest.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -93918,13 +111568,21 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.filter = reader.string(); break; } case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { message.pageToken = reader.string(); break; } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -93934,141 +111592,162 @@ }; /** - * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNasTrialDetailsRequest message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNasTrialDetailsRequest.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ListNasTrialDetailsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); if (object.parent != null) message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; /** - * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNasTrialDetailsRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; + object.filter = ""; object.pageSize = 0; object.pageToken = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListNasTrialDetailsRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListNasTrialDetailsRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; }; - return ListNasTrialDetailsRequest; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1.ListNasTrialDetailsResponse = (function() { + v1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of a ListNasTrialDetailsResponse. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListNasTrialDetailsResponse - * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails - * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new ListNasTrialDetailsResponse. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListNasTrialDetailsResponse. - * @implements IListNasTrialDetailsResponse + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function ListNasTrialDetailsResponse(properties) { - this.nasTrialDetails = []; + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94076,88 +111755,88 @@ } /** - * ListNasTrialDetailsResponse nasTrialDetails. - * @member {Array.} nasTrialDetails - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ListNasTrialDetailsResponse nextPageToken. + * ListModelDeploymentMonitoringJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListNasTrialDetailsResponse.prototype.nextPageToken = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListNasTrialDetailsResponse instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ListNasTrialDetailsResponse.create = function create(properties) { - return new ListNasTrialDetailsResponse(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasTrialDetailsResponse.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nasTrialDetails != null && message.nasTrialDetails.length) - for (var i = 0; i < message.nasTrialDetails.length; ++i) - $root.google.cloud.aiplatform.v1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasTrialDetailsResponse.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.nasTrialDetails && message.nasTrialDetails.length)) - message.nasTrialDetails = []; - message.nasTrialDetails.push($root.google.cloud.aiplatform.v1.NasTrialDetail.decode(reader, reader.uint32())); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; } case 2: { @@ -94173,39 +111852,39 @@ }; /** - * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNasTrialDetailsResponse message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNasTrialDetailsResponse.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { - if (!Array.isArray(message.nasTrialDetails)) - return "nasTrialDetails: array expected"; - for (var i = 0; i < message.nasTrialDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NasTrialDetail.verify(message.nasTrialDetails[i]); + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); if (error) - return "nasTrialDetails." + error; + return "modelDeploymentMonitoringJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -94215,25 +111894,25 @@ }; /** - * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ListNasTrialDetailsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); - if (object.nasTrialDetails) { - if (!Array.isArray(object.nasTrialDetails)) - throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); - message.nasTrialDetails = []; - for (var i = 0; i < object.nasTrialDetails.length; ++i) { - if (typeof object.nasTrialDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); - message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); } } if (object.nextPageToken != null) @@ -94242,26 +111921,26 @@ }; /** - * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNasTrialDetailsResponse.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.nasTrialDetails = []; + object.modelDeploymentMonitoringJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.nasTrialDetails && message.nasTrialDetails.length) { - object.nasTrialDetails = []; - for (var j = 0; j < message.nasTrialDetails.length; ++j) - object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -94269,284 +111948,53 @@ }; /** - * Converts this ListNasTrialDetailsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse - * @instance - * @returns {Object.} JSON object - */ - ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListNasTrialDetailsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsResponse"; - }; - - return ListNasTrialDetailsResponse; - })(); - - v1.CreateBatchPredictionJobRequest = (function() { - - /** - * Properties of a CreateBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob - */ - - /** - * Constructs a new CreateBatchPredictionJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - */ - function CreateBatchPredictionJobRequest(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]]; - } - - /** - * CreateBatchPredictionJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @instance - */ - CreateBatchPredictionJobRequest.prototype.parent = ""; - - /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @instance - */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; - - /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance - */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); - }; - - /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateBatchPredictionJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateBatchPredictionJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); - if (error) - return "batchPredictionJob." + error; - } - return null; - }; - - /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest - */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); - } - return message; - }; - - /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest - * @static - * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.batchPredictionJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); - return object; - }; - - /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; }; - return CreateBatchPredictionJobRequest; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1.GetBatchPredictionJobRequest = (function() { + v1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94554,75 +112002,89 @@ } /** - * GetBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @instance + */ + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -94634,126 +112096,141 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; }; - return GetBatchPredictionJobRequest; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1.ListBatchPredictionJobsRequest = (function() { + v1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94761,131 +112238,75 @@ } /** - * ListBatchPredictionJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.parent = ""; - - /** - * ListBatchPredictionJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.filter = ""; - - /** - * ListBatchPredictionJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; - - /** - * ListBatchPredictionJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; - - /** - * ListBatchPredictionJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -94897,162 +112318,122 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; }; - return ListBatchPredictionJobsRequest; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1.ListBatchPredictionJobsResponse = (function() { + v1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95060,92 +112441,75 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse - * @instance - */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; - - /** - * ListBatchPredictionJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -95157,148 +112521,122 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); - if (error) - return "batchPredictionJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.batchPredictionJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; }; - return ListBatchPredictionJobsResponse; + return PauseModelDeploymentMonitoringJobRequest; })(); - v1.DeleteBatchPredictionJobRequest = (function() { + v1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function ResumeModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95306,35 +112644,35 @@ } /** - * DeleteBatchPredictionJobRequest name. + * ResumeModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -95343,33 +112681,33 @@ }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -95386,30 +112724,30 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -95419,32 +112757,32 @@ }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -95456,52 +112794,52 @@ }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1.CancelBatchPredictionJobRequest = (function() { + v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95509,75 +112847,75 @@ } /** - * CancelBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -95589,123 +112927,172 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - return CancelBatchPredictionJobRequest; + return UpdateModelDeploymentMonitoringJobOperationMetadata; })(); - v1.CreateModelDeploymentMonitoringJobRequest = (function() { + /** + * ModelDeploymentMonitoringObjectiveType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType + * @enum {number} + * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value + * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value + * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value + * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value + * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value + */ + v1.ModelDeploymentMonitoringObjectiveType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; + values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; + values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; + values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; + return values; + })(); + + v1.ModelDeploymentMonitoringJob = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IModelDeploymentMonitoringJob + * @property {string|null} [name] ModelDeploymentMonitoringJob name + * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName + * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint + * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata + * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy + * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig + * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri + * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance + * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri + * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables + * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl + * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels + * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime + * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec + * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs + * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new ModelDeploymentMonitoringJob. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob * @constructor - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function ModelDeploymentMonitoringJob(properties) { + this.modelDeploymentMonitoringObjectiveConfigs = []; + this.bigqueryTables = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95713,415 +113100,409 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * ModelDeploymentMonitoringJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; + ModelDeploymentMonitoringJob.prototype.name = ""; /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * ModelDeploymentMonitoringJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; - - /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance - */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); - }; + ModelDeploymentMonitoringJob.prototype.displayName = ""; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ModelDeploymentMonitoringJob endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + ModelDeploymentMonitoringJob.prototype.endpoint = ""; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ModelDeploymentMonitoringJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ModelDeploymentMonitoringJob.prototype.state = 0; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ModelDeploymentMonitoringJob scheduleState. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ModelDeploymentMonitoringJob.prototype.scheduleState = 0; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. + * @member {Array.} modelDeploymentMonitoringObjectiveConfigs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - return null; - }; + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - return message; - }; + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ModelDeploymentMonitoringJob loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - return object; - }; + ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance - * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * ModelDeploymentMonitoringJob predictInstanceSchemaUri. + * @member {string} predictInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; - }; + ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; - return CreateModelDeploymentMonitoringJobRequest; - })(); + /** + * ModelDeploymentMonitoringJob samplePredictInstance. + * @member {google.protobuf.IValue|null|undefined} samplePredictInstance + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; - v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + /** + * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime + * ModelDeploymentMonitoringJob bigqueryTables. + * @member {Array.} bigqueryTables + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ + ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * ModelDeploymentMonitoringJob logTtl. + * @member {google.protobuf.IDuration|null|undefined} logTtl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ModelDeploymentMonitoringJob.prototype.logTtl = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; + ModelDeploymentMonitoringJob.prototype.createTime = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + ModelDeploymentMonitoringJob.prototype.updateTime = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ModelDeploymentMonitoringJob.prototype.error = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ModelDeploymentMonitoringJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); + if (message.bigqueryTables != null && message.bigqueryTables.length) + for (var i = 0; i < message.bigqueryTables.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) + $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); + if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) + $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) + $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ModelDeploymentMonitoringJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); + message.name = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); + message.displayName = reader.string(); break; } case 3: { - message.featureDisplayName = reader.string(); + message.endpoint = reader.string(); break; } case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + message.state = reader.int32(); break; } case 5: { - message.pageSize = reader.int32(); + message.scheduleState = reader.int32(); + break; + } + case 25: { + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); break; } case 6: { - message.pageToken = reader.string(); + if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) + message.modelDeploymentMonitoringObjectiveConfigs = []; + message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); break; } case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); break; } case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + case 15: { + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.predictInstanceSchemaUri = reader.string(); + break; + } + case 19: { + message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 16: { + message.analysisInstanceSchemaUri = reader.string(); + break; + } + case 10: { + if (!(message.bigqueryTables && message.bigqueryTables.length)) + message.bigqueryTables = []; + message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); + break; + } + case 17: { + message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 20: { + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 21: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 22: { + message.enableMonitoringPipelineLogs = reader.bool(); + break; + } + case 23: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -96133,205 +113514,506 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ModelDeploymentMonitoringJob message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ModelDeploymentMonitoringJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + break; + } + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + switch (message.scheduleState) { + default: + return "scheduleState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); + if (error) + return "latestMonitoringPipelineMetadata." + error; + } + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { + if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) + return "modelDeploymentMonitoringObjectiveConfigs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); if (error) - return "objectives." + error; + return "modelDeploymentMonitoringObjectiveConfigs." + error; } } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); if (error) - return "startTime." + error; + return "modelDeploymentMonitoringScheduleConfig." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); if (error) - return "endTime." + error; + return "loggingSamplingStrategy." + error; + } + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); + if (error) + return "modelMonitoringAlertConfig." + error; + } + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + if (!$util.isString(message.predictInstanceSchemaUri)) + return "predictInstanceSchemaUri: string expected"; + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { + var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); + if (error) + return "samplePredictInstance." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { + if (!Array.isArray(message.bigqueryTables)) + return "bigqueryTables: array expected"; + for (var i = 0; i < message.bigqueryTables.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (error) + return "bigqueryTables." + error; + } + } + if (message.logTtl != null && message.hasOwnProperty("logTtl")) { + var error = $root.google.protobuf.Duration.verify(message.logTtl); + if (error) + return "logTtl." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); + if (error) + return "nextScheduleTime." + error; + } + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + if (typeof message.enableMonitoringPipelineLogs !== "boolean") + return "enableMonitoringPipelineLogs: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; } return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + case "JOB_STATE_PARTIALLY_SUCCEEDED": + case 11: + message.state = 11; + break; + } + switch (object.scheduleState) { + default: + if (typeof object.scheduleState === "number") { + message.scheduleState = object.scheduleState; + break; } + break; + case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + case 0: + message.scheduleState = 0; + break; + case "PENDING": + case 1: + message.scheduleState = 1; + break; + case "OFFLINE": + case 2: + message.scheduleState = 2; + break; + case "RUNNING": + case 3: + message.scheduleState = 3; + break; } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.modelDeploymentMonitoringObjectiveConfigs) { + if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); + message.modelDeploymentMonitoringObjectiveConfigs = []; + for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); + message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); + } + } + if (object.modelDeploymentMonitoringScheduleConfig != null) { + if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); + } + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + if (object.modelMonitoringAlertConfig != null) { + if (typeof object.modelMonitoringAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); + } + if (object.predictInstanceSchemaUri != null) + message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); + if (object.samplePredictInstance != null) { + if (typeof object.samplePredictInstance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); + message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.bigqueryTables) { + if (!Array.isArray(object.bigqueryTables)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); + message.bigqueryTables = []; + for (var i = 0; i < object.bigqueryTables.length; ++i) { + if (typeof object.bigqueryTables[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); + message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); + } + } + if (object.logTtl != null) { + if (typeof object.logTtl !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); + message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.nextScheduleTime != null) { + if (typeof object.nextScheduleTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); + message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + } + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableMonitoringPipelineLogs != null) + message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); } return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; + if (options.arrays || options.defaults) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + object.bigqueryTables = []; + } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; - object.pageSize = 0; - object.pageToken = ""; - object.startTime = null; - object.endTime = null; + object.name = ""; + object.displayName = ""; + object.endpoint = ""; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; + object.modelDeploymentMonitoringScheduleConfig = null; + object.loggingSamplingStrategy = null; + object.predictInstanceSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.nextScheduleTime = null; + object.modelMonitoringAlertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.logTtl = null; + object.samplePredictInstance = null; + object.statsAnomaliesBaseDirectory = null; + object.encryptionSpec = null; + object.enableMonitoringPipelineLogs = false; + object.error = null; + object.latestMonitoringPipelineMetadata = null; } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; + if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) + object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) + object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; + if (message.bigqueryTables && message.bigqueryTables.length) { + object.bigqueryTables = []; + for (var j = 0; j < message.bigqueryTables.length; ++j) + object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) + object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) + object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.logTtl != null && message.hasOwnProperty("logTtl")) + object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) + object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) + object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ModelDeploymentMonitoringJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status */ /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata * @constructor - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set */ - function StatsAnomaliesObjective(properties) { + function LatestMonitoringPipelineMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96339,89 +114021,89 @@ } /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - StatsAnomaliesObjective.prototype.type = 0; + LatestMonitoringPipelineMetadata.prototype.runTime = null; /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; + LatestMonitoringPipelineMetadata.prototype.status = null; /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); }; /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatsAnomaliesObjective.encode = function encode(message, writer) { + LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatsAnomaliesObjective.decode = function decode(reader, length) { + LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type = reader.int32(); + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - } - case 4: { - message.topFeatureCount = reader.int32(); + } + case 2: { + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -96433,170 +114115,164 @@ }; /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StatsAnomaliesObjective message. + * Verifies a LatestMonitoringPipelineMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatsAnomaliesObjective.verify = function verify(message) { + LatestMonitoringPipelineMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } return null; }; /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; - break; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; return message; }; /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; + object.runTime = null; + object.status = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this StatsAnomaliesObjective to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance * @returns {Object.} JSON object */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StatsAnomaliesObjective + * Gets the default type url for LatestMonitoringPipelineMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; }; - return StatsAnomaliesObjective; + return LatestMonitoringPipelineMetadata; })(); - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + /** + * MonitoringScheduleState enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * @enum {number} + * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OFFLINE=2 OFFLINE value + * @property {number} RUNNING=3 RUNNING value + */ + ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OFFLINE"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + return values; + })(); + + return ModelDeploymentMonitoringJob; })(); - v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1.ModelDeploymentMonitoringBigQueryTable = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of a ModelDeploymentMonitoringBigQueryTable. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface IModelDeploymentMonitoringBigQueryTable + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType + * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function ModelDeploymentMonitoringBigQueryTable(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96604,92 +114280,103 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); + if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + message.logSource = reader.int32(); break; } case 2: { - message.nextPageToken = reader.string(); + message.logType = reader.int32(); + break; + } + case 3: { + message.bigqueryTablePath = reader.string(); break; } default: @@ -96701,148 +114388,220 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ModelDeploymentMonitoringBigQueryTable message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; + if (message.logSource != null && message.hasOwnProperty("logSource")) + switch (message.logSource) { + default: + return "logSource: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + if (!$util.isString(message.bigqueryTablePath)) + return "bigqueryTablePath: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + switch (object.logSource) { + default: + if (typeof object.logSource === "number") { + message.logSource = object.logSource; + break; } + break; + case "LOG_SOURCE_UNSPECIFIED": + case 0: + message.logSource = 0; + break; + case "TRAINING": + case 1: + message.logSource = 1; + break; + case "SERVING": + case 2: + message.logSource = 2; + break; } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + switch (object.logType) { + default: + if (typeof object.logType === "number") { + message.logType = object.logType; + break; + } + break; + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "PREDICT": + case 1: + message.logType = 1; + break; + case "EXPLAIN": + case 2: + message.logType = 2; + break; + } + if (object.bigqueryTablePath != null) + message.bigqueryTablePath = String(object.bigqueryTablePath); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + if (options.defaults) { + object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + object.bigqueryTablePath = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.logSource != null && message.hasOwnProperty("logSource")) + object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + object.bigqueryTablePath = message.bigqueryTablePath; return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + /** + * LogSource enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource + * @enum {number} + * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value + * @property {number} TRAINING=1 TRAINING value + * @property {number} SERVING=2 SERVING value + */ + ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRAINING"] = 1; + values[valuesById[2] = "SERVING"] = 2; + return values; + })(); + + /** + * LogType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} PREDICT=1 PREDICT value + * @property {number} EXPLAIN=2 EXPLAIN value + */ + ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREDICT"] = 1; + values[valuesById[2] = "EXPLAIN"] = 2; + return values; + })(); + + return ModelDeploymentMonitoringBigQueryTable; })(); - v1.GetModelDeploymentMonitoringJobRequest = (function() { + v1.ModelDeploymentMonitoringObjectiveConfig = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function ModelDeploymentMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96850,75 +114609,89 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + + /** + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.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.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); + if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.deployedModelId = reader.string(); + break; + } + case 2: { + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); break; } default: @@ -96930,126 +114703,137 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ModelDeploymentMonitoringObjectiveConfig.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.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (error) + return "objectiveConfig." + error; + } return null; }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.objectiveConfig != null) { + if (typeof object.objectiveConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + } return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) + object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); return object; }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; }; - return GetModelDeploymentMonitoringJobRequest; + return ModelDeploymentMonitoringObjectiveConfig; })(); - v1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1.ModelDeploymentMonitoringScheduleConfig = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function ModelDeploymentMonitoringScheduleConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97057,131 +114841,89 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; - - /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -97193,162 +114935,145 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a ModelDeploymentMonitoringScheduleConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); if (error) - return "readMask." + error; + return "monitorInterval." + error; + } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; } return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + if (object.monitorInterval != null) { + if (typeof object.monitorInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); + message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.monitorInterval = null; + object.monitorWindow = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; }; - return ListModelDeploymentMonitoringJobsRequest; + return ModelDeploymentMonitoringScheduleConfig; })(); - v1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1.ModelMonitoringStatsAnomalies = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface IModelMonitoringStatsAnomalies + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective + * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId + * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount + * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function ModelMonitoringStatsAnomalies(properties) { + this.featureStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97356,92 +115081,120 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + ModelMonitoringStatsAnomalies.prototype.objective = 0; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * ModelMonitoringStatsAnomalies deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * ModelMonitoringStatsAnomalies anomalyCount. + * @member {number} anomalyCount + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + + /** + * ModelMonitoringStatsAnomalies featureStats. + * @member {Array.} featureStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); + if (message.featureStats != null && message.featureStats.length) + for (var i = 0; i < message.featureStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + message.objective = reader.int32(); break; } case 2: { - message.nextPageToken = reader.string(); + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.anomalyCount = reader.int32(); + break; + } + case 4: { + if (!(message.featureStats && message.featureStats.length)) + message.featureStats = []; + message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); break; } default: @@ -97453,149 +115206,507 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ModelMonitoringStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + ModelMonitoringStatsAnomalies.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + if (!$util.isInteger(message.anomalyCount)) + return "anomalyCount: integer expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + if (!Array.isArray(message.featureStats)) + return "featureStats: array expected"; + for (var i = 0; i < message.featureStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); if (error) - return "modelDeploymentMonitoringJobs." + error; + return "featureStats." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + switch (object.objective) { + default: + if (typeof object.objective === "number") { + message.objective = object.objective; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.objective = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.objective = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.objective = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.objective = 4; + break; + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.anomalyCount != null) + message.anomalyCount = object.anomalyCount | 0; + if (object.featureStats) { + if (!Array.isArray(object.featureStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); + message.featureStats = []; + for (var i = 0; i < object.featureStats.length; ++i) { + if (typeof object.featureStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); + message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + object.featureStats = []; + if (options.defaults) { + object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.deployedModelId = ""; + object.anomalyCount = 0; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + object.anomalyCount = message.anomalyCount; + if (message.featureStats && message.featureStats.length) { + object.featureStats = []; + for (var j = 0; j < message.featureStats.length; ++j) + object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ModelMonitoringStatsAnomalies * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; }; - return ListModelDeploymentMonitoringJobsResponse; + ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { + + /** + * Properties of a FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @interface IFeatureHistoricStatsAnomalies + * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold + * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats + * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats + */ + + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @classdesc Represents a FeatureHistoricStatsAnomalies. + * @implements IFeatureHistoricStatsAnomalies + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + */ + function FeatureHistoricStatsAnomalies(properties) { + this.predictionStats = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureHistoricStatsAnomalies featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; + + /** + * FeatureHistoricStatsAnomalies threshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.threshold = null; + + /** + * FeatureHistoricStatsAnomalies trainingStats. + * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + + /** + * FeatureHistoricStatsAnomalies predictionStats. + * @member {Array.} predictionStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance + */ + FeatureHistoricStatsAnomalies.create = function create(properties) { + return new FeatureHistoricStatsAnomalies(properties); + }; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.predictionStats != null && message.predictionStats.length) + for (var i = 0; i < message.predictionStats.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureDisplayName = reader.string(); + break; + } + case 3: { + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.predictionStats && message.predictionStats.length)) + message.predictionStats = []; + message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureHistoricStatsAnomalies message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureHistoricStatsAnomalies.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); + if (error) + return "threshold." + error; + } + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); + if (error) + return "trainingStats." + error; + } + if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { + if (!Array.isArray(message.predictionStats)) + return "predictionStats: array expected"; + for (var i = 0; i < message.predictionStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); + if (error) + return "predictionStats." + error; + } + } + return null; + }; + + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies + */ + FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.threshold != null) { + if (typeof object.threshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); + } + if (object.trainingStats != null) { + if (typeof object.trainingStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); + } + if (object.predictionStats) { + if (!Array.isArray(object.predictionStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); + message.predictionStats = []; + for (var i = 0; i < object.predictionStats.length; ++i) { + if (typeof object.predictionStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); + message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.predictionStats = []; + if (options.defaults) { + object.featureDisplayName = ""; + object.threshold = null; + object.trainingStats = null; + } + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) + object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); + if (message.predictionStats && message.predictionStats.length) { + object.predictionStats = []; + for (var j = 0; j < message.predictionStats.length; ++j) + object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); + } + return object; + }; + + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + * @returns {Object.} JSON object + */ + FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; + }; + + return FeatureHistoricStatsAnomalies; + })(); + + return ModelMonitoringStatsAnomalies; })(); - v1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1.ModelMonitoringObjectiveConfig = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask + * @interface IModelMonitoringObjectiveConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function ModelMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97603,89 +115714,117 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; + + /** + * ModelMonitoringObjectiveConfig explanationConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + + /** + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); break; } default: @@ -97697,1413 +115836,1894 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a ModelMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ModelMonitoringObjectiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); if (error) - return "modelDeploymentMonitoringJob." + error; + return "trainingDataset." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); if (error) - return "updateMask." + error; + return "trainingPredictionSkewDetectionConfig." + error; + } + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); + if (error) + return "predictionDriftDetectionConfig." + error; + } + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (error) + return "explanationConfig." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); + if (object.trainingDataset != null) { + if (typeof object.trainingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.trainingPredictionSkewDetectionConfig != null) { + if (typeof object.trainingPredictionSkewDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); + } + if (object.predictionDriftDetectionConfig != null) { + if (typeof object.predictionDriftDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); + } + if (object.explanationConfig != null) { + if (typeof object.explanationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = null; } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) + object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) + object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) + object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) + object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for ModelMonitoringObjectiveConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; }; - return UpdateModelDeploymentMonitoringJobRequest; - })(); + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { - v1.DeleteModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingDataset + * @property {string|null} [dataset] TrainingDataset dataset + * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource + * @property {string|null} [dataFormat] TrainingDataset dataFormat + * @property {string|null} [targetField] TrainingDataset targetField + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy + */ - /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name - */ + /** + * Constructs a new TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingDataset. + * @implements ITrainingDataset + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + */ + function TrainingDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function DeleteModelDeploymentMonitoringJobRequest(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]]; - } + /** + * TrainingDataset dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataset = null; - /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @instance - */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + /** + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.gcsSource = null; - /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance - */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); - }; + /** + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteModelDeploymentMonitoringJobRequest.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; - }; + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * TrainingDataset loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.loggingSamplingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TrainingDataset dataSource. + * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + Object.defineProperty(TrainingDataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance + */ + TrainingDataset.create = function create(properties) { + return new TrainingDataset(properties); + }; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.dataset = reader.string(); + break; + } + case 4: { + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.dataFormat = reader.string(); + break; + } + case 6: { + message.targetField = reader.string(); + break; + } + case 7: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingDataset message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.dataSource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + if (!$util.isString(message.dataFormat)) + return "dataFormat: string expected"; + if (message.targetField != null && message.hasOwnProperty("targetField")) + if (!$util.isString(message.targetField)) + return "targetField: string expected"; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; + } + return null; + }; + + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + */ + TrainingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.dataFormat != null) + message.dataFormat = String(object.dataFormat); + if (object.targetField != null) + message.targetField = String(object.targetField); + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + return message; + }; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingDataset.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataFormat = ""; + object.targetField = ""; + object.loggingSamplingStrategy = null; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = message.dataFormat; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.dataSource = "dataset"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.dataSource = "bigquerySource"; + } + if (message.targetField != null && message.hasOwnProperty("targetField")) + object.targetField = message.targetField; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + return object; + }; - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this TrainingDataset to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + * @returns {Object.} JSON object + */ + TrainingDataset.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteModelDeploymentMonitoringJobRequest.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; - }; + /** + * Gets the default type url for TrainingDataset + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; + }; - /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest - */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + return TrainingDataset; + })(); - /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteModelDeploymentMonitoringJobRequest.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; - }; + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { - /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold + */ - /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingPredictionSkewDetectionConfig. + * @implements ITrainingPredictionSkewDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + */ + function TrainingPredictionSkewDetectionConfig(properties) { + this.skewThresholds = {}; + this.attributionScoreSkewThresholds = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; - }; - return DeleteModelDeploymentMonitoringJobRequest; - })(); - - v1.PauseModelDeploymentMonitoringJobRequest = (function() { - - /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name - */ + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; - /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function PauseModelDeploymentMonitoringJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; - /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @instance - */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; - /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance - */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); - }; + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance + */ + TrainingPredictionSkewDetectionConfig.create = function create(properties) { + return new TrainingPredictionSkewDetectionConfig(properties); + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) + for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) + for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.skewThresholds === $util.emptyObject) + message.skewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.skewThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreSkewThresholds === $util.emptyObject) + message.attributionScoreSkewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreSkewThresholds[key] = value; + break; + } + case 6: { + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPredictionSkewDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { + if (!$util.isObject(message.skewThresholds)) + return "skewThresholds: object expected"; + var key = Object.keys(message.skewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); + if (error) + return "skewThresholds." + error; + } + } + if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { + if (!$util.isObject(message.attributionScoreSkewThresholds)) + return "attributionScoreSkewThresholds: object expected"; + var key = Object.keys(message.attributionScoreSkewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + if (error) + return "attributionScoreSkewThresholds." + error; + } + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } + return null; + }; - /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + */ + TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); + if (object.skewThresholds) { + if (typeof object.skewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds = {}; + for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.skewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + } + } + if (object.attributionScoreSkewThresholds) { + if (typeof object.attributionScoreSkewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds = {}; + for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); + } + } + if (object.defaultSkewThreshold != null) { + if (typeof object.defaultSkewThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + } + return message; + }; + + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.skewThresholds = {}; + object.attributionScoreSkewThresholds = {}; + } + if (options.defaults) + object.defaultSkewThreshold = null; + var keys2; + if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { + object.skewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + } + if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { + object.attributionScoreSkewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) + object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); return object; - var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; + }; - /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; - }; + return TrainingPredictionSkewDetectionConfig; + })(); - return PauseModelDeploymentMonitoringJobRequest; - })(); + ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { - v1.ResumeModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IPredictionDriftDetectionConfig + * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds + * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold + */ - /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name - */ + /** + * Constructs a new PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a PredictionDriftDetectionConfig. + * @implements IPredictionDriftDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + */ + function PredictionDriftDetectionConfig(properties) { + this.driftThresholds = {}; + this.attributionScoreDriftThresholds = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * PredictionDriftDetectionConfig driftThresholds. + * @member {Object.} driftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; - /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @instance - */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + /** + * PredictionDriftDetectionConfig attributionScoreDriftThresholds. + * @member {Object.} attributionScoreDriftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance - */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); - }; + /** + * PredictionDriftDetectionConfig defaultDriftThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance + */ + PredictionDriftDetectionConfig.create = function create(properties) { + return new PredictionDriftDetectionConfig(properties); + }; - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionDriftDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) + for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) + for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionDriftDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.driftThresholds === $util.emptyObject) + message.driftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.driftThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreDriftThresholds === $util.emptyObject) + message.attributionScoreDriftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreDriftThresholds[key] = value; + break; + } + case 5: { + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a PredictionDriftDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredictionDriftDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { + if (!$util.isObject(message.driftThresholds)) + return "driftThresholds: object expected"; + var key = Object.keys(message.driftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); + if (error) + return "driftThresholds." + error; + } + } + if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { + if (!$util.isObject(message.attributionScoreDriftThresholds)) + return "attributionScoreDriftThresholds: object expected"; + var key = Object.keys(message.attributionScoreDriftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); + if (error) + return "attributionScoreDriftThresholds." + error; + } + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); + if (error) + return "defaultDriftThreshold." + error; + } + return null; + }; + + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + */ + PredictionDriftDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); + if (object.driftThresholds) { + if (typeof object.driftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds = {}; + for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.driftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + } + } + if (object.attributionScoreDriftThresholds) { + if (typeof object.attributionScoreDriftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds = {}; + for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + } + } + if (object.defaultDriftThreshold != null) { + if (typeof object.defaultDriftThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + } + return message; + }; - /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PredictionDriftDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.driftThresholds = {}; + object.attributionScoreDriftThresholds = {}; + } + if (options.defaults) + object.defaultDriftThreshold = null; + var keys2; + if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { + object.driftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + } + if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { + object.attributionScoreDriftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) + object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); return object; - var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; + }; - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; - }; + return PredictionDriftDetectionConfig; + })(); - return ResumeModelDeploymentMonitoringJobRequest; - })(); + ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { - v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + /** + * Properties of an ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IExplanationConfig + * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + */ - /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata - */ + /** + * Constructs a new ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents an ExplanationConfig. + * @implements IExplanationConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + */ + function ExplanationConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ExplanationConfig enableFeatureAttributes. + * @member {boolean} enableFeatureAttributes + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.enableFeatureAttributes = false; - /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @instance - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + /** + * ExplanationConfig explanationBaseline. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.explanationBaseline = null; - /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); - }; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + */ + ExplanationConfig.create = function create(properties) { + return new ExplanationConfig(properties); + }; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); + if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enableFeatureAttributes = reader.bool(); + break; + } + case 2: { + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + /** + * Verifies an ExplanationConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + if (typeof message.enableFeatureAttributes !== "boolean") + return "enableFeatureAttributes: boolean expected"; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); + if (error) + return "explanationBaseline." + error; + } + return null; + }; - /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + */ + ExplanationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + if (object.enableFeatureAttributes != null) + message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); + if (object.explanationBaseline != null) { + if (typeof object.explanationBaseline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + } + return message; + }; - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enableFeatureAttributes = false; + object.explanationBaseline = null; + } + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + object.enableFeatureAttributes = message.enableFeatureAttributes; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) + object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); + return object; + }; - /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ExplanationConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + * @returns {Object.} JSON object + */ + ExplanationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; - }; + /** + * Gets the default type url for ExplanationConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; - })(); + ExplanationConfig.ExplanationBaseline = (function() { - /** - * ModelDeploymentMonitoringObjectiveType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType - * @enum {number} - * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value - * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value - * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value - * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value - * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value - */ - v1.ModelDeploymentMonitoringObjectiveType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; - values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; - values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; - values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; - return values; - })(); + /** + * Properties of an ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @interface IExplanationBaseline + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat + */ - v1.ModelDeploymentMonitoringJob = (function() { + /** + * Constructs a new ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @classdesc Represents an ExplanationBaseline. + * @implements IExplanationBaseline + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + */ + function ExplanationBaseline(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a ModelDeploymentMonitoringJob. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringJob - * @property {string|null} [name] ModelDeploymentMonitoringJob name - * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName - * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint - * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata - * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy - * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig - * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri - * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance - * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri - * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables - * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl - * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels - * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime - * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec - * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs - * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error - */ + /** + * ExplanationBaseline gcs. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.gcs = null; - /** - * Constructs a new ModelDeploymentMonitoringJob. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringJob. - * @implements IModelDeploymentMonitoringJob - * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set - */ - function ModelDeploymentMonitoringJob(properties) { - this.modelDeploymentMonitoringObjectiveConfigs = []; - this.bigqueryTables = []; - this.labels = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ExplanationBaseline bigquery. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.bigquery = null; - /** - * ModelDeploymentMonitoringJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.name = ""; + /** + * ExplanationBaseline predictionFormat. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.predictionFormat = 0; - /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; + /** + * ExplanationBaseline destination. + * @member {"gcs"|"bigquery"|undefined} destination + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + Object.defineProperty(ExplanationBaseline.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.state = 0; + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance + */ + ExplanationBaseline.create = function create(properties) { + return new ExplanationBaseline(properties); + }; - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 0; + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 3: { + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.predictionFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + /** + * Verifies an ExplanationBaseline message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationBaseline.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); + if (error) + return "gcs." + error; + } + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); + if (error) + return "bigquery." + error; + } + } + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + switch (message.predictionFormat) { + default: + return "predictionFormat: enum value expected"; + case 0: + case 2: + case 3: + break; + } + return null; + }; - /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + */ + ExplanationBaseline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); + } + if (object.bigquery != null) { + if (typeof object.bigquery !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); + } + switch (object.predictionFormat) { + default: + if (typeof object.predictionFormat === "number") { + message.predictionFormat = object.predictionFormat; + break; + } + break; + case "PREDICTION_FORMAT_UNSPECIFIED": + case 0: + message.predictionFormat = 0; + break; + case "JSONL": + case 2: + message.predictionFormat = 2; + break; + case "BIGQUERY": + case 3: + message.predictionFormat = 3; + break; + } + return message; + }; - /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationBaseline.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); + if (options.oneofs) + object.destination = "gcs"; + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); + if (options.oneofs) + object.destination = "bigquery"; + } + return object; + }; - /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; + /** + * Converts this ExplanationBaseline to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + * @returns {Object.} JSON object + */ + ExplanationBaseline.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + /** + * Gets the default type url for ExplanationBaseline + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; + }; - /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + /** + * PredictionFormat enum. + * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat + * @enum {number} + * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value + * @property {number} JSONL=2 JSONL value + * @property {number} BIGQUERY=3 BIGQUERY value + */ + ExplanationBaseline.PredictionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[2] = "JSONL"] = 2; + values[valuesById[3] = "BIGQUERY"] = 3; + return values; + })(); - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; + return ExplanationBaseline; + })(); - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + return ExplanationConfig; + })(); - /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.createTime = null; + return ModelMonitoringObjectiveConfig; + })(); + + v1.ModelMonitoringAlertConfig = (function() { /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Properties of a ModelMonitoringAlertConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelMonitoringAlertConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig + * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging + * @property {Array.|null} [notificationChannels] ModelMonitoringAlertConfig notificationChannels */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Constructs a new ModelMonitoringAlertConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelMonitoringAlertConfig. + * @implements IModelMonitoringAlertConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + function ModelMonitoringAlertConfig(properties) { + this.notificationChannels = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ModelMonitoringAlertConfig emailAlertConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ModelMonitoringAlertConfig enableLogging. + * @member {boolean} enableLogging + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + ModelMonitoringAlertConfig.prototype.enableLogging = false; /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ModelMonitoringAlertConfig notificationChannels. + * @member {Array.} notificationChannels + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + ModelMonitoringAlertConfig.prototype.notificationChannels = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ModelMonitoringAlertConfig alert. + * @member {"emailAlertConfig"|undefined} alert + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { + get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + ModelMonitoringAlertConfig.create = function create(properties) { + return new ModelMonitoringAlertConfig(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + ModelMonitoringAlertConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); - if (message.bigqueryTables != null && message.bigqueryTables.length) - for (var i = 0; i < message.bigqueryTables.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) - $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); - if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) - $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) - $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); + if (message.notificationChannels != null && message.notificationChannels.length) + for (var i = 0; i < message.notificationChannels.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.notificationChannels[i]); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + ModelMonitoringAlertConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); break; } case 2: { - message.displayName = reader.string(); + message.enableLogging = reader.bool(); break; } case 3: { - message.endpoint = reader.string(); - break; - } - case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.scheduleState = reader.int32(); - break; - } - case 25: { - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) - message.modelDeploymentMonitoringObjectiveConfigs = []; - message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); - break; - } - case 7: { - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); - break; - } - case 8: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); - break; - } - case 15: { - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - } - case 9: { - message.predictInstanceSchemaUri = reader.string(); - break; - } - case 19: { - message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 16: { - message.analysisInstanceSchemaUri = reader.string(); - break; - } - case 10: { - if (!(message.bigqueryTables && message.bigqueryTables.length)) - message.bigqueryTables = []; - message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); - break; - } - case 17: { - message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 20: { - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 21: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 22: { - message.enableMonitoringPipelineLogs = reader.bool(); - break; - } - case 23: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + if (!(message.notificationChannels && message.notificationChannels.length)) + message.notificationChannels = []; + message.notificationChannels.push(reader.string()); break; } default: @@ -99115,506 +117735,160 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ModelMonitoringAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + ModelMonitoringAlertConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { - default: - return "scheduleState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); - if (error) - return "latestMonitoringPipelineMetadata." + error; - } - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { - if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) - return "modelDeploymentMonitoringObjectiveConfigs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); - if (error) - return "modelDeploymentMonitoringObjectiveConfigs." + error; - } - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); - if (error) - return "modelDeploymentMonitoringScheduleConfig." + error; - } - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); - if (error) - return "modelMonitoringAlertConfig." + error; - } - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - if (!$util.isString(message.predictInstanceSchemaUri)) - return "predictInstanceSchemaUri: string expected"; - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { - var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); - if (error) - return "samplePredictInstance." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { - if (!Array.isArray(message.bigqueryTables)) - return "bigqueryTables: array expected"; - for (var i = 0; i < message.bigqueryTables.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + var properties = {}; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + properties.alert = 1; + { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); if (error) - return "bigqueryTables." + error; + return "emailAlertConfig." + error; } } - if (message.logTtl != null && message.hasOwnProperty("logTtl")) { - var error = $root.google.protobuf.Duration.verify(message.logTtl); - if (error) - return "logTtl." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); - if (error) - return "nextScheduleTime." + error; - } - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); - if (error) - return "statsAnomaliesBaseDirectory." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - if (typeof message.enableMonitoringPipelineLogs !== "boolean") - return "enableMonitoringPipelineLogs: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + if (typeof message.enableLogging !== "boolean") + return "enableLogging: boolean expected"; + if (message.notificationChannels != null && message.hasOwnProperty("notificationChannels")) { + if (!Array.isArray(message.notificationChannels)) + return "notificationChannels: array expected"; + for (var i = 0; i < message.notificationChannels.length; ++i) + if (!$util.isString(message.notificationChannels[i])) + return "notificationChannels: string[] expected"; } return null; }; /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) + ModelMonitoringAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - case "JOB_STATE_PARTIALLY_SUCCEEDED": - case 11: - message.state = 11; - break; - } - switch (object.scheduleState) { - default: - if (typeof object.scheduleState === "number") { - message.scheduleState = object.scheduleState; - break; - } - break; - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": - case 0: - message.scheduleState = 0; - break; - case "PENDING": - case 1: - message.scheduleState = 1; - break; - case "OFFLINE": - case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; - break; - } - if (object.latestMonitoringPipelineMetadata != null) { - if (typeof object.latestMonitoringPipelineMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); - } - if (object.modelDeploymentMonitoringObjectiveConfigs) { - if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); - message.modelDeploymentMonitoringObjectiveConfigs = []; - for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); - message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); - } - } - if (object.modelDeploymentMonitoringScheduleConfig != null) { - if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); - } - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - if (object.modelMonitoringAlertConfig != null) { - if (typeof object.modelMonitoringAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); - } - if (object.predictInstanceSchemaUri != null) - message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); - if (object.samplePredictInstance != null) { - if (typeof object.samplePredictInstance !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); - message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - if (object.bigqueryTables) { - if (!Array.isArray(object.bigqueryTables)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); - message.bigqueryTables = []; - for (var i = 0; i < object.bigqueryTables.length; ++i) { - if (typeof object.bigqueryTables[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); - message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); - } - } - if (object.logTtl != null) { - if (typeof object.logTtl !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); - message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.nextScheduleTime != null) { - if (typeof object.nextScheduleTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); - message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); - } - if (object.statsAnomaliesBaseDirectory != null) { - if (typeof object.statsAnomaliesBaseDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); + if (object.emailAlertConfig != null) { + if (typeof object.emailAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); } - if (object.enableMonitoringPipelineLogs != null) - message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.enableLogging != null) + message.enableLogging = Boolean(object.enableLogging); + if (object.notificationChannels) { + if (!Array.isArray(object.notificationChannels)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.notificationChannels: array expected"); + message.notificationChannels = []; + for (var i = 0; i < object.notificationChannels.length; ++i) + message.notificationChannels[i] = String(object.notificationChannels[i]); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + ModelMonitoringAlertConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - object.bigqueryTables = []; - } - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.endpoint = ""; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; - object.modelDeploymentMonitoringScheduleConfig = null; - object.loggingSamplingStrategy = null; - object.predictInstanceSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.nextScheduleTime = null; - object.modelMonitoringAlertConfig = null; - object.analysisInstanceSchemaUri = ""; - object.logTtl = null; - object.samplePredictInstance = null; - object.statsAnomaliesBaseDirectory = null; - object.encryptionSpec = null; - object.enableMonitoringPipelineLogs = false; - object.error = null; - object.latestMonitoringPipelineMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; - if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) - object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) - object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; - if (message.bigqueryTables && message.bigqueryTables.length) { - object.bigqueryTables = []; - for (var j = 0; j < message.bigqueryTables.length; ++j) - object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + if (options.arrays || options.defaults) + object.notificationChannels = []; + if (options.defaults) + object.enableLogging = false; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); + if (options.oneofs) + object.alert = "emailAlertConfig"; } - 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.enableLogging != null && message.hasOwnProperty("enableLogging")) + object.enableLogging = message.enableLogging; + if (message.notificationChannels && message.notificationChannels.length) { + object.notificationChannels = []; + for (var j = 0; j < message.notificationChannels.length; ++j) + object.notificationChannels[j] = message.notificationChannels[j]; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) - object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) - object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - if (message.logTtl != null && message.hasOwnProperty("logTtl")) - object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) - object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) - object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) - object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for ModelMonitoringAlertConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; }; - ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { + ModelMonitoringAlertConfig.EmailAlertConfig = (function() { /** - * Properties of a LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @interface ILatestMonitoringPipelineMetadata - * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime - * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status + * Properties of an EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @interface IEmailAlertConfig + * @property {Array.|null} [userEmails] EmailAlertConfig userEmails */ /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @classdesc Represents a LatestMonitoringPipelineMetadata. - * @implements ILatestMonitoringPipelineMetadata + * Constructs a new EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @classdesc Represents an EmailAlertConfig. + * @implements IEmailAlertConfig * @constructor - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set */ - function LatestMonitoringPipelineMetadata(properties) { + function EmailAlertConfig(properties) { + this.userEmails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99622,89 +117896,78 @@ } /** - * LatestMonitoringPipelineMetadata runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.runTime = null; - - /** - * LatestMonitoringPipelineMetadata status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * EmailAlertConfig userEmails. + * @member {Array.} userEmails + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @instance */ - LatestMonitoringPipelineMetadata.prototype.status = null; + EmailAlertConfig.prototype.userEmails = $util.emptyArray; /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * Creates a new EmailAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance */ - LatestMonitoringPipelineMetadata.create = function create(properties) { - return new LatestMonitoringPipelineMetadata(properties); + EmailAlertConfig.create = function create(properties) { + return new EmailAlertConfig(properties); }; /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { + EmailAlertConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.userEmails != null && message.userEmails.length) + for (var i = 0; i < message.userEmails.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); return writer; }; /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { + EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * Decodes an EmailAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { + EmailAlertConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + if (!(message.userEmails && message.userEmails.length)) + message.userEmails = []; + message.userEmails.push(reader.string()); break; } default: @@ -99716,164 +117979,137 @@ }; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { + EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LatestMonitoringPipelineMetadata message. + * Verifies an EmailAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LatestMonitoringPipelineMetadata.verify = function verify(message) { + EmailAlertConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; + if (message.userEmails != null && message.hasOwnProperty("userEmails")) { + if (!Array.isArray(message.userEmails)) + return "userEmails: array expected"; + for (var i = 0; i < message.userEmails.length; ++i) + if (!$util.isString(message.userEmails[i])) + return "userEmails: string[] expected"; } return null; }; /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig */ - LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + EmailAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); + if (object.userEmails) { + if (!Array.isArray(object.userEmails)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); + message.userEmails = []; + for (var i = 0; i < object.userEmails.length; ++i) + message.userEmails[i] = String(object.userEmails[i]); } return message; }; /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { + EmailAlertConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.runTime = null; - object.status = null; + if (options.arrays || options.defaults) + object.userEmails = []; + if (message.userEmails && message.userEmails.length) { + object.userEmails = []; + for (var j = 0; j < message.userEmails.length; ++j) + object.userEmails[j] = message.userEmails[j]; } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this LatestMonitoringPipelineMetadata to JSON. + * Converts this EmailAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @instance * @returns {Object.} JSON object */ - LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { + EmailAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LatestMonitoringPipelineMetadata + * Gets the default type url for EmailAlertConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; }; - return LatestMonitoringPipelineMetadata; - })(); - - /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState - * @enum {number} - * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} OFFLINE=2 OFFLINE value - * @property {number} RUNNING=3 RUNNING value - */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "OFFLINE"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - return values; + return EmailAlertConfig; })(); - return ModelDeploymentMonitoringJob; + return ModelMonitoringAlertConfig; })(); - v1.ModelDeploymentMonitoringBigQueryTable = (function() { + v1.ThresholdConfig = (function() { /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. + * Properties of a ThresholdConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringBigQueryTable - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType - * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value */ /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new ThresholdConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set */ - function ModelDeploymentMonitoringBigQueryTable(properties) { + function ThresholdConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99881,103 +118117,89 @@ } /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; + ThresholdConfig.prototype.value = null; - /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ThresholdConfig threshold. + * @member {"value"|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + Object.defineProperty(ThresholdConfig.prototype, "threshold", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance - */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance + */ + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + ThresholdConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); - if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + ThresholdConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.logSource = reader.int32(); - break; - } - case 2: { - message.logType = reader.int32(); - break; - } - case 3: { - message.bigqueryTablePath = reader.string(); + message.value = reader.double(); break; } default: @@ -99989,220 +118211,126 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a ThresholdConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + ThresholdConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.logSource != null && message.hasOwnProperty("logSource")) - switch (message.logSource) { - default: - return "logSource: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: string expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } return null; }; /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - default: - if (typeof object.logSource === "number") { - message.logSource = object.logSource; - break; - } - break; - case "LOG_SOURCE_UNSPECIFIED": - case 0: - message.logSource = 0; - break; - case "TRAINING": - case 1: - message.logSource = 1; - break; - case "SERVING": - case 2: - message.logSource = 2; - break; - } - switch (object.logType) { - default: - if (typeof object.logType === "number") { - message.logType = object.logType; - break; - } - break; - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "PREDICT": - case 1: - message.logType = 1; - break; - case "EXPLAIN": - case 2: - message.logType = 2; - break; - } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + ThresholdConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (options.oneofs) + object.threshold = "value"; } - if (message.logSource != null && message.hasOwnProperty("logSource")) - object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - object.bigqueryTablePath = message.bigqueryTablePath; return object; }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this ThresholdConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + ThresholdConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for ThresholdConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; }; - /** - * LogSource enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource - * @enum {number} - * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value - * @property {number} TRAINING=1 TRAINING value - * @property {number} SERVING=2 SERVING value - */ - ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRAINING"] = 1; - values[valuesById[2] = "SERVING"] = 2; - return values; - })(); - - /** - * LogType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value - */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; - return values; - })(); - - return ModelDeploymentMonitoringBigQueryTable; + return ThresholdConfig; })(); - v1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1.SamplingStrategy = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of a SamplingStrategy. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @interface ISamplingStrategy + * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig */ /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new SamplingStrategy. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents a SamplingStrategy. + * @implements ISamplingStrategy * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + function SamplingStrategy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100210,89 +118338,75 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig - * @instance - */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; - - /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * SamplingStrategy randomSampleConfig. + * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + SamplingStrategy.prototype.randomSampleConfig = null; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); + SamplingStrategy.create = function create(properties) { + return new SamplingStrategy(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + SamplingStrategy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); - if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + SamplingStrategy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedModelId = reader.string(); - break; - } - case 2: { - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); break; } default: @@ -100304,137 +118418,343 @@ }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a SamplingStrategy message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + SamplingStrategy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); if (error) - return "objectiveConfig." + error; + return "randomSampleConfig." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) + SamplingStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.objectiveConfig != null) { - if (typeof object.objectiveConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); + if (object.randomSampleConfig != null) { + if (typeof object.randomSampleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + SamplingStrategy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = null; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) - object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + if (options.defaults) + object.randomSampleConfig = null; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) + object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); return object; }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this SamplingStrategy to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + SamplingStrategy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for SamplingStrategy * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; }; - return ModelDeploymentMonitoringObjectiveConfig; + SamplingStrategy.RandomSampleConfig = (function() { + + /** + * Properties of a RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @interface IRandomSampleConfig + * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + */ + + /** + * Constructs a new RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @classdesc Represents a RandomSampleConfig. + * @implements IRandomSampleConfig + * @constructor + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + */ + function RandomSampleConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RandomSampleConfig sampleRate. + * @member {number} sampleRate + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + */ + RandomSampleConfig.prototype.sampleRate = 0; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + */ + RandomSampleConfig.create = function create(properties) { + return new RandomSampleConfig(properties); + }; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + return writer; + }; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sampleRate = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RandomSampleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RandomSampleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + if (typeof message.sampleRate !== "number") + return "sampleRate: number expected"; + return null; + }; + + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + */ + RandomSampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + if (object.sampleRate != null) + message.sampleRate = Number(object.sampleRate); + return message; + }; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RandomSampleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sampleRate = 0; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + return object; + }; + + /** + * Converts this RandomSampleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + * @returns {Object.} JSON object + */ + RandomSampleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RandomSampleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; + }; + + return RandomSampleConfig; + })(); + + return SamplingStrategy; })(); - v1.ModelDeploymentMonitoringScheduleConfig = (function() { + v1.NasJob = (function() { /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. + * Properties of a NasJob. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval - * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + * @interface INasJob + * @property {string|null} [name] NasJob name + * @property {string|null} [displayName] NasJob displayName + * @property {google.cloud.aiplatform.v1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec + * @property {google.cloud.aiplatform.v1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput + * @property {google.cloud.aiplatform.v1.JobState|null} [state] NasJob state + * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime + * @property {google.rpc.IStatus|null} [error] NasJob error + * @property {Object.|null} [labels] NasJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec + * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining */ /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new NasJob. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig + * @classdesc Represents a NasJob. + * @implements INasJob * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set */ - function ModelDeploymentMonitoringScheduleConfig(properties) { + function NasJob(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100442,89 +118762,263 @@ } /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * NasJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasJob * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + NasJob.prototype.name = ""; /** - * ModelDeploymentMonitoringScheduleConfig monitorWindow. - * @member {google.protobuf.IDuration|null|undefined} monitorWindow - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * NasJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.NasJob * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + NasJob.prototype.displayName = ""; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * NasJob nasJobSpec. + * @member {google.cloud.aiplatform.v1.INasJobSpec|null|undefined} nasJobSpec + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.nasJobSpec = null; + + /** + * NasJob nasJobOutput. + * @member {google.cloud.aiplatform.v1.INasJobOutput|null|undefined} nasJobOutput + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.nasJobOutput = null; + + /** + * NasJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.state = 0; + + /** + * NasJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.createTime = null; + + /** + * NasJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.startTime = null; + + /** + * NasJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.endTime = null; + + /** + * NasJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.updateTime = null; + + /** + * NasJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.error = null; + + /** + * NasJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.labels = $util.emptyObject; + + /** + * NasJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.encryptionSpec = null; + + /** + * NasJob enableRestrictedImageTraining. + * @member {boolean} enableRestrictedImageTraining + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.enableRestrictedImageTraining = false; + + /** + * Creates a new NasJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + NasJob.create = function create(properties) { + return new NasJob(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + NasJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) - $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) - $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + NasJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + NasJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.displayName = reader.string(); + break; + } + case 4: { + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 12: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 13: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enableRestrictedImageTraining = reader.bool(); break; } default: @@ -100532,149 +119026,350 @@ break; } } - return message; - }; - - /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitorInterval); - if (error) - return "monitorInterval." + error; + return message; + }; + + /** + * Decodes a NasJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NasJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NasJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NasJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.verify(message.nasJobSpec); + if (error) + return "nasJobSpec." + error; + } + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.verify(message.nasJobOutput); + if (error) + return "nasJobOutput." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + if (typeof message.enableRestrictedImageTraining !== "boolean") + return "enableRestrictedImageTraining: boolean expected"; + return null; + }; + + /** + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + */ + NasJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.nasJobSpec != null) { + if (typeof object.nasJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobSpec: object expected"); + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.fromObject(object.nasJobSpec); + } + if (object.nasJobOutput != null) { + if (typeof object.nasJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobOutput: object expected"); + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.fromObject(object.nasJobOutput); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + case "JOB_STATE_PARTIALLY_SUCCEEDED": + case 11: + message.state = 11; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { - var error = $root.google.protobuf.Duration.verify(message.monitorWindow); - if (error) - return "monitorWindow." + error; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - return null; - }; - - /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig - */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); - if (object.monitorInterval != null) { - if (typeof object.monitorInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); - message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - if (object.monitorWindow != null) { - if (typeof object.monitorWindow !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); - message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.enableRestrictedImageTraining != null) + message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * Creates a plain object from a NasJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {google.cloud.aiplatform.v1.NasJob} message NasJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + NasJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.monitorInterval = null; - object.monitorWindow = null; + object.name = ""; + object.displayName = ""; + object.nasJobSpec = null; + object.nasJobOutput = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + object.enableRestrictedImageTraining = false; } - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) - object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) - object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) + object.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.toObject(message.nasJobSpec, options); + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) + object.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.toObject(message.nasJobOutput, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; return object; }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this NasJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + NasJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for NasJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.NasJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJob"; }; - return ModelDeploymentMonitoringScheduleConfig; + return NasJob; })(); - v1.ModelMonitoringStatsAnomalies = (function() { + v1.NasTrialDetail = (function() { /** - * Properties of a ModelMonitoringStatsAnomalies. + * Properties of a NasTrialDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringStatsAnomalies - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective - * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId - * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount - * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + * @interface INasTrialDetail + * @property {string|null} [name] NasTrialDetail name + * @property {string|null} [parameters] NasTrialDetail parameters + * @property {google.cloud.aiplatform.v1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial + * @property {google.cloud.aiplatform.v1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial */ /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new NasTrialDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies + * @classdesc Represents a NasTrialDetail. + * @implements INasTrialDetail * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; + function NasTrialDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100682,120 +119377,117 @@ } /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * NasTrialDetail name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; + NasTrialDetail.prototype.name = ""; /** - * ModelMonitoringStatsAnomalies deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * NasTrialDetail parameters. + * @member {string} parameters + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance */ - ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + NasTrialDetail.prototype.parameters = ""; /** - * ModelMonitoringStatsAnomalies anomalyCount. - * @member {number} anomalyCount - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * NasTrialDetail searchTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} searchTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance */ - ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + NasTrialDetail.prototype.searchTrial = null; /** - * ModelMonitoringStatsAnomalies featureStats. - * @member {Array.} featureStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * NasTrialDetail trainTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} trainTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance */ - ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + NasTrialDetail.prototype.trainTrial = null; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail instance */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); + NasTrialDetail.create = function create(properties) { + return new NasTrialDetail(properties); }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + NasTrialDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); - if (message.featureStats != null && message.featureStats.length) - for (var i = 0; i < message.featureStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); + if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + NasTrialDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.objective = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); + message.parameters = reader.string(); break; } case 3: { - message.anomalyCount = reader.int32(); + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); break; } case 4: { - if (!(message.featureStats && message.featureStats.length)) - message.featureStats = []; - message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); break; } default: @@ -100807,507 +119499,159 @@ }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a NasTrialDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { + NasTrialDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - if (!$util.isInteger(message.anomalyCount)) - return "anomalyCount: integer expected"; - if (message.featureStats != null && message.hasOwnProperty("featureStats")) { - if (!Array.isArray(message.featureStats)) - return "featureStats: array expected"; - for (var i = 0; i < message.featureStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); - if (error) - return "featureStats." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) + if (!$util.isString(message.parameters)) + return "parameters: string expected"; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrial); + if (error) + return "searchTrial." + error; + } + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrial); + if (error) + return "trainTrial." + error; } return null; }; /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) + NasTrialDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrialDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - default: - if (typeof object.objective === "number") { - message.objective = object.objective; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.objective = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.objective = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.objective = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.objective = 4; - break; + var message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.searchTrial != null) { + if (typeof object.searchTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.searchTrial: object expected"); + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrial); } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.anomalyCount != null) - message.anomalyCount = object.anomalyCount | 0; - if (object.featureStats) { - if (!Array.isArray(object.featureStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); - message.featureStats = []; - for (var i = 0; i < object.featureStats.length; ++i) { - if (typeof object.featureStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); - message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); - } + if (object.trainTrial != null) { + if (typeof object.trainTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.trainTrial: object expected"); + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrial); } return message; }; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1.NasTrialDetail} message NasTrialDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + NasTrialDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - object.anomalyCount = message.anomalyCount; - if (message.featureStats && message.featureStats.length) { - object.featureStats = []; - for (var j = 0; j < message.featureStats.length; ++j) - object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); + object.name = ""; + object.parameters = ""; + object.searchTrial = null; + object.trainTrial = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) + object.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrial, options); + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) + object.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrial, options); return object; }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this NasTrialDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + NasTrialDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for NasTrialDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrialDetail"; }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { - - /** - * Properties of a FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @interface IFeatureHistoricStatsAnomalies - * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold - * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats - * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats - */ - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureHistoricStatsAnomalies featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; - - /** - * FeatureHistoricStatsAnomalies threshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.threshold = null; - - /** - * FeatureHistoricStatsAnomalies trainingStats. - * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; - - /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance - */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.predictionStats != null && message.predictionStats.length) - for (var i = 0; i < message.predictionStats.length; ++i) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.featureDisplayName = reader.string(); - break; - } - case 3: { - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); - if (error) - return "threshold." + error; - } - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); - if (error) - return "trainingStats." + error; - } - if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { - if (!Array.isArray(message.predictionStats)) - return "predictionStats: array expected"; - for (var i = 0; i < message.predictionStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); - if (error) - return "predictionStats." + error; - } - } - return null; - }; - - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.threshold != null) { - if (typeof object.threshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); - } - if (object.trainingStats != null) { - if (typeof object.trainingStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); - } - if (object.predictionStats) { - if (!Array.isArray(object.predictionStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); - message.predictionStats = []; - for (var i = 0; i < object.predictionStats.length; ++i) { - if (typeof object.predictionStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); - message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictionStats = []; - if (options.defaults) { - object.featureDisplayName = ""; - object.threshold = null; - object.trainingStats = null; - } - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) - object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); - if (message.predictionStats && message.predictionStats.length) { - object.predictionStats = []; - for (var j = 0; j < message.predictionStats.length; ++j) - object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); - } - return object; - }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - * @returns {Object.} JSON object - */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; - }; - - return FeatureHistoricStatsAnomalies; - })(); - - return ModelMonitoringStatsAnomalies; + return NasTrialDetail; })(); - v1.ModelMonitoringObjectiveConfig = (function() { + v1.NasJobSpec = (function() { /** - * Properties of a ModelMonitoringObjectiveConfig. + * Properties of a NasJobSpec. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringObjectiveConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + * @interface INasJobSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec + * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId + * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec */ /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new NasJobSpec. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig + * @classdesc Represents a NasJobSpec. + * @implements INasJobSpec * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set */ - function ModelMonitoringObjectiveConfig(properties) { + function NasJobSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101315,117 +119659,117 @@ } /** - * ModelMonitoringObjectiveConfig trainingDataset. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * NasJobSpec multiTrialAlgorithmSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance */ - ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; + NasJobSpec.prototype.multiTrialAlgorithmSpec = null; /** - * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * NasJobSpec resumeNasJobId. + * @member {string} resumeNasJobId + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; + NasJobSpec.prototype.resumeNasJobId = ""; /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * NasJobSpec searchSpaceSpec. + * @member {string} searchSpaceSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; + NasJobSpec.prototype.searchSpaceSpec = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * NasJobSpec nasAlgorithmSpec. + * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + NasJobSpec.create = function create(properties) { + return new NasJobSpec(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + NasJobSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); + if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); return writer; }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + NasJobSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); - break; - } case 2: { - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); break; } case 3: { - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + message.resumeNasJobId = reader.string(); break; } - case 5: { - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + case 1: { + message.searchSpaceSpec = reader.string(); break; } default: @@ -101437,169 +119781,150 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + NasJobSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a NasJobSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + NasJobSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); - if (error) - return "trainingDataset." + error; - } - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); - if (error) - return "trainingPredictionSkewDetectionConfig." + error; - } - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); - if (error) - return "predictionDriftDetectionConfig." + error; - } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); - if (error) - return "explanationConfig." + error; + var properties = {}; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + properties.nasAlgorithmSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); + if (error) + return "multiTrialAlgorithmSpec." + error; + } } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + if (!$util.isString(message.resumeNasJobId)) + return "resumeNasJobId: string expected"; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + if (!$util.isString(message.searchSpaceSpec)) + return "searchSpaceSpec: string expected"; return null; }; /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) + NasJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); - if (object.trainingDataset != null) { - if (typeof object.trainingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); - } - if (object.trainingPredictionSkewDetectionConfig != null) { - if (typeof object.trainingPredictionSkewDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); - } - if (object.predictionDriftDetectionConfig != null) { - if (typeof object.predictionDriftDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); - } - if (object.explanationConfig != null) { - if (typeof object.explanationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); + if (object.multiTrialAlgorithmSpec != null) { + if (typeof object.multiTrialAlgorithmSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); } + if (object.resumeNasJobId != null) + message.resumeNasJobId = String(object.resumeNasJobId); + if (object.searchSpaceSpec != null) + message.searchSpaceSpec = String(object.searchSpaceSpec); return message; }; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.NasJobSpec} message NasJobSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + NasJobSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.trainingDataset = null; - object.trainingPredictionSkewDetectionConfig = null; - object.predictionDriftDetectionConfig = null; - object.explanationConfig = null; + object.searchSpaceSpec = ""; + object.resumeNasJobId = ""; } - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) - object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) - object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) - object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) - object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + object.searchSpaceSpec = message.searchSpaceSpec; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); + if (options.oneofs) + object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + object.resumeNasJobId = message.resumeNasJobId; return object; }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this NasJobSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + NasJobSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for NasJobSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec"; }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { + NasJobSpec.MultiTrialAlgorithmSpec = (function() { /** - * Properties of a TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingDataset - * @property {string|null} [dataset] TrainingDataset dataset - * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource - * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource - * @property {string|null} [dataFormat] TrainingDataset dataFormat - * @property {string|null} [targetField] TrainingDataset targetField - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy + * Properties of a MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @interface IMultiTrialAlgorithmSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec */ /** - * Constructs a new TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingDataset. - * @implements ITrainingDataset + * Constructs a new MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @classdesc Represents a MultiTrialAlgorithmSpec. + * @implements IMultiTrialAlgorithmSpec * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set */ - function TrainingDataset(properties) { + function MultiTrialAlgorithmSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101607,159 +119932,117 @@ } /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; - - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; - - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; - - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * MultiTrialAlgorithmSpec multiTrialAlgorithm. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @instance */ - TrainingDataset.prototype.dataFormat = ""; + MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * MultiTrialAlgorithmSpec metric. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @instance */ - TrainingDataset.prototype.targetField = ""; + MultiTrialAlgorithmSpec.prototype.metric = null; /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * MultiTrialAlgorithmSpec searchTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @instance */ - TrainingDataset.prototype.loggingSamplingStrategy = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; /** - * TrainingDataset dataSource. - * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * MultiTrialAlgorithmSpec trainTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @instance */ - Object.defineProperty(TrainingDataset.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), - set: $util.oneOfSetter($oneOfFields) - }); + MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; /** - * Creates a new TrainingDataset instance using the specified properties. + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance */ - TrainingDataset.create = function create(properties) { - return new TrainingDataset(properties); + MultiTrialAlgorithmSpec.create = function create(properties) { + return new MultiTrialAlgorithmSpec(properties); }; /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encode = function encode(message, writer) { + MultiTrialAlgorithmSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decode = function decode(reader, length) { + MultiTrialAlgorithmSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.dataset = reader.string(); - break; - } - case 4: { - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + case 1: { + message.multiTrialAlgorithm = reader.int32(); break; } case 2: { - message.dataFormat = reader.string(); + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); break; } - case 6: { - message.targetField = reader.string(); + case 3: { + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); break; } - case 7: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + case 4: { + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); break; } default: @@ -101771,876 +120054,1232 @@ }; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingDataset message. + * Verifies a MultiTrialAlgorithmSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingDataset.verify = function verify(message) { + MultiTrialAlgorithmSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.dataSource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + switch (message.multiTrialAlgorithm) { + default: + return "multiTrialAlgorithm: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.metric != null && message.hasOwnProperty("metric")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); + if (error) + return "metric." + error; } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); + if (error) + return "searchTrialSpec." + error; } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - if (!$util.isString(message.dataFormat)) - return "dataFormat: string expected"; - if (message.targetField != null && message.hasOwnProperty("targetField")) - if (!$util.isString(message.targetField)) - return "targetField: string expected"; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); if (error) - return "loggingSamplingStrategy." + error; + return "trainTrialSpec." + error; } return null; }; /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec */ - TrainingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) + MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); + switch (object.multiTrialAlgorithm) { + default: + if (typeof object.multiTrialAlgorithm === "number") { + message.multiTrialAlgorithm = object.multiTrialAlgorithm; + break; + } + break; + case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": + case 0: + message.multiTrialAlgorithm = 0; + break; + case "REINFORCEMENT_LEARNING": + case 1: + message.multiTrialAlgorithm = 1; + break; + case "GRID_SEARCH": + case 2: + message.multiTrialAlgorithm = 2; + break; } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); } - if (object.dataFormat != null) - message.dataFormat = String(object.dataFormat); - if (object.targetField != null) - message.targetField = String(object.targetField); - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + if (object.searchTrialSpec != null) { + if (typeof object.searchTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); + } + if (object.trainTrialSpec != null) { + if (typeof object.trainTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); } return message; }; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingDataset.toObject = function toObject(message, options) { + MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataFormat = ""; - object.targetField = ""; - object.loggingSamplingStrategy = null; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = message.dataFormat; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.dataSource = "dataset"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.dataSource = "gcsSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.dataSource = "bigquerySource"; + object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; + object.metric = null; + object.searchTrialSpec = null; + object.trainTrialSpec = null; } - if (message.targetField != null && message.hasOwnProperty("targetField")) - object.targetField = message.targetField; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; + if (message.metric != null && message.hasOwnProperty("metric")) + object.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) + object.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) + object.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); return object; }; /** - * Converts this TrainingDataset to JSON. + * Converts this MultiTrialAlgorithmSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @instance * @returns {Object.} JSON object */ - TrainingDataset.prototype.toJSON = function toJSON() { + MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for MultiTrialAlgorithmSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec"; }; - return TrainingDataset; - })(); + MultiTrialAlgorithmSpec.MetricSpec = (function() { - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + */ - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold - */ + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingPredictionSkewDetectionConfig. - * @implements ITrainingPredictionSkewDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - */ - function TrainingPredictionSkewDetectionConfig(properties) { - this.skewThresholds = {}; - this.attributionScoreSkewThresholds = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; - /** - * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + return writer; + }; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance - */ - TrainingPredictionSkewDetectionConfig.create = function create(properties) { - return new TrainingPredictionSkewDetectionConfig(properties); - }; + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } + break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; + }; + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { + + /** + * Properties of a SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ISearchTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec + * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount + * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount + * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount + */ + + /** + * Constructs a new SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a SearchTrialSpec. + * @implements ISearchTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + */ + function SearchTrialSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SearchTrialSpec searchTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} searchTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.searchTrialJobSpec = null; + + /** + * SearchTrialSpec maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxTrialCount = 0; + + /** + * SearchTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * SearchTrialSpec maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxFailedTrialCount = 0; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance + */ + SearchTrialSpec.create = function create(properties) { + return new SearchTrialSpec(properties); + }; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); + return writer; + }; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxTrialCount = reader.int32(); + break; + } + case 3: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 4: { + message.maxFailedTrialCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.searchTrialJobSpec); + if (error) + return "searchTrialJobSpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + return null; + }; + + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + */ + SearchTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + if (object.searchTrialJobSpec != null) { + if (typeof object.searchTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.searchTrialJobSpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + return message; + }; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchTrialJobSpec = null; + object.maxTrialCount = 0; + object.maxParallelTrialCount = 0; + object.maxFailedTrialCount = 0; + } + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) + object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + return object; + }; + + /** + * Converts this SearchTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + * @returns {Object.} JSON object + */ + SearchTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; + }; + + return SearchTrialSpec; + })(); + + MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + + /** + * Properties of a TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ITrainTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec + * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount + * @property {number|null} [frequency] TrainTrialSpec frequency + */ + + /** + * Constructs a new TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a TrainTrialSpec. + * @implements ITrainTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + */ + function TrainTrialSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrainTrialSpec trainTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trainTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.trainTrialJobSpec = null; + + /** + * TrainTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * TrainTrialSpec frequency. + * @member {number} frequency + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.frequency = 0; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance + */ + TrainTrialSpec.create = function create(properties) { + return new TrainTrialSpec(properties); + }; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) - for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) - for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); + return writer; + }; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.skewThresholds === $util.emptyObject) - message.skewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; } - message.skewThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreSkewThresholds === $util.emptyObject) - message.attributionScoreSkewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 2: { + message.maxParallelTrialCount = reader.int32(); + break; } - message.attributionScoreSkewThresholds[key] = value; - break; - } - case 6: { - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + case 3: { + message.frequency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPredictionSkewDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { - if (!$util.isObject(message.skewThresholds)) - return "skewThresholds: object expected"; - var key = Object.keys(message.skewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); - if (error) - return "skewThresholds." + error; - } - } - if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { - if (!$util.isObject(message.attributionScoreSkewThresholds)) - return "attributionScoreSkewThresholds: object expected"; - var key = Object.keys(message.attributionScoreSkewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + /** + * Verifies a TrainTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trainTrialJobSpec); if (error) - return "attributionScoreSkewThresholds." + error; + return "trainTrialJobSpec." + error; } - } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); - if (error) - return "defaultSkewThreshold." + error; - } - return null; - }; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.frequency != null && message.hasOwnProperty("frequency")) + if (!$util.isInteger(message.frequency)) + return "frequency: integer expected"; + return null; + }; - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - */ - TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); - if (object.skewThresholds) { - if (typeof object.skewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds = {}; - for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.skewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + */ + TrainTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + if (object.trainTrialJobSpec != null) { + if (typeof object.trainTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trainTrialJobSpec); } - } - if (object.attributionScoreSkewThresholds) { - if (typeof object.attributionScoreSkewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds = {}; - for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.frequency != null) + message.frequency = object.frequency | 0; + return message; + }; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainTrialJobSpec = null; + object.maxParallelTrialCount = 0; + object.frequency = 0; } - } - if (object.defaultSkewThreshold != null) { - if (typeof object.defaultSkewThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); - } - return message; - }; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) + object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = message.frequency; + return object; + }; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.skewThresholds = {}; - object.attributionScoreSkewThresholds = {}; - } - if (options.defaults) - object.defaultSkewThreshold = null; - var keys2; - if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { - object.skewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); - } - if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { - object.attributionScoreSkewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); - } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) - object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); - return object; - }; + /** + * Converts this TrainTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + * @returns {Object.} JSON object + */ + TrainTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for TrainTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; + }; + + return TrainTrialSpec; + })(); /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * MultiTrialAlgorithm enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm + * @enum {number} + * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value + * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value */ - TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; - }; + MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; + values[valuesById[2] = "GRID_SEARCH"] = 2; + return values; + })(); - return TrainingPredictionSkewDetectionConfig; + return MultiTrialAlgorithmSpec; })(); - ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + return NasJobSpec; + })(); - /** - * Properties of a PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IPredictionDriftDetectionConfig - * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds - * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold - */ + v1.NasJobOutput = (function() { - /** - * Constructs a new PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a PredictionDriftDetectionConfig. - * @implements IPredictionDriftDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - */ - function PredictionDriftDetectionConfig(properties) { - this.driftThresholds = {}; - this.attributionScoreDriftThresholds = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a NasJobOutput. + * @memberof google.cloud.aiplatform.v1 + * @interface INasJobOutput + * @property {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput + */ - /** - * PredictionDriftDetectionConfig driftThresholds. - * @member {Object.} driftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + /** + * Constructs a new NasJobOutput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasJobOutput. + * @implements INasJobOutput + * @constructor + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set + */ + function NasJobOutput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * PredictionDriftDetectionConfig attributionScoreDriftThresholds. - * @member {Object.} attributionScoreDriftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + /** + * NasJobOutput multiTrialJobOutput. + * @member {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @instance + */ + NasJobOutput.prototype.multiTrialJobOutput = null; - /** - * PredictionDriftDetectionConfig defaultDriftThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance - */ - PredictionDriftDetectionConfig.create = function create(properties) { - return new PredictionDriftDetectionConfig(properties); - }; + /** + * NasJobOutput output. + * @member {"multiTrialJobOutput"|undefined} output + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @instance + */ + Object.defineProperty(NasJobOutput.prototype, "output", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) - for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) - for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Creates a new NasJobOutput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput instance + */ + NasJobOutput.create = function create(properties) { + return new NasJobOutput(properties); + }; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NasJobOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.driftThresholds === $util.emptyObject) - message.driftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.driftThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreDriftThresholds === $util.emptyObject) - message.attributionScoreDriftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreDriftThresholds[key] = value; - break; - } - case 5: { - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NasJobOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NasJobOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NasJobOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PredictionDriftDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictionDriftDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { - if (!$util.isObject(message.driftThresholds)) - return "driftThresholds: object expected"; - var key = Object.keys(message.driftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); - if (error) - return "driftThresholds." + error; - } - } - if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { - if (!$util.isObject(message.attributionScoreDriftThresholds)) - return "attributionScoreDriftThresholds: object expected"; - var key = Object.keys(message.attributionScoreDriftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); - if (error) - return "attributionScoreDriftThresholds." + error; - } - } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); + /** + * Verifies a NasJobOutput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NasJobOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + properties.output = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); if (error) - return "defaultDriftThreshold." + error; - } - return null; - }; - - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - */ - PredictionDriftDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); - if (object.driftThresholds) { - if (typeof object.driftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds = {}; - for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.driftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); - } - } - if (object.attributionScoreDriftThresholds) { - if (typeof object.attributionScoreDriftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds = {}; - for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); - } - } - if (object.defaultDriftThreshold != null) { - if (typeof object.defaultDriftThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + return "multiTrialJobOutput." + error; } - return message; - }; + } + return null; + }; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictionDriftDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.driftThresholds = {}; - object.attributionScoreDriftThresholds = {}; - } - if (options.defaults) - object.defaultDriftThreshold = null; - var keys2; - if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { - object.driftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); - } - if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { - object.attributionScoreDriftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); - } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) - object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); + /** + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + */ + NasJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); + if (object.multiTrialJobOutput != null) { + if (typeof object.multiTrialJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.multiTrialJobOutput: object expected"); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); + } + return message; + }; - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput} message NasJobOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NasJobOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); + if (options.oneofs) + object.output = "multiTrialJobOutput"; + } + return object; + }; - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; - }; + /** + * Converts this NasJobOutput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @instance + * @returns {Object.} JSON object + */ + NasJobOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PredictionDriftDetectionConfig; - })(); + /** + * Gets the default type url for NasJobOutput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput"; + }; - ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { + NasJobOutput.MultiTrialJobOutput = (function() { /** - * Properties of an ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IExplanationConfig - * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + * Properties of a MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @interface IMultiTrialJobOutput + * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials + * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials */ /** - * Constructs a new ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents an ExplanationConfig. - * @implements IExplanationConfig + * Constructs a new MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @classdesc Represents a MultiTrialJobOutput. + * @implements IMultiTrialJobOutput * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set */ - function ExplanationConfig(properties) { + function MultiTrialJobOutput(properties) { + this.searchTrials = []; + this.trainTrials = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102648,89 +121287,95 @@ } /** - * ExplanationConfig enableFeatureAttributes. - * @member {boolean} enableFeatureAttributes - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * MultiTrialJobOutput searchTrials. + * @member {Array.} searchTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @instance */ - ExplanationConfig.prototype.enableFeatureAttributes = false; + MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; /** - * ExplanationConfig explanationBaseline. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * MultiTrialJobOutput trainTrials. + * @member {Array.} trainTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @instance */ - ExplanationConfig.prototype.explanationBaseline = null; + MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; /** - * Creates a new ExplanationConfig instance using the specified properties. + * Creates a new MultiTrialJobOutput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance */ - ExplanationConfig.create = function create(properties) { - return new ExplanationConfig(properties); + MultiTrialJobOutput.create = function create(properties) { + return new MultiTrialJobOutput(properties); }; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encode = function encode(message, writer) { + MultiTrialJobOutput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); - if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrials != null && message.searchTrials.length) + for (var i = 0; i < message.searchTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainTrials != null && message.trainTrials.length) + for (var i = 0; i < message.trainTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decode = function decode(reader, length) { + MultiTrialJobOutput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enableFeatureAttributes = reader.bool(); + if (!(message.searchTrials && message.searchTrials.length)) + message.searchTrials = []; + message.searchTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); break; } case 2: { - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + if (!(message.trainTrials && message.trainTrials.length)) + message.trainTrials = []; + message.trainTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); break; } default: @@ -102742,468 +121387,956 @@ }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplanationConfig message. + * Verifies a MultiTrialJobOutput message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplanationConfig.verify = function verify(message) { + MultiTrialJobOutput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - if (typeof message.enableFeatureAttributes !== "boolean") - return "enableFeatureAttributes: boolean expected"; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); - if (error) - return "explanationBaseline." + error; + if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { + if (!Array.isArray(message.searchTrials)) + return "searchTrials: array expected"; + for (var i = 0; i < message.searchTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrials[i]); + if (error) + return "searchTrials." + error; + } + } + if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { + if (!Array.isArray(message.trainTrials)) + return "trainTrials: array expected"; + for (var i = 0; i < message.trainTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrials[i]); + if (error) + return "trainTrials." + error; + } } return null; }; /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput */ - ExplanationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + MultiTrialJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); - if (object.enableFeatureAttributes != null) - message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); - if (object.explanationBaseline != null) { - if (typeof object.explanationBaseline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); + if (object.searchTrials) { + if (!Array.isArray(object.searchTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); + message.searchTrials = []; + for (var i = 0; i < object.searchTrials.length; ++i) { + if (typeof object.searchTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); + message.searchTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrials[i]); + } + } + if (object.trainTrials) { + if (!Array.isArray(object.trainTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); + message.trainTrials = []; + for (var i = 0; i < object.trainTrials.length; ++i) { + if (typeof object.trainTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); + message.trainTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrials[i]); + } } return message; }; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplanationConfig.toObject = function toObject(message, options) { + MultiTrialJobOutput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.enableFeatureAttributes = false; - object.explanationBaseline = null; + if (options.arrays || options.defaults) { + object.searchTrials = []; + object.trainTrials = []; + } + if (message.searchTrials && message.searchTrials.length) { + object.searchTrials = []; + for (var j = 0; j < message.searchTrials.length; ++j) + object.searchTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrials[j], options); + } + if (message.trainTrials && message.trainTrials.length) { + object.trainTrials = []; + for (var j = 0; j < message.trainTrials.length; ++j) + object.trainTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrials[j], options); } - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - object.enableFeatureAttributes = message.enableFeatureAttributes; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) - object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); return object; }; /** - * Converts this ExplanationConfig to JSON. + * Converts this MultiTrialJobOutput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @instance * @returns {Object.} JSON object */ - ExplanationConfig.prototype.toJSON = function toJSON() { + MultiTrialJobOutput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplanationConfig + * Gets the default type url for MultiTrialJobOutput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput"; }; - ExplanationConfig.ExplanationBaseline = (function() { + return MultiTrialJobOutput; + })(); - /** - * Properties of an ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @interface IExplanationBaseline - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat - */ + return NasJobOutput; + })(); - /** - * Constructs a new ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @classdesc Represents an ExplanationBaseline. - * @implements IExplanationBaseline - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - */ - function ExplanationBaseline(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.NasTrial = (function() { - /** - * ExplanationBaseline gcs. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.gcs = null; + /** + * Properties of a NasTrial. + * @memberof google.cloud.aiplatform.v1 + * @interface INasTrial + * @property {string|null} [id] NasTrial id + * @property {google.cloud.aiplatform.v1.NasTrial.State|null} [state] NasTrial state + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement + * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime + */ - /** - * ExplanationBaseline bigquery. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.bigquery = null; + /** + * Constructs a new NasTrial. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasTrial. + * @implements INasTrial + * @constructor + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set + */ + function NasTrial(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ExplanationBaseline predictionFormat. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.predictionFormat = 0; + /** + * NasTrial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.id = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * NasTrial state. + * @member {google.cloud.aiplatform.v1.NasTrial.State} state + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.state = 0; - /** - * ExplanationBaseline destination. - * @member {"gcs"|"bigquery"|undefined} destination - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - Object.defineProperty(ExplanationBaseline.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * NasTrial finalMeasurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.finalMeasurement = null; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance - */ - ExplanationBaseline.create = function create(properties) { - return new ExplanationBaseline(properties); - }; + /** + * NasTrial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.startTime = null; - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * NasTrial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.endTime = null; - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new NasTrial instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial instance + */ + NasTrial.create = function create(properties) { + return new NasTrial(properties); + }; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 3: { - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.predictionFormat = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NasTrial.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NasTrial.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NasTrial message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NasTrial.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrial(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; } - return message; - }; + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a NasTrial message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NasTrial.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an ExplanationBaseline message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExplanationBaseline.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); - if (error) - return "gcs." + error; - } + /** + * Verifies a NasTrial message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NasTrial.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); + if (error) + return "finalMeasurement." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + */ + NasTrial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrial) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasTrial(); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {google.cloud.aiplatform.v1.NasTrial} message NasTrial + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NasTrial.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] : message.state; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + return object; + }; + + /** + * Converts this NasTrial to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + * @returns {Object.} JSON object + */ + NasTrial.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NasTrial + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasTrial + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrial"; + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1.NasTrial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + NasTrial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return NasTrial; + })(); + + v1.LineageSubgraph = (function() { + + /** + * Properties of a LineageSubgraph. + * @memberof google.cloud.aiplatform.v1 + * @interface ILineageSubgraph + * @property {Array.|null} [artifacts] LineageSubgraph artifacts + * @property {Array.|null} [executions] LineageSubgraph executions + * @property {Array.|null} [events] LineageSubgraph events + */ + + /** + * Constructs a new LineageSubgraph. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a LineageSubgraph. + * @implements ILineageSubgraph + * @constructor + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set + */ + function LineageSubgraph(properties) { + this.artifacts = []; + this.executions = []; + this.events = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LineageSubgraph artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.artifacts = $util.emptyArray; + + /** + * LineageSubgraph executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.executions = $util.emptyArray; + + /** + * LineageSubgraph events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.events = $util.emptyArray; + + /** + * Creates a new LineageSubgraph instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance + */ + LineageSubgraph.create = function create(properties) { + return new LineageSubgraph(properties); + }; + + /** + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LineageSubgraph.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LineageSubgraph message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LineageSubgraph.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); - if (error) - return "bigquery." + error; - } + case 2: { + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); + break; } - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - switch (message.predictionFormat) { - default: - return "predictionFormat: enum value expected"; - case 0: - case 2: - case 3: - break; - } - return null; - }; + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LineageSubgraph message. + * @function verify + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LineageSubgraph.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } + return null; + }; + + /** + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + */ + LineageSubgraph.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) + return object; + var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + } + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LineageSubgraph.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + object.events = []; + } + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); + } + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + } + return object; + }; + + /** + * Converts this LineageSubgraph to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + * @returns {Object.} JSON object + */ + LineageSubgraph.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LineageSubgraph + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; + }; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - */ - ExplanationBaseline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); - } - if (object.bigquery != null) { - if (typeof object.bigquery !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); - } - switch (object.predictionFormat) { - default: - if (typeof object.predictionFormat === "number") { - message.predictionFormat = object.predictionFormat; - break; - } - break; - case "PREDICTION_FORMAT_UNSPECIFIED": - case 0: - message.predictionFormat = 0; - break; - case "JSONL": - case 2: - message.predictionFormat = 2; - break; - case "BIGQUERY": - case 3: - message.predictionFormat = 3; - break; - } - return message; - }; + return LineageSubgraph; + })(); - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExplanationBaseline.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); - if (options.oneofs) - object.destination = "gcs"; - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); - if (options.oneofs) - object.destination = "bigquery"; - } - return object; - }; + v1.LlmUtilityService = (function() { - /** - * Converts this ExplanationBaseline to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - * @returns {Object.} JSON object - */ - ExplanationBaseline.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new LlmUtilityService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a LlmUtilityService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function LlmUtilityService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Gets the default type url for ExplanationBaseline - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; - }; + (LlmUtilityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = LlmUtilityService; - /** - * PredictionFormat enum. - * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat - * @enum {number} - * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value - * @property {number} JSONL=2 JSONL value - * @property {number} BIGQUERY=3 BIGQUERY value - */ - ExplanationBaseline.PredictionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[2] = "JSONL"] = 2; - values[valuesById[3] = "BIGQUERY"] = 3; - return values; - })(); + /** + * Creates new LlmUtilityService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {LlmUtilityService} RPC service. Useful where requests and/or responses are streamed. + */ + LlmUtilityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - return ExplanationBaseline; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.LlmUtilityService|countTokens}. + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @typedef CountTokensCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.CountTokensResponse} [response] CountTokensResponse + */ - return ExplanationConfig; - })(); + /** + * Calls CountTokens. + * @function countTokens + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1.ICountTokensRequest} request CountTokensRequest message or plain object + * @param {google.cloud.aiplatform.v1.LlmUtilityService.CountTokensCallback} callback Node-style callback called with the error, if any, and CountTokensResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(LlmUtilityService.prototype.countTokens = function countTokens(request, callback) { + return this.rpcCall(countTokens, $root.google.cloud.aiplatform.v1.CountTokensRequest, $root.google.cloud.aiplatform.v1.CountTokensResponse, request, callback); + }, "name", { value: "CountTokens" }); - return ModelMonitoringObjectiveConfig; + /** + * Calls CountTokens. + * @function countTokens + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1.ICountTokensRequest} request CountTokensRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.LlmUtilityService|computeTokens}. + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @typedef ComputeTokensCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ComputeTokensResponse} [response] ComputeTokensResponse + */ + + /** + * Calls ComputeTokens. + * @function computeTokens + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest} request ComputeTokensRequest message or plain object + * @param {google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokensCallback} callback Node-style callback called with the error, if any, and ComputeTokensResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(LlmUtilityService.prototype.computeTokens = function computeTokens(request, callback) { + return this.rpcCall(computeTokens, $root.google.cloud.aiplatform.v1.ComputeTokensRequest, $root.google.cloud.aiplatform.v1.ComputeTokensResponse, request, callback); + }, "name", { value: "ComputeTokens" }); + + /** + * Calls ComputeTokens. + * @function computeTokens + * @memberof google.cloud.aiplatform.v1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest} request ComputeTokensRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return LlmUtilityService; })(); - v1.ModelMonitoringAlertConfig = (function() { + v1.ComputeTokensRequest = (function() { /** - * Properties of a ModelMonitoringAlertConfig. + * Properties of a ComputeTokensRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringAlertConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig - * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging - * @property {Array.|null} [notificationChannels] ModelMonitoringAlertConfig notificationChannels + * @interface IComputeTokensRequest + * @property {string|null} [endpoint] ComputeTokensRequest endpoint + * @property {Array.|null} [instances] ComputeTokensRequest instances */ /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ComputeTokensRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringAlertConfig. - * @implements IModelMonitoringAlertConfig + * @classdesc Represents a ComputeTokensRequest. + * @implements IComputeTokensRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest=} [properties] Properties to set */ - function ModelMonitoringAlertConfig(properties) { - this.notificationChannels = []; + function ComputeTokensRequest(properties) { + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103211,120 +122344,92 @@ } /** - * ModelMonitoringAlertConfig emailAlertConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @instance - */ - ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; - - /** - * ModelMonitoringAlertConfig enableLogging. - * @member {boolean} enableLogging - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @instance - */ - ModelMonitoringAlertConfig.prototype.enableLogging = false; - - /** - * ModelMonitoringAlertConfig notificationChannels. - * @member {Array.} notificationChannels - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ComputeTokensRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @instance */ - ModelMonitoringAlertConfig.prototype.notificationChannels = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ComputeTokensRequest.prototype.endpoint = ""; /** - * ModelMonitoringAlertConfig alert. - * @member {"emailAlertConfig"|undefined} alert - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ComputeTokensRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @instance */ - Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { - get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ComputeTokensRequest.prototype.instances = $util.emptyArray; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ComputeTokensRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ComputeTokensRequest} ComputeTokensRequest instance */ - ModelMonitoringAlertConfig.create = function create(properties) { - return new ModelMonitoringAlertConfig(properties); + ComputeTokensRequest.create = function create(properties) { + return new ComputeTokensRequest(properties); }; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ComputeTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest} message ComputeTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encode = function encode(message, writer) { + ComputeTokensRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); - if (message.notificationChannels != null && message.notificationChannels.length) - for (var i = 0; i < message.notificationChannels.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.notificationChannels[i]); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ComputeTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IComputeTokensRequest} message ComputeTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + ComputeTokensRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ComputeTokensRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensRequest} ComputeTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decode = function decode(reader, length) { + ComputeTokensRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ComputeTokensRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + message.endpoint = reader.string(); break; } case 2: { - message.enableLogging = reader.bool(); - break; - } - case 3: { - if (!(message.notificationChannels && message.notificationChannels.length)) - message.notificationChannels = []; - message.notificationChannels.push(reader.string()); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } default: @@ -103336,381 +122441,429 @@ }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ComputeTokensRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensRequest} ComputeTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { + ComputeTokensRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ComputeTokensRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringAlertConfig.verify = function verify(message) { + ComputeTokensRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - properties.alert = 1; - { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); if (error) - return "emailAlertConfig." + error; + return "instances." + error; } } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - if (typeof message.enableLogging !== "boolean") - return "enableLogging: boolean expected"; - if (message.notificationChannels != null && message.hasOwnProperty("notificationChannels")) { - if (!Array.isArray(message.notificationChannels)) - return "notificationChannels: array expected"; - for (var i = 0; i < message.notificationChannels.length; ++i) - if (!$util.isString(message.notificationChannels[i])) - return "notificationChannels: string[] expected"; - } return null; }; /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeTokensRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensRequest} ComputeTokensRequest */ - ModelMonitoringAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) + ComputeTokensRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ComputeTokensRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); - if (object.emailAlertConfig != null) { - if (typeof object.emailAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); - } - if (object.enableLogging != null) - message.enableLogging = Boolean(object.enableLogging); - if (object.notificationChannels) { - if (!Array.isArray(object.notificationChannels)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.notificationChannels: array expected"); - message.notificationChannels = []; - for (var i = 0; i < object.notificationChannels.length; ++i) - message.notificationChannels[i] = String(object.notificationChannels[i]); + var message = new $root.google.cloud.aiplatform.v1.ComputeTokensRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ComputeTokensRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ComputeTokensRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } } return message; }; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a ComputeTokensRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig + * @param {google.cloud.aiplatform.v1.ComputeTokensRequest} message ComputeTokensRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringAlertConfig.toObject = function toObject(message, options) { + ComputeTokensRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.notificationChannels = []; + object.instances = []; if (options.defaults) - object.enableLogging = false; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); - if (options.oneofs) - object.alert = "emailAlertConfig"; - } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - object.enableLogging = message.enableLogging; - if (message.notificationChannels && message.notificationChannels.length) { - object.notificationChannels = []; - for (var j = 0; j < message.notificationChannels.length; ++j) - object.notificationChannels[j] = message.notificationChannels[j]; + object.endpoint = ""; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); } return object; }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ComputeTokensRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @instance * @returns {Object.} JSON object */ - ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { + ComputeTokensRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ComputeTokensRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComputeTokensRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ComputeTokensRequest"; }; - ModelMonitoringAlertConfig.EmailAlertConfig = (function() { + return ComputeTokensRequest; + })(); - /** - * Properties of an EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @interface IEmailAlertConfig - * @property {Array.|null} [userEmails] EmailAlertConfig userEmails - */ + v1.TokensInfo = (function() { - /** - * Constructs a new EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @classdesc Represents an EmailAlertConfig. - * @implements IEmailAlertConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - */ - function EmailAlertConfig(properties) { - this.userEmails = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a TokensInfo. + * @memberof google.cloud.aiplatform.v1 + * @interface ITokensInfo + * @property {Array.|null} [tokens] TokensInfo tokens + * @property {Array.|null} [tokenIds] TokensInfo tokenIds + */ - /** - * EmailAlertConfig userEmails. - * @member {Array.} userEmails - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @instance - */ - EmailAlertConfig.prototype.userEmails = $util.emptyArray; + /** + * Constructs a new TokensInfo. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a TokensInfo. + * @implements ITokensInfo + * @constructor + * @param {google.cloud.aiplatform.v1.ITokensInfo=} [properties] Properties to set + */ + function TokensInfo(properties) { + this.tokens = []; + this.tokenIds = []; + if (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 EmailAlertConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance - */ - EmailAlertConfig.create = function create(properties) { - return new EmailAlertConfig(properties); - }; + /** + * TokensInfo tokens. + * @member {Array.} tokens + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @instance + */ + TokensInfo.prototype.tokens = $util.emptyArray; - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailAlertConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userEmails != null && message.userEmails.length) - for (var i = 0; i < message.userEmails.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); - return writer; - }; + /** + * TokensInfo tokenIds. + * @member {Array.} tokenIds + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @instance + */ + TokensInfo.prototype.tokenIds = $util.emptyArray; - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new TokensInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1.ITokensInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TokensInfo} TokensInfo instance + */ + TokensInfo.create = function create(properties) { + return new TokensInfo(properties); + }; - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailAlertConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.userEmails && message.userEmails.length)) - message.userEmails = []; - message.userEmails.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified TokensInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.TokensInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1.ITokensInfo} message TokensInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokensInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tokens != null && message.tokens.length) + for (var i = 0; i < message.tokens.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokens[i]); + if (message.tokenIds != null && message.tokenIds.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.tokenIds.length; ++i) + writer.int64(message.tokenIds[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TokensInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TokensInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1.ITokensInfo} message TokensInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokensInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TokensInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.TokensInfo} TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokensInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TokensInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tokens && message.tokens.length)) + message.tokens = []; + message.tokens.push(reader.bytes()); + break; + } + case 2: { + if (!(message.tokenIds && message.tokenIds.length)) + message.tokenIds = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tokenIds.push(reader.int64()); + } else + message.tokenIds.push(reader.int64()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an EmailAlertConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailAlertConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userEmails != null && message.hasOwnProperty("userEmails")) { - if (!Array.isArray(message.userEmails)) - return "userEmails: array expected"; - for (var i = 0; i < message.userEmails.length; ++i) - if (!$util.isString(message.userEmails[i])) - return "userEmails: string[] expected"; - } - return null; - }; + /** + * Decodes a TokensInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.TokensInfo} TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokensInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - */ - EmailAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); - if (object.userEmails) { - if (!Array.isArray(object.userEmails)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); - message.userEmails = []; - for (var i = 0; i < object.userEmails.length; ++i) - message.userEmails[i] = String(object.userEmails[i]); - } - return message; - }; + /** + * Verifies a TokensInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TokensInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tokens != null && message.hasOwnProperty("tokens")) { + if (!Array.isArray(message.tokens)) + return "tokens: array expected"; + for (var i = 0; i < message.tokens.length; ++i) + if (!(message.tokens[i] && typeof message.tokens[i].length === "number" || $util.isString(message.tokens[i]))) + return "tokens: buffer[] expected"; + } + if (message.tokenIds != null && message.hasOwnProperty("tokenIds")) { + if (!Array.isArray(message.tokenIds)) + return "tokenIds: array expected"; + for (var i = 0; i < message.tokenIds.length; ++i) + if (!$util.isInteger(message.tokenIds[i]) && !(message.tokenIds[i] && $util.isInteger(message.tokenIds[i].low) && $util.isInteger(message.tokenIds[i].high))) + return "tokenIds: integer|Long[] expected"; + } + return null; + }; - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EmailAlertConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.userEmails = []; - if (message.userEmails && message.userEmails.length) { - object.userEmails = []; - for (var j = 0; j < message.userEmails.length; ++j) - object.userEmails[j] = message.userEmails[j]; - } + /** + * Creates a TokensInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.TokensInfo} TokensInfo + */ + TokensInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TokensInfo) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.TokensInfo(); + if (object.tokens) { + if (!Array.isArray(object.tokens)) + throw TypeError(".google.cloud.aiplatform.v1.TokensInfo.tokens: array expected"); + message.tokens = []; + for (var i = 0; i < object.tokens.length; ++i) + if (typeof object.tokens[i] === "string") + $util.base64.decode(object.tokens[i], message.tokens[i] = $util.newBuffer($util.base64.length(object.tokens[i])), 0); + else if (object.tokens[i].length >= 0) + message.tokens[i] = object.tokens[i]; + } + if (object.tokenIds) { + if (!Array.isArray(object.tokenIds)) + throw TypeError(".google.cloud.aiplatform.v1.TokensInfo.tokenIds: array expected"); + message.tokenIds = []; + for (var i = 0; i < object.tokenIds.length; ++i) + if ($util.Long) + (message.tokenIds[i] = $util.Long.fromValue(object.tokenIds[i])).unsigned = false; + else if (typeof object.tokenIds[i] === "string") + message.tokenIds[i] = parseInt(object.tokenIds[i], 10); + else if (typeof object.tokenIds[i] === "number") + message.tokenIds[i] = object.tokenIds[i]; + else if (typeof object.tokenIds[i] === "object") + message.tokenIds[i] = new $util.LongBits(object.tokenIds[i].low >>> 0, object.tokenIds[i].high >>> 0).toNumber(); + } + return message; + }; - /** - * Converts this EmailAlertConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @instance - * @returns {Object.} JSON object - */ - EmailAlertConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a TokensInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1.TokensInfo} message TokensInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TokensInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tokens = []; + object.tokenIds = []; + } + if (message.tokens && message.tokens.length) { + object.tokens = []; + for (var j = 0; j < message.tokens.length; ++j) + object.tokens[j] = options.bytes === String ? $util.base64.encode(message.tokens[j], 0, message.tokens[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.tokens[j]) : message.tokens[j]; + } + if (message.tokenIds && message.tokenIds.length) { + object.tokenIds = []; + for (var j = 0; j < message.tokenIds.length; ++j) + if (typeof message.tokenIds[j] === "number") + object.tokenIds[j] = options.longs === String ? String(message.tokenIds[j]) : message.tokenIds[j]; + else + object.tokenIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.tokenIds[j]) : options.longs === Number ? new $util.LongBits(message.tokenIds[j].low >>> 0, message.tokenIds[j].high >>> 0).toNumber() : message.tokenIds[j]; + } + return object; + }; - /** - * Gets the default type url for EmailAlertConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; - }; + /** + * Converts this TokensInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @instance + * @returns {Object.} JSON object + */ + TokensInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return EmailAlertConfig; - })(); + /** + * Gets the default type url for TokensInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.TokensInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TokensInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TokensInfo"; + }; - return ModelMonitoringAlertConfig; + return TokensInfo; })(); - v1.ThresholdConfig = (function() { + v1.ComputeTokensResponse = (function() { /** - * Properties of a ThresholdConfig. + * Properties of a ComputeTokensResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value + * @interface IComputeTokensResponse + * @property {Array.|null} [tokensInfo] ComputeTokensResponse tokensInfo */ /** - * Constructs a new ThresholdConfig. + * Constructs a new ComputeTokensResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig + * @classdesc Represents a ComputeTokensResponse. + * @implements IComputeTokensResponse * @constructor - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IComputeTokensResponse=} [properties] Properties to set */ - function ThresholdConfig(properties) { + function ComputeTokensResponse(properties) { + this.tokensInfo = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103718,89 +122871,78 @@ } /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - */ - ThresholdConfig.prototype.value = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * ComputeTokensResponse tokensInfo. + * @member {Array.} tokensInfo + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @instance */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); + ComputeTokensResponse.prototype.tokensInfo = $util.emptyArray; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ComputeTokensResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance + * @param {google.cloud.aiplatform.v1.IComputeTokensResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ComputeTokensResponse} ComputeTokensResponse instance */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); + ComputeTokensResponse.create = function create(properties) { + return new ComputeTokensResponse(properties); }; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * Encodes the specified ComputeTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IComputeTokensResponse} message ComputeTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThresholdConfig.encode = function encode(message, writer) { + ComputeTokensResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + if (message.tokensInfo != null && message.tokensInfo.length) + for (var i = 0; i < message.tokensInfo.length; ++i) + $root.google.cloud.aiplatform.v1.TokensInfo.encode(message.tokensInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * Encodes the specified ComputeTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ComputeTokensResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IComputeTokensResponse} message ComputeTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + ComputeTokensResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ComputeTokensResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensResponse} ComputeTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThresholdConfig.decode = function decode(reader, length) { + ComputeTokensResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ComputeTokensResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.value = reader.double(); + if (!(message.tokensInfo && message.tokensInfo.length)) + message.tokensInfo = []; + message.tokensInfo.push($root.google.cloud.aiplatform.v1.TokensInfo.decode(reader, reader.uint32())); break; } default: @@ -103812,126 +122954,309 @@ }; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ComputeTokensResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensResponse} ComputeTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { + ComputeTokensResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ThresholdConfig message. + * Verifies a ComputeTokensResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThresholdConfig.verify = function verify(message) { + ComputeTokensResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.threshold = 1; - if (typeof message.value !== "number") - return "value: number expected"; + if (message.tokensInfo != null && message.hasOwnProperty("tokensInfo")) { + if (!Array.isArray(message.tokensInfo)) + return "tokensInfo: array expected"; + for (var i = 0; i < message.tokensInfo.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.TokensInfo.verify(message.tokensInfo[i]); + if (error) + return "tokensInfo." + error; + } } return null; }; /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ComputeTokensResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1.ComputeTokensResponse} ComputeTokensResponse */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) + ComputeTokensResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ComputeTokensResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); - if (object.value != null) - message.value = Number(object.value); + var message = new $root.google.cloud.aiplatform.v1.ComputeTokensResponse(); + if (object.tokensInfo) { + if (!Array.isArray(object.tokensInfo)) + throw TypeError(".google.cloud.aiplatform.v1.ComputeTokensResponse.tokensInfo: array expected"); + message.tokensInfo = []; + for (var i = 0; i < object.tokensInfo.length; ++i) { + if (typeof object.tokensInfo[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ComputeTokensResponse.tokensInfo: object expected"); + message.tokensInfo[i] = $root.google.cloud.aiplatform.v1.TokensInfo.fromObject(object.tokensInfo[i]); + } + } return message; }; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * Creates a plain object from a ComputeTokensResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static - * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig + * @param {google.cloud.aiplatform.v1.ComputeTokensResponse} message ComputeTokensResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThresholdConfig.toObject = function toObject(message, options) { + ComputeTokensResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (options.oneofs) - object.threshold = "value"; + if (options.arrays || options.defaults) + object.tokensInfo = []; + if (message.tokensInfo && message.tokensInfo.length) { + object.tokensInfo = []; + for (var j = 0; j < message.tokensInfo.length; ++j) + object.tokensInfo[j] = $root.google.cloud.aiplatform.v1.TokensInfo.toObject(message.tokensInfo[j], options); } return object; }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ComputeTokensResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @instance * @returns {Object.} JSON object */ - ThresholdConfig.prototype.toJSON = function toJSON() { + ComputeTokensResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for ComputeTokensResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1.ComputeTokensResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ComputeTokensResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ComputeTokensResponse"; }; - return ThresholdConfig; + return ComputeTokensResponse; })(); - v1.SamplingStrategy = (function() { + v1.PredictionService = (function() { /** - * Properties of a SamplingStrategy. + * Constructs a new PredictionService service. * @memberof google.cloud.aiplatform.v1 - * @interface ISamplingStrategy - * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig + * @classdesc Represents a PredictionService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function PredictionService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; + + /** + * Creates new PredictionService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.PredictionService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. + */ + PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef PredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse */ /** - * Constructs a new SamplingStrategy. + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { + return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); + }, "name", { value: "Predict" }); + + /** + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef RawPredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.api.HttpBody} [response] HttpBody + */ + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { + return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); + }, "name", { value: "RawPredict" }); + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|serverStreamingPredict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef ServerStreamingPredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.StreamingPredictResponse} [response] StreamingPredictResponse + */ + + /** + * Calls ServerStreamingPredict. + * @function serverStreamingPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.serverStreamingPredict = function serverStreamingPredict(request, callback) { + return this.rpcCall(serverStreamingPredict, $root.google.cloud.aiplatform.v1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1.StreamingPredictResponse, request, callback); + }, "name", { value: "ServerStreamingPredict" }); + + /** + * Calls ServerStreamingPredict. + * @function serverStreamingPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef ExplainCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse + */ + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { + return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); + }, "name", { value: "Explain" }); + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PredictionService; + })(); + + v1.PredictRequest = (function() { + + /** + * Properties of a PredictRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SamplingStrategy. - * @implements ISamplingStrategy + * @interface IPredictRequest + * @property {string|null} [endpoint] PredictRequest endpoint + * @property {Array.|null} [instances] PredictRequest instances + * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + */ + + /** + * Constructs a new PredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PredictRequest. + * @implements IPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set */ - function SamplingStrategy(properties) { + function PredictRequest(properties) { + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103939,75 +123264,106 @@ } /** - * SamplingStrategy randomSampleConfig. - * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * PredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.PredictRequest * @instance */ - SamplingStrategy.prototype.randomSampleConfig = null; + PredictRequest.prototype.endpoint = ""; /** - * Creates a new SamplingStrategy instance using the specified properties. + * PredictRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.instances = $util.emptyArray; + + /** + * PredictRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.parameters = null; + + /** + * Creates a new PredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance */ - SamplingStrategy.create = function create(properties) { - return new SamplingStrategy(properties); + PredictRequest.create = function create(properties) { + return new PredictRequest(properties); }; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SamplingStrategy.encode = function encode(message, writer) { + PredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { + PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a PredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SamplingStrategy.decode = function decode(reader, length) { + PredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -104019,343 +123375,168 @@ }; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { + PredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SamplingStrategy message. + * Verifies a PredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SamplingStrategy.verify = function verify(message) { + PredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); if (error) - return "randomSampleConfig." + error; + return "parameters." + error; } return null; }; /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest */ - SamplingStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) + PredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); - if (object.randomSampleConfig != null) { - if (typeof object.randomSampleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); + var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); } return message; }; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy + * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SamplingStrategy.toObject = function toObject(message, options) { + PredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.randomSampleConfig = null; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) - object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) { + object.endpoint = ""; + object.parameters = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); return object; }; /** - * Converts this SamplingStrategy to JSON. + * Converts this PredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @instance * @returns {Object.} JSON object */ - SamplingStrategy.prototype.toJSON = function toJSON() { + PredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for PredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; }; - SamplingStrategy.RandomSampleConfig = (function() { - - /** - * Properties of a RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @interface IRandomSampleConfig - * @property {number|null} [sampleRate] RandomSampleConfig sampleRate - */ - - /** - * Constructs a new RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @classdesc Represents a RandomSampleConfig. - * @implements IRandomSampleConfig - * @constructor - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set - */ - function RandomSampleConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RandomSampleConfig sampleRate. - * @member {number} sampleRate - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @instance - */ - RandomSampleConfig.prototype.sampleRate = 0; - - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance - */ - RandomSampleConfig.create = function create(properties) { - return new RandomSampleConfig(properties); - }; - - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RandomSampleConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); - return writer; - }; - - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RandomSampleConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.sampleRate = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RandomSampleConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RandomSampleConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - if (typeof message.sampleRate !== "number") - return "sampleRate: number expected"; - return null; - }; - - /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig - */ - RandomSampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); - if (object.sampleRate != null) - message.sampleRate = Number(object.sampleRate); - return message; - }; - - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RandomSampleConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.sampleRate = 0; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; - return object; - }; - - /** - * Converts this RandomSampleConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @instance - * @returns {Object.} JSON object - */ - RandomSampleConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RandomSampleConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; - }; - - return RandomSampleConfig; - })(); - - return SamplingStrategy; + return PredictRequest; })(); - v1.NasJob = (function() { + v1.PredictResponse = (function() { /** - * Properties of a NasJob. + * Properties of a PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @interface INasJob - * @property {string|null} [name] NasJob name - * @property {string|null} [displayName] NasJob displayName - * @property {google.cloud.aiplatform.v1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec - * @property {google.cloud.aiplatform.v1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput - * @property {google.cloud.aiplatform.v1.JobState|null} [state] NasJob state - * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime - * @property {google.rpc.IStatus|null} [error] NasJob error - * @property {Object.|null} [labels] NasJob labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec - * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + * @interface IPredictResponse + * @property {Array.|null} [predictions] PredictResponse predictions + * @property {string|null} [deployedModelId] PredictResponse deployedModelId + * @property {string|null} [model] PredictResponse model + * @property {string|null} [modelVersionId] PredictResponse modelVersionId + * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName + * @property {google.protobuf.IValue|null} [metadata] PredictResponse metadata */ /** - * Constructs a new NasJob. + * Constructs a new PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NasJob. - * @implements INasJob + * @classdesc Represents a PredictResponse. + * @implements IPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set */ - function NasJob(properties) { - this.labels = {}; + function PredictResponse(properties) { + this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104363,263 +123544,148 @@ } /** - * NasJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.name = ""; - - /** - * NasJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.displayName = ""; - - /** - * NasJob nasJobSpec. - * @member {google.cloud.aiplatform.v1.INasJobSpec|null|undefined} nasJobSpec - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.nasJobSpec = null; - - /** - * NasJob nasJobOutput. - * @member {google.cloud.aiplatform.v1.INasJobOutput|null|undefined} nasJobOutput - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.nasJobOutput = null; - - /** - * NasJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.state = 0; - - /** - * NasJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.createTime = null; - - /** - * NasJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.NasJob - * @instance - */ - NasJob.prototype.startTime = null; - - /** - * NasJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.endTime = null; + PredictResponse.prototype.predictions = $util.emptyArray; /** - * NasJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.updateTime = null; + PredictResponse.prototype.deployedModelId = ""; /** - * NasJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.error = null; + PredictResponse.prototype.model = ""; /** - * NasJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.labels = $util.emptyObject; + PredictResponse.prototype.modelVersionId = ""; /** - * NasJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.encryptionSpec = null; + PredictResponse.prototype.modelDisplayName = ""; /** - * NasJob enableRestrictedImageTraining. - * @member {boolean} enableRestrictedImageTraining - * @memberof google.cloud.aiplatform.v1.NasJob + * PredictResponse metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - NasJob.prototype.enableRestrictedImageTraining = false; + PredictResponse.prototype.metadata = null; /** - * Creates a new NasJob instance using the specified properties. + * Creates a new PredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJob} NasJob instance + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance */ - NasJob.create = function create(properties) { - return new NasJob(properties); + PredictResponse.create = function create(properties) { + return new PredictResponse(properties); }; /** - * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJob.encode = function encode(message, writer) { + PredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) - $root.google.cloud.aiplatform.v1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) - $root.google.cloud.aiplatform.v1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); + if (message.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJob.encodeDelimited = function encodeDelimited(message, writer) { + PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NasJob message from the specified reader or buffer. + * Decodes a PredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJob.decode = function decode(reader, length) { + PredictResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } case 2: { - message.displayName = reader.string(); + message.deployedModelId = reader.string(); break; } - case 4: { - message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.decode(reader, reader.uint32()); + case 3: { + message.model = reader.string(); break; } case 5: { - message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.decode(reader, reader.uint32()); - break; - } - case 6: { - message.state = reader.int32(); - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 10: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 12: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; + message.modelVersionId = reader.string(); break; } - case 13: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + case 4: { + message.modelDisplayName = reader.string(); break; } - case 14: { - message.enableRestrictedImageTraining = reader.bool(); + case 6: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -104631,346 +123697,187 @@ }; /** - * Decodes a NasJob message from the specified reader or buffer, length delimited. + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJob.decodeDelimited = function decodeDelimited(reader) { + PredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NasJob message. + * Verifies a PredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NasJob.verify = function verify(message) { + PredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { - var error = $root.google.cloud.aiplatform.v1.NasJobSpec.verify(message.nasJobSpec); - if (error) - return "nasJobSpec." + error; - } - if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { - var error = $root.google.cloud.aiplatform.v1.NasJobOutput.verify(message.nasJobOutput); - if (error) - return "nasJobOutput." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); if (error) - return "encryptionSpec." + error; + return "metadata." + error; } - if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) - if (typeof message.enableRestrictedImageTraining !== "boolean") - return "enableRestrictedImageTraining: boolean expected"; return null; }; /** - * Creates a NasJob message from a plain object. Also converts values to their respective internal types. + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse */ - NasJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJob) + PredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.NasJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.nasJobSpec != null) { - if (typeof object.nasJobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobSpec: object expected"); - message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.fromObject(object.nasJobSpec); - } - if (object.nasJobOutput != null) { - if (typeof object.nasJobOutput !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobOutput: object expected"); - message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.fromObject(object.nasJobOutput); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); } - break; - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - case "JOB_STATE_PARTIALLY_SUCCEEDED": - case 11: - message.state = 11; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); } - if (object.enableRestrictedImageTraining != null) - message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); return message; }; /** - * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.NasJob} message NasJob + * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NasJob.toObject = function toObject(message, options) { + PredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; + if (options.arrays || options.defaults) + object.predictions = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.nasJobSpec = null; - object.nasJobOutput = null; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.error = null; - object.encryptionSpec = null; - object.enableRestrictedImageTraining = false; + object.deployedModelId = ""; + object.model = ""; + object.modelDisplayName = ""; + object.modelVersionId = ""; + object.metadata = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) - object.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.toObject(message.nasJobSpec, options); - if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) - object.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.toObject(message.nasJobOutput, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) - object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this NasJob to JSON. + * Converts this PredictResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance * @returns {Object.} JSON object */ - NasJob.prototype.toJSON = function toJSON() { + PredictResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NasJob + * Gets the default type url for PredictResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJob + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; }; - return NasJob; + return PredictResponse; })(); - v1.NasTrialDetail = (function() { + v1.RawPredictRequest = (function() { /** - * Properties of a NasTrialDetail. + * Properties of a RawPredictRequest. * @memberof google.cloud.aiplatform.v1 - * @interface INasTrialDetail - * @property {string|null} [name] NasTrialDetail name - * @property {string|null} [parameters] NasTrialDetail parameters - * @property {google.cloud.aiplatform.v1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial - * @property {google.cloud.aiplatform.v1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial + * @interface IRawPredictRequest + * @property {string|null} [endpoint] RawPredictRequest endpoint + * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody */ /** - * Constructs a new NasTrialDetail. + * Constructs a new RawPredictRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NasTrialDetail. - * @implements INasTrialDetail + * @classdesc Represents a RawPredictRequest. + * @implements IRawPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set */ - function NasTrialDetail(properties) { + function RawPredictRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104978,117 +123885,89 @@ } /** - * NasTrialDetail name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.NasTrialDetail - * @instance - */ - NasTrialDetail.prototype.name = ""; - - /** - * NasTrialDetail parameters. - * @member {string} parameters - * @memberof google.cloud.aiplatform.v1.NasTrialDetail - * @instance - */ - NasTrialDetail.prototype.parameters = ""; - - /** - * NasTrialDetail searchTrial. - * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} searchTrial - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * RawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @instance */ - NasTrialDetail.prototype.searchTrial = null; + RawPredictRequest.prototype.endpoint = ""; /** - * NasTrialDetail trainTrial. - * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} trainTrial - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * RawPredictRequest httpBody. + * @member {google.api.IHttpBody|null|undefined} httpBody + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @instance */ - NasTrialDetail.prototype.trainTrial = null; + RawPredictRequest.prototype.httpBody = null; /** - * Creates a new NasTrialDetail instance using the specified properties. + * Creates a new RawPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NasTrialDetail - * @static - * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail instance + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance */ - NasTrialDetail.create = function create(properties) { - return new NasTrialDetail(properties); + RawPredictRequest.create = function create(properties) { + return new RawPredictRequest(properties); }; /** - * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasTrialDetail.encode = function encode(message, writer) { + RawPredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); - if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) - $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) - $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) + $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { + RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NasTrialDetail message from the specified reader or buffer. + * Decodes a RawPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasTrialDetail.decode = function decode(reader, length) { + RawPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - message.parameters = reader.string(); - break; - } - case 3: { - message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); + message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); break; } default: @@ -105100,159 +123979,139 @@ }; /** - * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { + RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NasTrialDetail message. + * Verifies a RawPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NasTrialDetail.verify = function verify(message) { + RawPredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) - if (!$util.isString(message.parameters)) - return "parameters: string expected"; - if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { - var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrial); - if (error) - return "searchTrial." + error; - } - if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { - var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrial); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) { + var error = $root.google.api.HttpBody.verify(message.httpBody); if (error) - return "trainTrial." + error; + return "httpBody." + error; } return null; }; /** - * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest */ - NasTrialDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasTrialDetail) + RawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); - if (object.name != null) - message.name = String(object.name); - if (object.parameters != null) - message.parameters = String(object.parameters); - if (object.searchTrial != null) { - if (typeof object.searchTrial !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.searchTrial: object expected"); - message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrial); - } - if (object.trainTrial != null) { - if (typeof object.trainTrial !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.trainTrial: object expected"); - message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrial); + var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.httpBody != null) { + if (typeof object.httpBody !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); + message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); } return message; }; /** - * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static - * @param {google.cloud.aiplatform.v1.NasTrialDetail} message NasTrialDetail + * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NasTrialDetail.toObject = function toObject(message, options) { + RawPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.parameters = ""; - object.searchTrial = null; - object.trainTrial = null; + object.endpoint = ""; + object.httpBody = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = message.parameters; - if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) - object.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrial, options); - if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) - object.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrial, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) + object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); return object; }; /** - * Converts this NasTrialDetail to JSON. + * Converts this RawPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @instance * @returns {Object.} JSON object */ - NasTrialDetail.prototype.toJSON = function toJSON() { + RawPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NasTrialDetail + * Gets the default type url for RawPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @memberof google.cloud.aiplatform.v1.RawPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrialDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; }; - return NasTrialDetail; + return RawPredictRequest; })(); - v1.NasJobSpec = (function() { + v1.StreamingPredictRequest = (function() { /** - * Properties of a NasJobSpec. + * Properties of a StreamingPredictRequest. * @memberof google.cloud.aiplatform.v1 - * @interface INasJobSpec - * @property {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec - * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId - * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec + * @interface IStreamingPredictRequest + * @property {string|null} [endpoint] StreamingPredictRequest endpoint + * @property {Array.|null} [inputs] StreamingPredictRequest inputs + * @property {google.cloud.aiplatform.v1.ITensor|null} [parameters] StreamingPredictRequest parameters */ /** - * Constructs a new NasJobSpec. + * Constructs a new StreamingPredictRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NasJobSpec. - * @implements INasJobSpec + * @classdesc Represents a StreamingPredictRequest. + * @implements IStreamingPredictRequest * @constructor - * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest=} [properties] Properties to set */ - function NasJobSpec(properties) { + function StreamingPredictRequest(properties) { + this.inputs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105260,117 +124119,106 @@ } /** - * NasJobSpec multiTrialAlgorithmSpec. - * @member {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec - * @instance - */ - NasJobSpec.prototype.multiTrialAlgorithmSpec = null; - - /** - * NasJobSpec resumeNasJobId. - * @member {string} resumeNasJobId - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * StreamingPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @instance */ - NasJobSpec.prototype.resumeNasJobId = ""; + StreamingPredictRequest.prototype.endpoint = ""; /** - * NasJobSpec searchSpaceSpec. - * @member {string} searchSpaceSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * StreamingPredictRequest inputs. + * @member {Array.} inputs + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @instance */ - NasJobSpec.prototype.searchSpaceSpec = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + StreamingPredictRequest.prototype.inputs = $util.emptyArray; /** - * NasJobSpec nasAlgorithmSpec. - * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * StreamingPredictRequest parameters. + * @member {google.cloud.aiplatform.v1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @instance */ - Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { - get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + StreamingPredictRequest.prototype.parameters = null; /** - * Creates a new NasJobSpec instance using the specified properties. + * Creates a new StreamingPredictRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec instance + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest instance */ - NasJobSpec.create = function create(properties) { - return new NasJobSpec(properties); + StreamingPredictRequest.create = function create(properties) { + return new StreamingPredictRequest(properties); }; /** - * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJobSpec.encode = function encode(message, writer) { + StreamingPredictRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); - if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) - $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.google.cloud.aiplatform.v1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { + StreamingPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NasJobSpec message from the specified reader or buffer. + * Decodes a StreamingPredictRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJobSpec.decode = function decode(reader, length) { + StreamingPredictRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingPredictRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); + case 1: { + message.endpoint = reader.string(); break; } - case 3: { - message.resumeNasJobId = reader.string(); + case 2: { + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); break; } - case 1: { - message.searchSpaceSpec = reader.string(); + case 3: { + message.parameters = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); break; } default: @@ -105382,1278 +124230,747 @@ }; /** - * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. + * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJobSpec.decodeDelimited = function decodeDelimited(reader) { + StreamingPredictRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NasJobSpec message. + * Verifies a StreamingPredictRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NasJobSpec.verify = function verify(message) { + StreamingPredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { - properties.nasAlgorithmSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.inputs[i]); if (error) - return "multiTrialAlgorithmSpec." + error; + return "inputs." + error; } } - if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) - if (!$util.isString(message.resumeNasJobId)) - return "resumeNasJobId: string expected"; - if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) - if (!$util.isString(message.searchSpaceSpec)) - return "searchSpaceSpec: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } return null; }; /** - * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest */ - NasJobSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec) + StreamingPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StreamingPredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); - if (object.multiTrialAlgorithmSpec != null) { - if (typeof object.multiTrialAlgorithmSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); - message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); + var message = new $root.google.cloud.aiplatform.v1.StreamingPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.inputs) { + if (!Array.isArray(object.inputs)) + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.inputs: array expected"); + message.inputs = []; + for (var i = 0; i < object.inputs.length; ++i) { + if (typeof object.inputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.inputs: object expected"); + message.inputs[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.inputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.parameters); } - if (object.resumeNasJobId != null) - message.resumeNasJobId = String(object.resumeNasJobId); - if (object.searchSpaceSpec != null) - message.searchSpaceSpec = String(object.searchSpaceSpec); return message; }; /** - * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec} message NasJobSpec + * @param {google.cloud.aiplatform.v1.StreamingPredictRequest} message StreamingPredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NasJobSpec.toObject = function toObject(message, options) { + StreamingPredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.inputs = []; if (options.defaults) { - object.searchSpaceSpec = ""; - object.resumeNasJobId = ""; + object.endpoint = ""; + object.parameters = null; } - if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) - object.searchSpaceSpec = message.searchSpaceSpec; - if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { - object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); - if (options.oneofs) - object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.inputs && message.inputs.length) { + object.inputs = []; + for (var j = 0; j < message.inputs.length; ++j) + object.inputs[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.inputs[j], options); } - if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) - object.resumeNasJobId = message.resumeNasJobId; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.parameters, options); return object; }; /** - * Converts this NasJobSpec to JSON. + * Converts this StreamingPredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @instance * @returns {Object.} JSON object */ - NasJobSpec.prototype.toJSON = function toJSON() { + StreamingPredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NasJobSpec + * Gets the default type url for StreamingPredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingPredictRequest"; }; - NasJobSpec.MultiTrialAlgorithmSpec = (function() { - - /** - * Properties of a MultiTrialAlgorithmSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec - * @interface IMultiTrialAlgorithmSpec - * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm - * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric - * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec - * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec - */ - - /** - * Constructs a new MultiTrialAlgorithmSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec - * @classdesc Represents a MultiTrialAlgorithmSpec. - * @implements IMultiTrialAlgorithmSpec - * @constructor - * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set - */ - function MultiTrialAlgorithmSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MultiTrialAlgorithmSpec multiTrialAlgorithm. - * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @instance - */ - MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; - - /** - * MultiTrialAlgorithmSpec metric. - * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @instance - */ - MultiTrialAlgorithmSpec.prototype.metric = null; - - /** - * MultiTrialAlgorithmSpec searchTrialSpec. - * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @instance - */ - MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; - - /** - * MultiTrialAlgorithmSpec trainTrialSpec. - * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @instance - */ - MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; - - /** - * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance - */ - MultiTrialAlgorithmSpec.create = function create(properties) { - return new MultiTrialAlgorithmSpec(properties); - }; - - /** - * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MultiTrialAlgorithmSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); - if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) - $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) - $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) - $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MultiTrialAlgorithmSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.multiTrialAlgorithm = reader.int32(); - break; - } - case 2: { - message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); - break; - } - case 3: { - message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MultiTrialAlgorithmSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MultiTrialAlgorithmSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) - switch (message.multiTrialAlgorithm) { - default: - return "multiTrialAlgorithm: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.metric != null && message.hasOwnProperty("metric")) { - var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); - if (error) - return "metric." + error; - } - if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { - var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); - if (error) - return "searchTrialSpec." + error; - } - if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { - var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); - if (error) - return "trainTrialSpec." + error; - } - return null; - }; - - /** - * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec - */ - MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); - switch (object.multiTrialAlgorithm) { - default: - if (typeof object.multiTrialAlgorithm === "number") { - message.multiTrialAlgorithm = object.multiTrialAlgorithm; - break; - } - break; - case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": - case 0: - message.multiTrialAlgorithm = 0; - break; - case "REINFORCEMENT_LEARNING": - case 1: - message.multiTrialAlgorithm = 1; - break; - case "GRID_SEARCH": - case 2: - message.multiTrialAlgorithm = 2; - break; - } - if (object.metric != null) { - if (typeof object.metric !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); - message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); - } - if (object.searchTrialSpec != null) { - if (typeof object.searchTrialSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); - message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); - } - if (object.trainTrialSpec != null) { - if (typeof object.trainTrialSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); - message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); - } - return message; - }; - - /** - * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; - object.metric = null; - object.searchTrialSpec = null; - object.trainTrialSpec = null; - } - if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) - object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; - if (message.metric != null && message.hasOwnProperty("metric")) - object.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); - if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) - object.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); - if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) - object.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); - return object; - }; - - /** - * Converts this MultiTrialAlgorithmSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @instance - * @returns {Object.} JSON object - */ - MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MultiTrialAlgorithmSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec"; - }; - - MultiTrialAlgorithmSpec.MetricSpec = (function() { - - /** - * Properties of a MetricSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @interface IMetricSpec - * @property {string|null} [metricId] MetricSpec metricId - * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal - */ - - /** - * Constructs a new MetricSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @classdesc Represents a MetricSpec. - * @implements IMetricSpec - * @constructor - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set - */ - function MetricSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetricSpec metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @instance - */ - MetricSpec.prototype.metricId = ""; - - /** - * MetricSpec goal. - * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @instance - */ - MetricSpec.prototype.goal = 0; - - /** - * Creates a new MetricSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance - */ - MetricSpec.create = function create(properties) { - return new MetricSpec(properties); - }; - - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); - return writer; - }; - - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metricId = reader.string(); - break; - } - case 2: { - message.goal = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetricSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.goal != null && message.hasOwnProperty("goal")) - switch (message.goal) { - default: - return "goal: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec - */ - MetricSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); - if (object.metricId != null) - message.metricId = String(object.metricId); - switch (object.goal) { - default: - if (typeof object.goal === "number") { - message.goal = object.goal; - break; - } - break; - case "GOAL_TYPE_UNSPECIFIED": - case 0: - message.goal = 0; - break; - case "MAXIMIZE": - case 1: - message.goal = 1; - break; - case "MINIMIZE": - case 2: - message.goal = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.goal != null && message.hasOwnProperty("goal")) - object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; - return object; - }; - - /** - * Converts this MetricSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @instance - * @returns {Object.} JSON object - */ - MetricSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MetricSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; - }; - - /** - * GoalType enum. - * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType - * @enum {number} - * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value - * @property {number} MAXIMIZE=1 MAXIMIZE value - * @property {number} MINIMIZE=2 MINIMIZE value - */ - MetricSpec.GoalType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MAXIMIZE"] = 1; - values[valuesById[2] = "MINIMIZE"] = 2; - return values; - })(); - - return MetricSpec; - })(); - - MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { - - /** - * Properties of a SearchTrialSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @interface ISearchTrialSpec - * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec - * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount - * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount - * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount - */ + return StreamingPredictRequest; + })(); - /** - * Constructs a new SearchTrialSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @classdesc Represents a SearchTrialSpec. - * @implements ISearchTrialSpec - * @constructor - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set - */ - function SearchTrialSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.StreamingPredictResponse = (function() { - /** - * SearchTrialSpec searchTrialJobSpec. - * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} searchTrialJobSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @instance - */ - SearchTrialSpec.prototype.searchTrialJobSpec = null; + /** + * Properties of a StreamingPredictResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IStreamingPredictResponse + * @property {Array.|null} [outputs] StreamingPredictResponse outputs + * @property {google.cloud.aiplatform.v1.ITensor|null} [parameters] StreamingPredictResponse parameters + */ - /** - * SearchTrialSpec maxTrialCount. - * @member {number} maxTrialCount - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @instance - */ - SearchTrialSpec.prototype.maxTrialCount = 0; + /** + * Constructs a new StreamingPredictResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StreamingPredictResponse. + * @implements IStreamingPredictResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse=} [properties] Properties to set + */ + function StreamingPredictResponse(properties) { + this.outputs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SearchTrialSpec maxParallelTrialCount. - * @member {number} maxParallelTrialCount - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @instance - */ - SearchTrialSpec.prototype.maxParallelTrialCount = 0; + /** + * StreamingPredictResponse outputs. + * @member {Array.} outputs + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @instance + */ + StreamingPredictResponse.prototype.outputs = $util.emptyArray; - /** - * SearchTrialSpec maxFailedTrialCount. - * @member {number} maxFailedTrialCount - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @instance - */ - SearchTrialSpec.prototype.maxFailedTrialCount = 0; + /** + * StreamingPredictResponse parameters. + * @member {google.cloud.aiplatform.v1.ITensor|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @instance + */ + StreamingPredictResponse.prototype.parameters = null; - /** - * Creates a new SearchTrialSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance - */ - SearchTrialSpec.create = function create(properties) { - return new SearchTrialSpec(properties); - }; + /** + * Creates a new StreamingPredictResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse instance + */ + StreamingPredictResponse.create = function create(properties) { + return new StreamingPredictResponse(properties); + }; - /** - * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchTrialSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) - $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); - if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); - if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); - return writer; - }; + /** + * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingPredictResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.google.cloud.aiplatform.v1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.cloud.aiplatform.v1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a SearchTrialSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SearchTrialSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); - break; - } - case 2: { - message.maxTrialCount = reader.int32(); - break; - } - case 3: { - message.maxParallelTrialCount = reader.int32(); - break; - } - case 4: { - message.maxFailedTrialCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a StreamingPredictResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamingPredictResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingPredictResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); + break; } - return message; - }; + case 2: { + message.parameters = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamingPredictResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a SearchTrialSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SearchTrialSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { - var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.searchTrialJobSpec); - if (error) - return "searchTrialJobSpec." + error; - } - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - if (!$util.isInteger(message.maxTrialCount)) - return "maxTrialCount: integer expected"; - if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) - if (!$util.isInteger(message.maxParallelTrialCount)) - return "maxParallelTrialCount: integer expected"; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - if (!$util.isInteger(message.maxFailedTrialCount)) - return "maxFailedTrialCount: integer expected"; - return null; - }; + /** + * Verifies a StreamingPredictResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StreamingPredictResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.parameters); + if (error) + return "parameters." + error; + } + return null; + }; - /** - * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec - */ - SearchTrialSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); - if (object.searchTrialJobSpec != null) { - if (typeof object.searchTrialJobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); - message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.searchTrialJobSpec); - } - if (object.maxTrialCount != null) - message.maxTrialCount = object.maxTrialCount | 0; - if (object.maxParallelTrialCount != null) - message.maxParallelTrialCount = object.maxParallelTrialCount | 0; - if (object.maxFailedTrialCount != null) - message.maxFailedTrialCount = object.maxFailedTrialCount | 0; - return message; - }; + /** + * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + */ + StreamingPredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StreamingPredictResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.StreamingPredictResponse(); + if (object.outputs) { + if (!Array.isArray(object.outputs)) + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.outputs: array expected"); + message.outputs = []; + for (var i = 0; i < object.outputs.length; ++i) { + if (typeof object.outputs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.outputs: object expected"); + message.outputs[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.outputs[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.parameters: object expected"); + message.parameters = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.parameters); + } + return message; + }; - /** - * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SearchTrialSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.searchTrialJobSpec = null; - object.maxTrialCount = 0; - object.maxParallelTrialCount = 0; - object.maxFailedTrialCount = 0; - } - if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) - object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - object.maxTrialCount = message.maxTrialCount; - if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) - object.maxParallelTrialCount = message.maxParallelTrialCount; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - object.maxFailedTrialCount = message.maxFailedTrialCount; - return object; - }; + /** + * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {google.cloud.aiplatform.v1.StreamingPredictResponse} message StreamingPredictResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StreamingPredictResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.outputs = []; + if (options.defaults) + object.parameters = null; + if (message.outputs && message.outputs.length) { + object.outputs = []; + for (var j = 0; j < message.outputs.length; ++j) + object.outputs[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.outputs[j], options); + } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.parameters, options); + return object; + }; - /** - * Converts this SearchTrialSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @instance - * @returns {Object.} JSON object - */ - SearchTrialSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this StreamingPredictResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @instance + * @returns {Object.} JSON object + */ + StreamingPredictResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for SearchTrialSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; - }; + /** + * Gets the default type url for StreamingPredictResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamingPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingPredictResponse"; + }; - return SearchTrialSpec; - })(); + return StreamingPredictResponse; + })(); - MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + v1.ExplainRequest = (function() { - /** - * Properties of a TrainTrialSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @interface ITrainTrialSpec - * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec - * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount - * @property {number|null} [frequency] TrainTrialSpec frequency - */ + /** + * Properties of an ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IExplainRequest + * @property {string|null} [endpoint] ExplainRequest endpoint + * @property {Array.|null} [instances] ExplainRequest instances + * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters + * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride + * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + */ - /** - * Constructs a new TrainTrialSpec. - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec - * @classdesc Represents a TrainTrialSpec. - * @implements ITrainTrialSpec - * @constructor - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set - */ - function TrainTrialSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExplainRequest. + * @implements IExplainRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + */ + function ExplainRequest(properties) { + this.instances = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TrainTrialSpec trainTrialJobSpec. - * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trainTrialJobSpec - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @instance - */ - TrainTrialSpec.prototype.trainTrialJobSpec = null; + /** + * ExplainRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.endpoint = ""; - /** - * TrainTrialSpec maxParallelTrialCount. - * @member {number} maxParallelTrialCount - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @instance - */ - TrainTrialSpec.prototype.maxParallelTrialCount = 0; + /** + * ExplainRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.instances = $util.emptyArray; - /** - * TrainTrialSpec frequency. - * @member {number} frequency - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @instance - */ - TrainTrialSpec.prototype.frequency = 0; + /** + * ExplainRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.parameters = null; - /** - * Creates a new TrainTrialSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance - */ - TrainTrialSpec.create = function create(properties) { - return new TrainTrialSpec(properties); - }; + /** + * ExplainRequest explanationSpecOverride. + * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.explanationSpecOverride = null; - /** - * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainTrialSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) - $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); - if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); - return writer; - }; + /** + * ExplainRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.deployedModelId = ""; - /** - * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ExplainRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + */ + ExplainRequest.create = function create(properties) { + return new ExplainRequest(properties); + }; - /** - * Decodes a TrainTrialSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainTrialSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); - break; - } - case 2: { - message.maxParallelTrialCount = reader.int32(); - break; - } - case 3: { - message.frequency = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) + $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a TrainTrialSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainTrialSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { - var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trainTrialJobSpec); - if (error) - return "trainTrialJobSpec." + error; + /** + * Decodes an ExplainRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; } - if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) - if (!$util.isInteger(message.maxParallelTrialCount)) - return "maxParallelTrialCount: integer expected"; - if (message.frequency != null && message.hasOwnProperty("frequency")) - if (!$util.isInteger(message.frequency)) - return "frequency: integer expected"; - return null; - }; - - /** - * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec - */ - TrainTrialSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); - if (object.trainTrialJobSpec != null) { - if (typeof object.trainTrialJobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); - message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trainTrialJobSpec); + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; } - if (object.maxParallelTrialCount != null) - message.maxParallelTrialCount = object.maxParallelTrialCount | 0; - if (object.frequency != null) - message.frequency = object.frequency | 0; - return message; - }; - - /** - * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainTrialSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.trainTrialJobSpec = null; - object.maxParallelTrialCount = 0; - object.frequency = 0; + case 4: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; } - if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) - object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); - if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) - object.maxParallelTrialCount = message.maxParallelTrialCount; - if (message.frequency != null && message.hasOwnProperty("frequency")) - object.frequency = message.frequency; - return object; - }; + case 5: { + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + break; + } + case 3: { + message.deployedModelId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this TrainTrialSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @instance - * @returns {Object.} JSON object - */ - TrainTrialSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for TrainTrialSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; - }; + /** + * Verifies an ExplainRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplainRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { + var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); + if (error) + return "explanationSpecOverride." + error; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + return null; + }; - return TrainTrialSpec; - })(); + /** + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + */ + ExplainRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); + } + if (object.explanationSpecOverride != null) { + if (typeof object.explanationSpecOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + return message; + }; - /** - * MultiTrialAlgorithm enum. - * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm - * @enum {number} - * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value - * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value - * @property {number} GRID_SEARCH=2 GRID_SEARCH value - */ - MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; - values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; - values[valuesById[2] = "GRID_SEARCH"] = 2; - return values; - })(); + /** + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplainRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) { + object.endpoint = ""; + object.deployedModelId = ""; + object.parameters = null; + object.explanationSpecOverride = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) + object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); + return object; + }; - return MultiTrialAlgorithmSpec; - })(); + /** + * Converts this ExplainRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + * @returns {Object.} JSON object + */ + ExplainRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return NasJobSpec; + /** + * Gets the default type url for ExplainRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + }; + + return ExplainRequest; })(); - v1.NasJobOutput = (function() { + v1.ExplainResponse = (function() { /** - * Properties of a NasJobOutput. + * Properties of an ExplainResponse. * @memberof google.cloud.aiplatform.v1 - * @interface INasJobOutput - * @property {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput + * @interface IExplainResponse + * @property {Array.|null} [explanations] ExplainResponse explanations + * @property {string|null} [deployedModelId] ExplainResponse deployedModelId + * @property {Array.|null} [predictions] ExplainResponse predictions */ /** - * Constructs a new NasJobOutput. + * Constructs a new ExplainResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NasJobOutput. - * @implements INasJobOutput + * @classdesc Represents an ExplainResponse. + * @implements IExplainResponse * @constructor - * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set */ - function NasJobOutput(properties) { + function ExplainResponse(properties) { + this.explanations = []; + this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106661,89 +124978,109 @@ } /** - * NasJobOutput multiTrialJobOutput. - * @member {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * ExplainResponse explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @instance */ - NasJobOutput.prototype.multiTrialJobOutput = null; + ExplainResponse.prototype.explanations = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ExplainResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.deployedModelId = ""; /** - * NasJobOutput output. - * @member {"multiTrialJobOutput"|undefined} output - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * ExplainResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @instance */ - Object.defineProperty(NasJobOutput.prototype, "output", { - get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExplainResponse.prototype.predictions = $util.emptyArray; /** - * Creates a new NasJobOutput instance using the specified properties. + * Creates a new ExplainResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput instance + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance */ - NasJobOutput.create = function create(properties) { - return new NasJobOutput(properties); + ExplainResponse.create = function create(properties) { + return new ExplainResponse(properties); }; /** - * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJobOutput.encode = function encode(message, writer) { + ExplainResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) - $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.predictions != null && message.predictions.length) + for (var i = 0; i < message.predictions.length; ++i) + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NasJobOutput message from the specified reader or buffer. + * Decodes an ExplainResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJobOutput.decode = function decode(reader, length) { + ExplainResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } default: @@ -106755,405 +125092,176 @@ }; /** - * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasJobOutput.decodeDelimited = function decodeDelimited(reader) { + ExplainResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NasJobOutput message. + * Verifies an ExplainResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NasJobOutput.verify = function verify(message) { + ExplainResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { - properties.output = 1; - { - var error = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); + if (message.explanations != null && message.hasOwnProperty("explanations")) { + if (!Array.isArray(message.explanations)) + return "explanations: array expected"; + for (var i = 0; i < message.explanations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Explanation.verify(message.explanations[i]); if (error) - return "multiTrialJobOutput." + error; + return "explanations." + error; + } + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.predictions != null && message.hasOwnProperty("predictions")) { + if (!Array.isArray(message.predictions)) + return "predictions: array expected"; + for (var i = 0; i < message.predictions.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.predictions[i]); + if (error) + return "predictions." + error; } } return null; }; /** - * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse */ - NasJobOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput) + ExplainResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); - if (object.multiTrialJobOutput != null) { - if (typeof object.multiTrialJobOutput !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.multiTrialJobOutput: object expected"); - message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); + var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: array expected"); + message.explanations = []; + for (var i = 0; i < object.explanations.length; ++i) { + if (typeof object.explanations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); + } + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: array expected"); + message.predictions = []; + for (var i = 0; i < object.predictions.length; ++i) { + if (typeof object.predictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } } return message; }; /** - * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static - * @param {google.cloud.aiplatform.v1.NasJobOutput} message NasJobOutput + * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NasJobOutput.toObject = function toObject(message, options) { + ExplainResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { - object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); - if (options.oneofs) - object.output = "multiTrialJobOutput"; + if (options.arrays || options.defaults) { + object.explanations = []; + object.predictions = []; + } + if (options.defaults) + object.deployedModelId = ""; + if (message.explanations && message.explanations.length) { + object.explanations = []; + for (var j = 0; j < message.explanations.length; ++j) + object.explanations[j] = $root.google.cloud.aiplatform.v1.Explanation.toObject(message.explanations[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.predictions && message.predictions.length) { + object.predictions = []; + for (var j = 0; j < message.predictions.length; ++j) + object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); } return object; }; /** - * Converts this NasJobOutput to JSON. + * Converts this ExplainResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @instance * @returns {Object.} JSON object */ - NasJobOutput.prototype.toJSON = function toJSON() { + ExplainResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NasJobOutput + * Gets the default type url for ExplainResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @memberof google.cloud.aiplatform.v1.ExplainResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExplainResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainResponse"; }; - NasJobOutput.MultiTrialJobOutput = (function() { - - /** - * Properties of a MultiTrialJobOutput. - * @memberof google.cloud.aiplatform.v1.NasJobOutput - * @interface IMultiTrialJobOutput - * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials - * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials - */ - - /** - * Constructs a new MultiTrialJobOutput. - * @memberof google.cloud.aiplatform.v1.NasJobOutput - * @classdesc Represents a MultiTrialJobOutput. - * @implements IMultiTrialJobOutput - * @constructor - * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set - */ - function MultiTrialJobOutput(properties) { - this.searchTrials = []; - this.trainTrials = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MultiTrialJobOutput searchTrials. - * @member {Array.} searchTrials - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @instance - */ - MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; - - /** - * MultiTrialJobOutput trainTrials. - * @member {Array.} trainTrials - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @instance - */ - MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; - - /** - * Creates a new MultiTrialJobOutput instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance - */ - MultiTrialJobOutput.create = function create(properties) { - return new MultiTrialJobOutput(properties); - }; - - /** - * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MultiTrialJobOutput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.searchTrials != null && message.searchTrials.length) - for (var i = 0; i < message.searchTrials.length; ++i) - $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainTrials != null && message.trainTrials.length) - for (var i = 0; i < message.trainTrials.length; ++i) - $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MultiTrialJobOutput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MultiTrialJobOutput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.searchTrials && message.searchTrials.length)) - message.searchTrials = []; - message.searchTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.trainTrials && message.trainTrials.length)) - message.trainTrials = []; - message.trainTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MultiTrialJobOutput message. - * @function verify - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MultiTrialJobOutput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { - if (!Array.isArray(message.searchTrials)) - return "searchTrials: array expected"; - for (var i = 0; i < message.searchTrials.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrials[i]); - if (error) - return "searchTrials." + error; - } - } - if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { - if (!Array.isArray(message.trainTrials)) - return "trainTrials: array expected"; - for (var i = 0; i < message.trainTrials.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrials[i]); - if (error) - return "trainTrials." + error; - } - } - return null; - }; - - /** - * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput - */ - MultiTrialJobOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput) - return object; - var message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); - if (object.searchTrials) { - if (!Array.isArray(object.searchTrials)) - throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); - message.searchTrials = []; - for (var i = 0; i < object.searchTrials.length; ++i) { - if (typeof object.searchTrials[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); - message.searchTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrials[i]); - } - } - if (object.trainTrials) { - if (!Array.isArray(object.trainTrials)) - throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); - message.trainTrials = []; - for (var i = 0; i < object.trainTrials.length; ++i) { - if (typeof object.trainTrials[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); - message.trainTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrials[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MultiTrialJobOutput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.searchTrials = []; - object.trainTrials = []; - } - if (message.searchTrials && message.searchTrials.length) { - object.searchTrials = []; - for (var j = 0; j < message.searchTrials.length; ++j) - object.searchTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrials[j], options); - } - if (message.trainTrials && message.trainTrials.length) { - object.trainTrials = []; - for (var j = 0; j < message.trainTrials.length; ++j) - object.trainTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrials[j], options); - } - return object; - }; - - /** - * Converts this MultiTrialJobOutput to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @instance - * @returns {Object.} JSON object - */ - MultiTrialJobOutput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MultiTrialJobOutput - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput"; - }; - - return MultiTrialJobOutput; - })(); - - return NasJobOutput; + return ExplainResponse; })(); - v1.NasTrial = (function() { + v1.CountTokensRequest = (function() { /** - * Properties of a NasTrial. + * Properties of a CountTokensRequest. * @memberof google.cloud.aiplatform.v1 - * @interface INasTrial - * @property {string|null} [id] NasTrial id - * @property {google.cloud.aiplatform.v1.NasTrial.State|null} [state] NasTrial state - * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement - * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime - * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime + * @interface ICountTokensRequest + * @property {string|null} [endpoint] CountTokensRequest endpoint + * @property {Array.|null} [instances] CountTokensRequest instances */ /** - * Constructs a new NasTrial. + * Constructs a new CountTokensRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a NasTrial. - * @implements INasTrial + * @classdesc Represents a CountTokensRequest. + * @implements ICountTokensRequest * @constructor - * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICountTokensRequest=} [properties] Properties to set */ - function NasTrial(properties) { + function CountTokensRequest(properties) { + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107161,131 +125269,92 @@ } /** - * NasTrial id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1.NasTrial - * @instance - */ - NasTrial.prototype.id = ""; - - /** - * NasTrial state. - * @member {google.cloud.aiplatform.v1.NasTrial.State} state - * @memberof google.cloud.aiplatform.v1.NasTrial - * @instance - */ - NasTrial.prototype.state = 0; - - /** - * NasTrial finalMeasurement. - * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement - * @memberof google.cloud.aiplatform.v1.NasTrial - * @instance - */ - NasTrial.prototype.finalMeasurement = null; - - /** - * NasTrial startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.NasTrial + * CountTokensRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @instance */ - NasTrial.prototype.startTime = null; + CountTokensRequest.prototype.endpoint = ""; /** - * NasTrial endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.NasTrial + * CountTokensRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @instance */ - NasTrial.prototype.endTime = null; + CountTokensRequest.prototype.instances = $util.emptyArray; /** - * Creates a new NasTrial instance using the specified properties. + * Creates a new CountTokensRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial instance + * @param {google.cloud.aiplatform.v1.ICountTokensRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CountTokensRequest} CountTokensRequest instance */ - NasTrial.create = function create(properties) { - return new NasTrial(properties); + CountTokensRequest.create = function create(properties) { + return new CountTokensRequest(properties); }; /** - * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * Encodes the specified CountTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICountTokensRequest} message CountTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasTrial.encode = function encode(message, writer) { + CountTokensRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) - $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * Encodes the specified CountTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICountTokensRequest} message CountTokensRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NasTrial.encodeDelimited = function encodeDelimited(message, writer) { + CountTokensRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NasTrial message from the specified reader or buffer. + * Decodes a CountTokensRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + * @returns {google.cloud.aiplatform.v1.CountTokensRequest} CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasTrial.decode = function decode(reader, length) { + CountTokensRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrial(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CountTokensRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - message.state = reader.int32(); - break; - } - case 3: { - message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } default: @@ -107297,236 +125366,149 @@ }; /** - * Decodes a NasTrial message from the specified reader or buffer, length delimited. + * Decodes a CountTokensRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + * @returns {google.cloud.aiplatform.v1.CountTokensRequest} CountTokensRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NasTrial.decodeDelimited = function decodeDelimited(reader) { + CountTokensRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NasTrial message. + * Verifies a CountTokensRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NasTrial.verify = function verify(message) { + CountTokensRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; } - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { - var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); - if (error) - return "finalMeasurement." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; } return null; }; /** - * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial + * @returns {google.cloud.aiplatform.v1.CountTokensRequest} CountTokensRequest */ - NasTrial.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.NasTrial) + CountTokensRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CountTokensRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.NasTrial(); - if (object.id != null) - message.id = String(object.id); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + var message = new $root.google.cloud.aiplatform.v1.CountTokensRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.CountTokensRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CountTokensRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "REQUESTED": - case 1: - message.state = 1; - break; - case "ACTIVE": - case 2: - message.state = 2; - break; - case "STOPPING": - case 3: - message.state = 3; - break; - case "SUCCEEDED": - case 4: - message.state = 4; - break; - case "INFEASIBLE": - case 5: - message.state = 5; - break; - } - if (object.finalMeasurement != null) { - if (typeof object.finalMeasurement !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasTrial.finalMeasurement: object expected"); - message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasTrial.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.NasTrial.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * Creates a plain object from a CountTokensRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static - * @param {google.cloud.aiplatform.v1.NasTrial} message NasTrial + * @param {google.cloud.aiplatform.v1.CountTokensRequest} message CountTokensRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NasTrial.toObject = function toObject(message, options) { + CountTokensRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.id = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.finalMeasurement = null; - object.startTime = null; - object.endTime = null; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.endpoint = ""; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] : message.state; - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) - object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this NasTrial to JSON. + * Converts this CountTokensRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @instance * @returns {Object.} JSON object */ - NasTrial.prototype.toJSON = function toJSON() { + CountTokensRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NasTrial + * Gets the default type url for CountTokensRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.NasTrial + * @memberof google.cloud.aiplatform.v1.CountTokensRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CountTokensRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrial"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CountTokensRequest"; }; - /** - * State enum. - * @name google.cloud.aiplatform.v1.NasTrial.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} REQUESTED=1 REQUESTED value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} STOPPING=3 STOPPING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} INFEASIBLE=5 INFEASIBLE value - */ - NasTrial.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "REQUESTED"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "STOPPING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "INFEASIBLE"] = 5; - return values; - })(); - - return NasTrial; + return CountTokensRequest; })(); - v1.LineageSubgraph = (function() { + v1.CountTokensResponse = (function() { /** - * Properties of a LineageSubgraph. + * Properties of a CountTokensResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ILineageSubgraph - * @property {Array.|null} [artifacts] LineageSubgraph artifacts - * @property {Array.|null} [executions] LineageSubgraph executions - * @property {Array.|null} [events] LineageSubgraph events + * @interface ICountTokensResponse + * @property {number|null} [totalTokens] CountTokensResponse totalTokens + * @property {number|null} [totalBillableCharacters] CountTokensResponse totalBillableCharacters */ /** - * Constructs a new LineageSubgraph. + * Constructs a new CountTokensResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a LineageSubgraph. - * @implements ILineageSubgraph + * @classdesc Represents a CountTokensResponse. + * @implements ICountTokensResponse * @constructor - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICountTokensResponse=} [properties] Properties to set */ - function LineageSubgraph(properties) { - this.artifacts = []; - this.executions = []; - this.events = []; + function CountTokensResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107534,112 +125516,89 @@ } /** - * LineageSubgraph artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.artifacts = $util.emptyArray; - - /** - * LineageSubgraph executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * CountTokensResponse totalTokens. + * @member {number} totalTokens + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @instance */ - LineageSubgraph.prototype.executions = $util.emptyArray; + CountTokensResponse.prototype.totalTokens = 0; /** - * LineageSubgraph events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * CountTokensResponse totalBillableCharacters. + * @member {number} totalBillableCharacters + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @instance */ - LineageSubgraph.prototype.events = $util.emptyArray; + CountTokensResponse.prototype.totalBillableCharacters = 0; /** - * Creates a new LineageSubgraph instance using the specified properties. + * Creates a new CountTokensResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance + * @param {google.cloud.aiplatform.v1.ICountTokensResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CountTokensResponse} CountTokensResponse instance */ - LineageSubgraph.create = function create(properties) { - return new LineageSubgraph(properties); + CountTokensResponse.create = function create(properties) { + return new CountTokensResponse(properties); }; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * Encodes the specified CountTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICountTokensResponse} message CountTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LineageSubgraph.encode = function encode(message, writer) { + CountTokensResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.totalTokens != null && Object.hasOwnProperty.call(message, "totalTokens")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.totalTokens); + if (message.totalBillableCharacters != null && Object.hasOwnProperty.call(message, "totalBillableCharacters")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.totalBillableCharacters); return writer; }; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * Encodes the specified CountTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CountTokensResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICountTokensResponse} message CountTokensResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { + CountTokensResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. + * Decodes a CountTokensResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1.CountTokensResponse} CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LineageSubgraph.decode = function decode(reader, length) { + CountTokensResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CountTokensResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + message.totalTokens = reader.int32(); break; } case 2: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + message.totalBillableCharacters = reader.int32(); break; } default: @@ -107651,170 +125610,111 @@ }; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * Decodes a CountTokensResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1.CountTokensResponse} CountTokensResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { + CountTokensResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LineageSubgraph message. + * Verifies a CountTokensResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LineageSubgraph.verify = function verify(message) { + CountTokensResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } + if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) + if (!$util.isInteger(message.totalTokens)) + return "totalTokens: integer expected"; + if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) + if (!$util.isInteger(message.totalBillableCharacters)) + return "totalBillableCharacters: integer expected"; return null; }; /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * Creates a CountTokensResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph + * @returns {google.cloud.aiplatform.v1.CountTokensResponse} CountTokensResponse */ - LineageSubgraph.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) + CountTokensResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CountTokensResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); - } - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); - } - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.CountTokensResponse(); + if (object.totalTokens != null) + message.totalTokens = object.totalTokens | 0; + if (object.totalBillableCharacters != null) + message.totalBillableCharacters = object.totalBillableCharacters | 0; return message; }; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * Creates a plain object from a CountTokensResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static - * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph + * @param {google.cloud.aiplatform.v1.CountTokensResponse} message CountTokensResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LineageSubgraph.toObject = function toObject(message, options) { + CountTokensResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - object.events = []; - } - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); - } - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + if (options.defaults) { + object.totalTokens = 0; + object.totalBillableCharacters = 0; } + if (message.totalTokens != null && message.hasOwnProperty("totalTokens")) + object.totalTokens = message.totalTokens; + if (message.totalBillableCharacters != null && message.hasOwnProperty("totalBillableCharacters")) + object.totalBillableCharacters = message.totalBillableCharacters; return object; }; /** - * Converts this LineageSubgraph to JSON. + * Converts this CountTokensResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @instance * @returns {Object.} JSON object */ - LineageSubgraph.prototype.toJSON = function toJSON() { + CountTokensResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LineageSubgraph + * Gets the default type url for CountTokensResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @memberof google.cloud.aiplatform.v1.CountTokensResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CountTokensResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CountTokensResponse"; }; - return LineageSubgraph; + return CountTokensResponse; })(); v1.MatchService = (function() { @@ -140708,776 +158608,24 @@ * Creates a new GetModelEvaluationRequest instance using the specified properties. * @function create * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance - */ - GetModelEvaluationRequest.create = function create(properties) { - return new GetModelEvaluationRequest(properties); - }; - - /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); - 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 GetModelEvaluationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetModelEvaluationRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelEvaluationRequest.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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest - */ - GetModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelEvaluationRequest.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 GetModelEvaluationRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @instance - * @returns {Object.} JSON object - */ - GetModelEvaluationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetModelEvaluationRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; - }; - - return GetModelEvaluationRequest; - })(); - - v1.ListModelEvaluationsRequest = (function() { - - /** - * Properties of a ListModelEvaluationsRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsRequest - * @property {string|null} [parent] ListModelEvaluationsRequest parent - * @property {string|null} [filter] ListModelEvaluationsRequest filter - * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask - */ - - /** - * Constructs a new ListModelEvaluationsRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsRequest. - * @implements IListModelEvaluationsRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set - */ - function ListModelEvaluationsRequest(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]]; - } - - /** - * ListModelEvaluationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.parent = ""; - - /** - * ListModelEvaluationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.filter = ""; - - /** - * ListModelEvaluationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageSize = 0; - - /** - * ListModelEvaluationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageToken = ""; - - /** - * ListModelEvaluationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.readMask = null; - - /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance - */ - ListModelEvaluationsRequest.create = function create(properties) { - return new ListModelEvaluationsRequest(properties); - }; - - /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListModelEvaluationsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelEvaluationsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; - - /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest - */ - ListModelEvaluationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; - - /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelEvaluationsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; - - /** - * Converts this ListModelEvaluationsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - * @returns {Object.} JSON object - */ - ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListModelEvaluationsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; - }; - - return ListModelEvaluationsRequest; - })(); - - v1.ListModelEvaluationsResponse = (function() { - - /** - * Properties of a ListModelEvaluationsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsResponse - * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations - * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken - */ - - /** - * Constructs a new ListModelEvaluationsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsResponse. - * @implements IListModelEvaluationsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set - */ - function ListModelEvaluationsResponse(properties) { - this.modelEvaluations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListModelEvaluationsResponse modelEvaluations. - * @member {Array.} modelEvaluations - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @instance - */ - ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; - - /** - * ListModelEvaluationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @instance - */ - ListModelEvaluationsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance - */ - ListModelEvaluationsResponse.create = function create(properties) { - return new ListModelEvaluationsResponse(properties); - }; - - /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelEvaluations != null && message.modelEvaluations.length) - for (var i = 0; i < message.modelEvaluations.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; - - /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.modelEvaluations && message.modelEvaluations.length)) - message.modelEvaluations = []; - message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListModelEvaluationsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelEvaluationsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { - if (!Array.isArray(message.modelEvaluations)) - return "modelEvaluations: array expected"; - for (var i = 0; i < message.modelEvaluations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); - if (error) - return "modelEvaluations." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse - */ - ListModelEvaluationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); - if (object.modelEvaluations) { - if (!Array.isArray(object.modelEvaluations)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); - message.modelEvaluations = []; - for (var i = 0; i < object.modelEvaluations.length; ++i) { - if (typeof object.modelEvaluations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); - message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelEvaluationsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluations && message.modelEvaluations.length) { - object.modelEvaluations = []; - for (var j = 0; j < message.modelEvaluations.length; ++j) - object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListModelEvaluationsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @instance - * @returns {Object.} JSON object - */ - ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListModelEvaluationsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; - }; - - return ListModelEvaluationsResponse; - })(); - - v1.GetModelEvaluationSliceRequest = (function() { - - /** - * Properties of a GetModelEvaluationSliceRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelEvaluationSliceRequest - * @property {string|null} [name] GetModelEvaluationSliceRequest name - */ - - /** - * Constructs a new GetModelEvaluationSliceRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelEvaluationSliceRequest. - * @implements IGetModelEvaluationSliceRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - */ - function GetModelEvaluationSliceRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetModelEvaluationSliceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest - * @instance - */ - GetModelEvaluationSliceRequest.prototype.name = ""; - - /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance */ - GetModelEvaluationSliceRequest.create = function create(properties) { - return new GetModelEvaluationSliceRequest(properties); + GetModelEvaluationRequest.create = function create(properties) { + return new GetModelEvaluationRequest(properties); }; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encode = function encode(message, writer) { + GetModelEvaluationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -141486,33 +158634,33 @@ }; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decode = function decode(reader, length) { + GetModelEvaluationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -141529,30 +158677,30 @@ }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationSliceRequest message. + * Verifies a GetModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationSliceRequest.verify = function verify(message) { + GetModelEvaluationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -141562,32 +158710,32 @@ }; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest */ - GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) + GetModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest + * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { + GetModelEvaluationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -141599,56 +158747,56 @@ }; /** - * Converts this GetModelEvaluationSliceRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @instance * @returns {Object.} JSON object */ - GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { + GetModelEvaluationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationSliceRequest + * Gets the default type url for GetModelEvaluationRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; }; - return GetModelEvaluationSliceRequest; + return GetModelEvaluationRequest; })(); - v1.ListModelEvaluationSlicesRequest = (function() { + v1.ListModelEvaluationsRequest = (function() { /** - * Properties of a ListModelEvaluationSlicesRequest. + * Properties of a ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesRequest - * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent - * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter - * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + * @interface IListModelEvaluationsRequest + * @property {string|null} [parent] ListModelEvaluationsRequest parent + * @property {string|null} [filter] ListModelEvaluationsRequest filter + * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask */ /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesRequest. - * @implements IListModelEvaluationSlicesRequest + * @classdesc Represents a ListModelEvaluationsRequest. + * @implements IListModelEvaluationsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set */ - function ListModelEvaluationSlicesRequest(properties) { + function ListModelEvaluationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141656,67 +158804,67 @@ } /** - * ListModelEvaluationSlicesRequest parent. + * ListModelEvaluationsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.parent = ""; + ListModelEvaluationsRequest.prototype.parent = ""; /** - * ListModelEvaluationSlicesRequest filter. + * ListModelEvaluationsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.filter = ""; + ListModelEvaluationsRequest.prototype.filter = ""; /** - * ListModelEvaluationSlicesRequest pageSize. + * ListModelEvaluationsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageSize = 0; + ListModelEvaluationsRequest.prototype.pageSize = 0; /** - * ListModelEvaluationSlicesRequest pageToken. + * ListModelEvaluationsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + ListModelEvaluationsRequest.prototype.pageToken = ""; /** - * ListModelEvaluationSlicesRequest readMask. + * ListModelEvaluationsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.readMask = null; + ListModelEvaluationsRequest.prototype.readMask = null; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance */ - ListModelEvaluationSlicesRequest.create = function create(properties) { - return new ListModelEvaluationSlicesRequest(properties); + ListModelEvaluationsRequest.create = function create(properties) { + return new ListModelEvaluationsRequest(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + ListModelEvaluationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -141733,33 +158881,33 @@ }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + ListModelEvaluationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -141792,30 +158940,30 @@ }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a ListModelEvaluationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesRequest.verify = function verify(message) { + ListModelEvaluationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -141839,17 +158987,17 @@ }; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest */ - ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) + ListModelEvaluationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -141860,22 +159008,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + ListModelEvaluationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -141900,54 +159048,54 @@ }; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesRequest + * Gets the default type url for ListModelEvaluationsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; }; - return ListModelEvaluationSlicesRequest; + return ListModelEvaluationsRequest; })(); - v1.ListModelEvaluationSlicesResponse = (function() { + v1.ListModelEvaluationsResponse = (function() { /** - * Properties of a ListModelEvaluationSlicesResponse. + * Properties of a ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesResponse - * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices - * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken + * @interface IListModelEvaluationsResponse + * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations + * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken */ /** - * Constructs a new ListModelEvaluationSlicesResponse. + * Constructs a new ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesResponse. - * @implements IListModelEvaluationSlicesResponse + * @classdesc Represents a ListModelEvaluationsResponse. + * @implements IListModelEvaluationsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set */ - function ListModelEvaluationSlicesResponse(properties) { - this.modelEvaluationSlices = []; + function ListModelEvaluationsResponse(properties) { + this.modelEvaluations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -141955,88 +159103,88 @@ } /** - * ListModelEvaluationSlicesResponse modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * ListModelEvaluationsResponse modelEvaluations. + * @member {Array.} modelEvaluations + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; + ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; /** - * ListModelEvaluationSlicesResponse nextPageToken. + * ListModelEvaluationsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; + ListModelEvaluationsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance */ - ListModelEvaluationSlicesResponse.create = function create(properties) { - return new ListModelEvaluationSlicesResponse(properties); + ListModelEvaluationsResponse.create = function create(properties) { + return new ListModelEvaluationsResponse(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { + ListModelEvaluationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelEvaluations != null && message.modelEvaluations.length) + for (var i = 0; i < message.modelEvaluations.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { + ListModelEvaluationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + if (!(message.modelEvaluations && message.modelEvaluations.length)) + message.modelEvaluations = []; + message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); break; } case 2: { @@ -142052,39 +159200,39 @@ }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies a ListModelEvaluationsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesResponse.verify = function verify(message) { + ListModelEvaluationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { + if (!Array.isArray(message.modelEvaluations)) + return "modelEvaluations: array expected"; + for (var i = 0; i < message.modelEvaluations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); if (error) - return "modelEvaluationSlices." + error; + return "modelEvaluations." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -142094,25 +159242,25 @@ }; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse */ - ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) + ListModelEvaluationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); + if (object.modelEvaluations) { + if (!Array.isArray(object.modelEvaluations)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); + message.modelEvaluations = []; + for (var i = 0; i < object.modelEvaluations.length; ++i) { + if (typeof object.modelEvaluations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); + message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); } } if (object.nextPageToken != null) @@ -142121,26 +159269,26 @@ }; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + ListModelEvaluationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; + object.modelEvaluations = []; if (options.defaults) object.nextPageToken = ""; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + if (message.modelEvaluations && message.modelEvaluations.length) { + object.modelEvaluations = []; + for (var j = 0; j < message.modelEvaluations.length; ++j) + object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -142148,88 +159296,52 @@ }; /** - * Converts this ListModelEvaluationSlicesResponse to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for ListModelEvaluationsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; }; - return ListModelEvaluationSlicesResponse; - })(); - - /** - * PipelineFailurePolicy enum. - * @name google.cloud.aiplatform.v1.PipelineFailurePolicy - * @enum {number} - * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value - */ - v1.PipelineFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; - values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; - return values; + return ListModelEvaluationsResponse; })(); - v1.PipelineJob = (function() { + v1.GetModelEvaluationSliceRequest = (function() { /** - * Properties of a PipelineJob. + * Properties of a GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJob - * @property {string|null} [name] PipelineJob name - * @property {string|null} [displayName] PipelineJob displayName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime - * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state - * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail - * @property {google.rpc.IStatus|null} [error] PipelineJob error - * @property {Object.|null} [labels] PipelineJob labels - * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec - * @property {string|null} [serviceAccount] PipelineJob serviceAccount - * @property {string|null} [network] PipelineJob network - * @property {Array.|null} [reservedIpRanges] PipelineJob reservedIpRanges - * @property {string|null} [templateUri] PipelineJob templateUri - * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata - * @property {string|null} [scheduleName] PipelineJob scheduleName + * @interface IGetModelEvaluationSliceRequest + * @property {string|null} [name] GetModelEvaluationSliceRequest name */ /** - * Constructs a new PipelineJob. + * Constructs a new GetModelEvaluationSliceRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJob. - * @implements IPipelineJob + * @classdesc Represents a GetModelEvaluationSliceRequest. + * @implements IGetModelEvaluationSliceRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set */ - function PipelineJob(properties) { - this.labels = {}; - this.reservedIpRanges = []; + function GetModelEvaluationSliceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -142237,252 +159349,70 @@ } /** - * PipelineJob name. + * GetModelEvaluationSliceRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.name = ""; - - /** - * PipelineJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.displayName = ""; - - /** - * PipelineJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.createTime = null; - - /** - * PipelineJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.startTime = null; - - /** - * PipelineJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.endTime = null; - - /** - * PipelineJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.updateTime = null; - - /** - * PipelineJob pipelineSpec. - * @member {google.protobuf.IStruct|null|undefined} pipelineSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.pipelineSpec = null; - - /** - * PipelineJob state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.state = 0; - - /** - * PipelineJob jobDetail. - * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.jobDetail = null; - - /** - * PipelineJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.error = null; - - /** - * PipelineJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.labels = $util.emptyObject; - - /** - * PipelineJob runtimeConfig. - * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.runtimeConfig = null; - - /** - * PipelineJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.encryptionSpec = null; - - /** - * PipelineJob serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.serviceAccount = ""; - - /** - * PipelineJob network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.network = ""; - - /** - * PipelineJob reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.reservedIpRanges = $util.emptyArray; - - /** - * PipelineJob templateUri. - * @member {string} templateUri - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.templateUri = ""; - - /** - * PipelineJob templateMetadata. - * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.templateMetadata = null; - - /** - * PipelineJob scheduleName. - * @member {string} scheduleName - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance */ - PipelineJob.prototype.scheduleName = ""; + GetModelEvaluationSliceRequest.prototype.name = ""; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance */ - PipelineJob.create = function create(properties) { - return new PipelineJob(properties); + GetModelEvaluationSliceRequest.create = function create(properties) { + return new GetModelEvaluationSliceRequest(properties); }; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encode = function encode(message, writer) { + GetModelEvaluationSliceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) - $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) - $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); - if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); - if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) - $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.scheduleName != null && Object.hasOwnProperty.call(message, "scheduleName")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.scheduleName); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 25, wireType 2 =*/202).string(message.reservedIpRanges[i]); return writer; }; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decode = function decode(reader, length) { + GetModelEvaluationSliceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -142490,99 +159420,6 @@ message.name = reader.string(); break; } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 8: { - message.state = reader.int32(); - break; - } - case 9: { - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); - break; - } - case 16: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 17: { - message.serviceAccount = reader.string(); - break; - } - case 18: { - message.network = reader.string(); - break; - } - case 25: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - } - case 19: { - message.templateUri = reader.string(); - break; - } - case 20: { - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); - break; - } - case 22: { - message.scheduleName = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -142592,1066 +159429,126 @@ }; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJob message. + * Verifies a GetModelEvaluationSliceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.verify = function verify(message) { + GetModelEvaluationSliceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { - var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); - if (error) - return "pipelineSpec." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); - if (error) - return "jobDetail." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); - if (error) - return "runtimeConfig." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; - } - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - if (!$util.isString(message.templateUri)) - return "templateUri: string expected"; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); - if (error) - return "templateMetadata." + error; - } - if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) - if (!$util.isString(message.scheduleName)) - return "scheduleName: string expected"; - return null; - }; - - /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob - */ - PipelineJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.pipelineSpec != null) { - if (typeof object.pipelineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); - message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.jobDetail != null) { - if (typeof object.jobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.runtimeConfig != null) { - if (typeof object.runtimeConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); - } - if (object.templateUri != null) - message.templateUri = String(object.templateUri); - if (object.templateMetadata != null) { - if (typeof object.templateMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); - } - if (object.scheduleName != null) - message.scheduleName = String(object.scheduleName); + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + */ + GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob + * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJob.toObject = function toObject(message, options) { + GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.pipelineSpec = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.jobDetail = null; - object.error = null; - object.runtimeConfig = null; - object.encryptionSpec = null; - object.serviceAccount = ""; - object.network = ""; - object.templateUri = ""; - object.templateMetadata = null; - object.scheduleName = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) - object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) - object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) - object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - object.templateUri = message.templateUri; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) - object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); - if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) - object.scheduleName = message.scheduleName; - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } return object; }; /** - * Converts this PipelineJob to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance * @returns {Object.} JSON object */ - PipelineJob.prototype.toJSON = function toJSON() { + GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for GetModelEvaluationSliceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; }; - PipelineJob.RuntimeConfig = (function() { - - /** - * Properties of a RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @interface IRuntimeConfig - * @property {Object.|null} [parameters] RuntimeConfig parameters - * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory - * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues - * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy - * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts - */ - - /** - * Constructs a new RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @classdesc Represents a RuntimeConfig. - * @implements IRuntimeConfig - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - */ - function RuntimeConfig(properties) { - this.parameters = {}; - this.parameterValues = {}; - this.inputArtifacts = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RuntimeConfig parameters. - * @member {Object.} parameters - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameters = $util.emptyObject; - - /** - * RuntimeConfig gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.gcsOutputDirectory = ""; - - /** - * RuntimeConfig parameterValues. - * @member {Object.} parameterValues - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameterValues = $util.emptyObject; - - /** - * RuntimeConfig failurePolicy. - * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.failurePolicy = 0; - - /** - * RuntimeConfig inputArtifacts. - * @member {Object.} inputArtifacts - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance - */ - RuntimeConfig.create = function create(properties) { - return new RuntimeConfig(properties); - }; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); - if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) - for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); - if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) - for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - } - case 2: { - message.gcsOutputDirectory = reader.string(); - break; - } - case 3: { - if (message.parameterValues === $util.emptyObject) - message.parameterValues = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameterValues[key] = value; - break; - } - case 4: { - message.failurePolicy = reader.int32(); - break; - } - case 5: { - if (message.inputArtifacts === $util.emptyObject) - message.inputArtifacts = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputArtifacts[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RuntimeConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { - if (!$util.isObject(message.parameterValues)) - return "parameterValues: object expected"; - var key = Object.keys(message.parameterValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); - if (error) - return "parameterValues." + error; - } - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - switch (message.failurePolicy) { - default: - return "failurePolicy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { - if (!$util.isObject(message.inputArtifacts)) - return "inputArtifacts: object expected"; - var key = Object.keys(message.inputArtifacts); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); - if (error) - return "inputArtifacts." + error; - } - } - return null; - }; - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - */ - RuntimeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); - } - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - if (object.parameterValues) { - if (typeof object.parameterValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues = {}; - for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { - if (typeof object.parameterValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); - } - } - switch (object.failurePolicy) { - default: - if (typeof object.failurePolicy === "number") { - message.failurePolicy = object.failurePolicy; - break; - } - break; - case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": - case 0: - message.failurePolicy = 0; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": - case 1: - message.failurePolicy = 1; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_FAST": - case 2: - message.failurePolicy = 2; - break; - } - if (object.inputArtifacts) { - if (typeof object.inputArtifacts !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts = {}; - for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { - if (typeof object.inputArtifacts[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RuntimeConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.parameters = {}; - object.parameterValues = {}; - object.inputArtifacts = {}; - } - if (options.defaults) { - object.gcsOutputDirectory = ""; - object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; - } - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; - if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { - object.parameterValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; - if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { - object.inputArtifacts = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); - } - return object; - }; - - /** - * Converts this RuntimeConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - * @returns {Object.} JSON object - */ - RuntimeConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RuntimeConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; - }; - - RuntimeConfig.InputArtifact = (function() { - - /** - * Properties of an InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @interface IInputArtifact - * @property {string|null} [artifactId] InputArtifact artifactId - */ - - /** - * Constructs a new InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @classdesc Represents an InputArtifact. - * @implements IInputArtifact - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - */ - function InputArtifact(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputArtifact artifactId. - * @member {string|null|undefined} artifactId - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - InputArtifact.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputArtifact kind. - * @member {"artifactId"|undefined} kind - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - Object.defineProperty(InputArtifact.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputArtifact instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance - */ - InputArtifact.create = function create(properties) { - return new InputArtifact(properties); - }; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - return writer; - }; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputArtifact message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputArtifact.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.kind = 1; - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - } - return null; - }; - - /** - * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - */ - InputArtifact.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; - - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputArtifact.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - object.artifactId = message.artifactId; - if (options.oneofs) - object.kind = "artifactId"; - } - return object; - }; - - /** - * Converts this InputArtifact to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - * @returns {Object.} JSON object - */ - InputArtifact.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InputArtifact - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; - }; - - return InputArtifact; - })(); - - return RuntimeConfig; - })(); - - return PipelineJob; + return GetModelEvaluationSliceRequest; })(); - v1.PipelineTemplateMetadata = (function() { + v1.ListModelEvaluationSlicesRequest = (function() { /** - * Properties of a PipelineTemplateMetadata. + * Properties of a ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTemplateMetadata - * @property {string|null} [version] PipelineTemplateMetadata version + * @interface IListModelEvaluationSlicesRequest + * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent + * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter + * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask */ /** - * Constructs a new PipelineTemplateMetadata. + * Constructs a new ListModelEvaluationSlicesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTemplateMetadata. - * @implements IPipelineTemplateMetadata + * @classdesc Represents a ListModelEvaluationSlicesRequest. + * @implements IListModelEvaluationSlicesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set */ - function PipelineTemplateMetadata(properties) { + function ListModelEvaluationSlicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -143659,75 +159556,131 @@ } /** - * PipelineTemplateMetadata version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * ListModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @instance */ - PipelineTemplateMetadata.prototype.version = ""; + ListModelEvaluationSlicesRequest.prototype.parent = ""; /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. + * ListModelEvaluationSlicesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.filter = ""; + + /** + * ListModelEvaluationSlicesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageSize = 0; + + /** + * ListModelEvaluationSlicesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + + /** + * ListModelEvaluationSlicesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.readMask = null; + + /** + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance */ - PipelineTemplateMetadata.create = function create(properties) { - return new PipelineTemplateMetadata(properties); + ListModelEvaluationSlicesRequest.create = function create(properties) { + return new ListModelEvaluationSlicesRequest(properties); }; /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTemplateMetadata.encode = function encode(message, writer) { + ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decode = function decode(reader, length) { + ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } case 3: { - message.version = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -143739,125 +159692,162 @@ }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a ListModelEvaluationSlicesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTemplateMetadata.verify = function verify(message) { + ListModelEvaluationSlicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest */ - PipelineTemplateMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTemplateMetadata.toObject = function toObject(message, options) { + ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @instance * @returns {Object.} JSON object */ - PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for ListModelEvaluationSlicesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; }; - return PipelineTemplateMetadata; + return ListModelEvaluationSlicesRequest; })(); - v1.PipelineJobDetail = (function() { + v1.ListModelEvaluationSlicesResponse = (function() { /** - * Properties of a PipelineJobDetail. + * Properties of a ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJobDetail - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext - * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + * @interface IListModelEvaluationSlicesResponse + * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices + * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken */ /** - * Constructs a new PipelineJobDetail. + * Constructs a new ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJobDetail. - * @implements IPipelineJobDetail + * @classdesc Represents a ListModelEvaluationSlicesResponse. + * @implements IListModelEvaluationSlicesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set */ - function PipelineJobDetail(properties) { - this.taskDetails = []; + function ListModelEvaluationSlicesResponse(properties) { + this.modelEvaluationSlices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -143865,106 +159855,92 @@ } /** - * PipelineJobDetail pipelineContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail - * @instance - */ - PipelineJobDetail.prototype.pipelineContext = null; - - /** - * PipelineJobDetail pipelineRunContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationSlicesResponse modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - PipelineJobDetail.prototype.pipelineRunContext = null; + ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; /** - * PipelineJobDetail taskDetails. - * @member {Array.} taskDetails - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationSlicesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance */ - PipelineJobDetail.create = function create(properties) { - return new PipelineJobDetail(properties); + ListModelEvaluationSlicesResponse.create = function create(properties) { + return new ListModelEvaluationSlicesResponse(properties); }; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encode = function encode(message, writer) { + ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskDetails != null && message.taskDetails.length) - for (var i = 0; i < message.taskDetails.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decode = function decode(reader, length) { + ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); break; } case 2: { - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.taskDetails && message.taskDetails.length)) - message.taskDetails = []; - message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); + message.nextPageToken = reader.string(); break; } default: @@ -143976,182 +159952,184 @@ }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJobDetail message. + * Verifies a ListModelEvaluationSlicesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJobDetail.verify = function verify(message) { + ListModelEvaluationSlicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); - if (error) - return "pipelineContext." + error; - } - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); - if (error) - return "pipelineRunContext." + error; - } - if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { - if (!Array.isArray(message.taskDetails)) - return "taskDetails: array expected"; - for (var i = 0; i < message.taskDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); if (error) - return "taskDetails." + error; + return "modelEvaluationSlices." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse */ - PipelineJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) + ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); - if (object.pipelineContext != null) { - if (typeof object.pipelineContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); - } - if (object.pipelineRunContext != null) { - if (typeof object.pipelineRunContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); - } - if (object.taskDetails) { - if (!Array.isArray(object.taskDetails)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); - message.taskDetails = []; - for (var i = 0; i < object.taskDetails.length; ++i) { - if (typeof object.taskDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); - message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJobDetail.toObject = function toObject(message, options) { + ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.taskDetails = []; - if (options.defaults) { - object.pipelineContext = null; - object.pipelineRunContext = null; - } - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) - object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) - object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); - if (message.taskDetails && message.taskDetails.length) { - object.taskDetails = []; - for (var j = 0; j < message.taskDetails.length; ++j) - object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); + object.modelEvaluationSlices = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - PipelineJobDetail.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for ListModelEvaluationSlicesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; }; - return PipelineJobDetail; + return ListModelEvaluationSlicesResponse; })(); - v1.PipelineTaskDetail = (function() { + /** + * PipelineFailurePolicy enum. + * @name google.cloud.aiplatform.v1.PipelineFailurePolicy + * @enum {number} + * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value + */ + v1.PipelineFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; + values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; + return values; + })(); + + v1.PipelineJob = (function() { /** - * Properties of a PipelineTaskDetail. + * Properties of a PipelineJob. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskDetail - * @property {number|Long|null} [taskId] PipelineTaskDetail taskId - * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId - * @property {string|null} [taskName] PipelineTaskDetail taskName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime - * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution - * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error - * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus - * @property {Object.|null} [inputs] PipelineTaskDetail inputs - * @property {Object.|null} [outputs] PipelineTaskDetail outputs + * @interface IPipelineJob + * @property {string|null} [name] PipelineJob name + * @property {string|null} [displayName] PipelineJob displayName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime + * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network + * @property {Array.|null} [reservedIpRanges] PipelineJob reservedIpRanges + * @property {string|null} [templateUri] PipelineJob templateUri + * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + * @property {string|null} [scheduleName] PipelineJob scheduleName */ /** - * Constructs a new PipelineTaskDetail. + * Constructs a new PipelineJob. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskDetail. - * @implements IPipelineTaskDetail + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set */ - function PipelineTaskDetail(properties) { - this.pipelineTaskStatus = []; - this.inputs = {}; - this.outputs = {}; + function PipelineJob(properties) { + this.labels = {}; + this.reservedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -144159,210 +160137,261 @@ } /** - * PipelineTaskDetail taskId. - * @member {number|Long} taskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PipelineJob.prototype.name = ""; /** - * PipelineTaskDetail parentTaskId. - * @member {number|Long} parentTaskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PipelineJob.prototype.displayName = ""; /** - * PipelineTaskDetail taskName. - * @member {string} taskName - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.taskName = ""; + PipelineJob.prototype.createTime = null; /** - * PipelineTaskDetail createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.createTime = null; + PipelineJob.prototype.startTime = null; /** - * PipelineTaskDetail startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.startTime = null; + PipelineJob.prototype.endTime = null; /** - * PipelineTaskDetail endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.endTime = null; + PipelineJob.prototype.updateTime = null; /** - * PipelineTaskDetail executorDetail. - * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.executorDetail = null; + PipelineJob.prototype.pipelineSpec = null; /** - * PipelineTaskDetail state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.state = 0; + PipelineJob.prototype.state = 0; /** - * PipelineTaskDetail execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.execution = null; + PipelineJob.prototype.jobDetail = null; /** - * PipelineTaskDetail error. + * PipelineJob error. * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.error = null; + PipelineJob.prototype.error = null; /** - * PipelineTaskDetail pipelineTaskStatus. - * @member {Array.} pipelineTaskStatus - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + PipelineJob.prototype.labels = $util.emptyObject; /** - * PipelineTaskDetail inputs. - * @member {Object.} inputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.inputs = $util.emptyObject; + PipelineJob.prototype.runtimeConfig = null; /** - * PipelineTaskDetail outputs. - * @member {Object.} outputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - PipelineTaskDetail.prototype.outputs = $util.emptyObject; + PipelineJob.prototype.encryptionSpec = null; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.serviceAccount = ""; + + /** + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.network = ""; + + /** + * PipelineJob reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.reservedIpRanges = $util.emptyArray; + + /** + * PipelineJob templateUri. + * @member {string} templateUri + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateUri = ""; + + /** + * PipelineJob templateMetadata. + * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateMetadata = null; + + /** + * PipelineJob scheduleName. + * @member {string} scheduleName + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.scheduleName = ""; + + /** + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance */ - PipelineTaskDetail.create = function create(properties) { - return new PipelineTaskDetail(properties); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encode = function encode(message, writer) { + PipelineJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); - if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) + $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) + $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) - for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); - if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); + if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); + if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) + $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.scheduleName != null && Object.hasOwnProperty.call(message, "scheduleName")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.scheduleName); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.reservedIpRanges[i]); return writer; }; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decode = function decode(reader, length) { + PipelineJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.taskId = reader.int64(); - break; - } - case 12: { - message.parentTaskId = reader.int64(); + message.name = reader.string(); break; } case 2: { - message.taskName = reader.string(); + message.displayName = reader.string(); break; } case 3: { @@ -144378,56 +160407,31 @@ break; } case 6: { - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 7: { - message.state = reader.int32(); + message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } case 8: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + message.state = reader.int32(); break; } case 9: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 13: { - if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) - message.pipelineTaskStatus = []; - message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); break; } case 10: { - if (message.inputs === $util.emptyObject) - message.inputs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputs[key] = value; + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } case 11: { - if (message.outputs === $util.emptyObject) - message.outputs = {}; + if (message.labels === $util.emptyObject) + message.labels = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = null; + value = ""; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -144435,14 +160439,48 @@ key = reader.string(); break; case 2: - value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + value = reader.string(); break; default: reader.skipType(tag2 & 7); break; } } - message.outputs[key] = value; + message.labels[key] = value; + break; + } + case 12: { + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 17: { + message.serviceAccount = reader.string(); + break; + } + case 18: { + message.network = reader.string(); + break; + } + case 25: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + case 19: { + message.templateUri = reader.string(); + break; + } + case 20: { + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); + break; + } + case 22: { + message.scheduleName = reader.string(); break; } default: @@ -144454,41 +160492,38 @@ }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + PipelineJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskDetail message. + * Verifies a PipelineJob message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.verify = function verify(message) { + PipelineJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) - return "taskId: integer|Long expected"; - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) - return "parentTaskId: integer|Long expected"; - if (message.taskName != null && message.hasOwnProperty("taskName")) - if (!$util.isString(message.taskName)) - return "taskName: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) @@ -144504,10 +160539,15 @@ if (error) return "endTime." + error; } - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) - return "executorDetail." + error; + return "updateTime." + error; + } + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { + var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (error) + return "pipelineSpec." + error; } if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { @@ -144522,102 +160562,103 @@ case 6: case 7: case 8: - case 9: break; } - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); if (error) - return "execution." + error; + return "jobDetail." + error; } if (message.error != null && message.hasOwnProperty("error")) { var error = $root.google.rpc.Status.verify(message.error); if (error) return "error." + error; } - if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { - if (!Array.isArray(message.pipelineTaskStatus)) - return "pipelineTaskStatus: array expected"; - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); - if (error) - return "pipelineTaskStatus." + error; - } + if (message.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.inputs != null && message.hasOwnProperty("inputs")) { - if (!$util.isObject(message.inputs)) - return "inputs: object expected"; - var key = Object.keys(message.inputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); - if (error) - return "inputs." + error; - } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + error; } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!$util.isObject(message.outputs)) - return "outputs: object expected"; - var key = Object.keys(message.outputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); - if (error) - return "outputs." + error; - } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + if (!$util.isString(message.templateUri)) + return "templateUri: string expected"; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); + if (error) + return "templateMetadata." + error; } + if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) + if (!$util.isString(message.scheduleName)) + return "scheduleName: string expected"; return null; }; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob */ - PipelineTaskDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); - if (object.taskId != null) - if ($util.Long) - (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; - else if (typeof object.taskId === "string") - message.taskId = parseInt(object.taskId, 10); - else if (typeof object.taskId === "number") - message.taskId = object.taskId; - else if (typeof object.taskId === "object") - message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); - if (object.parentTaskId != null) - if ($util.Long) - (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; - else if (typeof object.parentTaskId === "string") - message.parentTaskId = parseInt(object.parentTaskId, 10); - else if (typeof object.parentTaskId === "number") - message.parentTaskId = object.parentTaskId; - else if (typeof object.parentTaskId === "object") - message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); - if (object.taskName != null) - message.taskName = String(object.taskName); + var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.startTime != null) { if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } if (object.endTime != null) { if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - if (object.executorDetail != null) { - if (typeof object.executorDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.pipelineSpec != null) { + if (typeof object.pipelineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); + message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); } switch (object.state) { default: @@ -144626,220 +160667,228 @@ break; } break; - case "STATE_UNSPECIFIED": + case "PIPELINE_STATE_UNSPECIFIED": case 0: message.state = 0; break; - case "PENDING": + case "PIPELINE_STATE_QUEUED": case 1: message.state = 1; break; - case "RUNNING": + case "PIPELINE_STATE_PENDING": case 2: message.state = 2; break; - case "SUCCEEDED": + case "PIPELINE_STATE_RUNNING": case 3: message.state = 3; break; - case "CANCEL_PENDING": + case "PIPELINE_STATE_SUCCEEDED": case 4: message.state = 4; break; - case "CANCELLING": + case "PIPELINE_STATE_FAILED": case 5: message.state = 5; break; - case "CANCELLED": + case "PIPELINE_STATE_CANCELLING": case 6: message.state = 6; break; - case "FAILED": + case "PIPELINE_STATE_CANCELLED": case 7: message.state = 7; break; - case "SKIPPED": + case "PIPELINE_STATE_PAUSED": case 8: message.state = 8; break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; } - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + if (object.jobDetail != null) { + if (typeof object.jobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); } if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); message.error = $root.google.rpc.Status.fromObject(object.error); } - if (object.pipelineTaskStatus) { - if (!Array.isArray(object.pipelineTaskStatus)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); - message.pipelineTaskStatus = []; - for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { - if (typeof object.pipelineTaskStatus[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); - message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); - } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } - if (object.inputs) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs = {}; - for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { - if (typeof object.inputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); - } + if (object.runtimeConfig != null) { + if (typeof object.runtimeConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); } - if (object.outputs) { - if (typeof object.outputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs = {}; - for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { - if (typeof object.outputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); - } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.templateUri != null) + message.templateUri = String(object.templateUri); + if (object.templateMetadata != null) { + if (typeof object.templateMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); } + if (object.scheduleName != null) + message.scheduleName = String(object.scheduleName); return message; }; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskDetail.toObject = function toObject(message, options) { + PipelineJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pipelineTaskStatus = []; - if (options.objects || options.defaults) { - object.inputs = {}; - object.outputs = {}; - } + object.reservedIpRanges = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskId = options.longs === String ? "0" : 0; - object.taskName = ""; + object.name = ""; + object.displayName = ""; object.createTime = null; object.startTime = null; object.endTime = null; - object.executorDetail = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.execution = null; + object.updateTime = null; + object.pipelineSpec = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.jobDetail = null; object.error = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentTaskId = options.longs === String ? "0" : 0; + object.runtimeConfig = null; + object.encryptionSpec = null; + object.serviceAccount = ""; + object.network = ""; + object.templateUri = ""; + object.templateMetadata = null; + object.scheduleName = ""; } - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (typeof message.taskId === "number") - object.taskId = options.longs === String ? String(message.taskId) : message.taskId; - else - object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; - if (message.taskName != null && message.hasOwnProperty("taskName")) - object.taskName = message.taskName; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.startTime != null && message.hasOwnProperty("startTime")) object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); if (message.endTime != null && message.hasOwnProperty("endTime")) object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) - object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) + object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); if (message.error != null && message.hasOwnProperty("error")) object.error = $root.google.rpc.Status.toObject(message.error, options); var keys2; - if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { - object.inputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); - } - if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { - object.outputs = {}; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; for (var j = 0; j < keys2.length; ++j) - object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (typeof message.parentTaskId === "number") - object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; - else - object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; - if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { - object.pipelineTaskStatus = []; - for (var j = 0; j < message.pipelineTaskStatus.length; ++j) - object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) + object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + object.templateUri = message.templateUri; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) + object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); + if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) + object.scheduleName = message.scheduleName; + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; } return object; }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this PipelineJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.toJSON = function toJSON() { + PipelineJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for PipelineJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; }; - PipelineTaskDetail.PipelineTaskStatus = (function() { + PipelineJob.RuntimeConfig = (function() { /** - * Properties of a PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IPipelineTaskStatus - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state - * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues + * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts */ - /** - * Constructs a new PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents a PipelineTaskStatus. - * @implements IPipelineTaskStatus + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set */ - function PipelineTaskStatus(properties) { + function RuntimeConfig(properties) { + this.parameters = {}; + this.parameterValues = {}; + this.inputArtifacts = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -144847,103 +160896,197 @@ } /** - * PipelineTaskStatus updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @instance */ - PipelineTaskStatus.prototype.updateTime = null; + RuntimeConfig.prototype.parameters = $util.emptyObject; /** - * PipelineTaskStatus state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @instance */ - PipelineTaskStatus.prototype.state = 0; + RuntimeConfig.prototype.gcsOutputDirectory = ""; /** - * PipelineTaskStatus error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * RuntimeConfig parameterValues. + * @member {Object.} parameterValues + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @instance */ - PipelineTaskStatus.prototype.error = null; + RuntimeConfig.prototype.parameterValues = $util.emptyObject; /** - * Creates a new PipelineTaskStatus instance using the specified properties. + * RuntimeConfig failurePolicy. + * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.failurePolicy = 0; + + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; + + /** + * Creates a new RuntimeConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance */ - PipelineTaskStatus.create = function create(properties) { - return new PipelineTaskStatus(properties); + RuntimeConfig.create = function create(properties) { + return new RuntimeConfig(properties); }; /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskStatus.encode = function encode(message, writer) { + RuntimeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); + if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) + for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { + RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * Decodes a RuntimeConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskStatus.decode = function decode(reader, length) { + RuntimeConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; break; } case 2: { - message.state = reader.int32(); + message.gcsOutputDirectory = reader.string(); break; } case 3: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + } + case 4: { + message.failurePolicy = reader.int32(); + break; + } + case 5: { + if (message.inputArtifacts === $util.emptyObject) + message.inputArtifacts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputArtifacts[key] = value; break; } default: @@ -144955,466 +161098,666 @@ }; /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { + RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskStatus message. + * Verifies a RuntimeConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskStatus.verify = function verify(message) { + RuntimeConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + switch (message.failurePolicy) { default: - return "state: enum value expected"; + return "failurePolicy: enum value expected"; case 0: case 1: case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: break; } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; + if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { + if (!$util.isObject(message.inputArtifacts)) + return "inputArtifacts: object expected"; + var key = Object.keys(message.inputArtifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } } return null; }; /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig */ - PipelineTaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); + } } - switch (object.state) { + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + switch (object.failurePolicy) { default: - if (typeof object.state === "number") { - message.state = object.state; + if (typeof object.failurePolicy === "number") { + message.failurePolicy = object.failurePolicy; break; } break; - case "STATE_UNSPECIFIED": + case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": case 0: - message.state = 0; + message.failurePolicy = 0; break; - case "PENDING": + case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": case 1: - message.state = 1; + message.failurePolicy = 1; break; - case "RUNNING": + case "PIPELINE_FAILURE_POLICY_FAIL_FAST": case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; + message.failurePolicy = 2; break; } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts = {}; + for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { + if (typeof object.inputArtifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } } return message; }; /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskStatus.toObject = function toObject(message, options) { + RuntimeConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) { + object.parameters = {}; + object.parameterValues = {}; + object.inputArtifacts = {}; + } if (options.defaults) { - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; + object.gcsOutputDirectory = ""; + object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; + } + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; + if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { + object.inputArtifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); return object; }; /** - * Converts this PipelineTaskStatus to JSON. + * Converts this RuntimeConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @instance * @returns {Object.} JSON object */ - PipelineTaskStatus.prototype.toJSON = function toJSON() { + RuntimeConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskStatus + * Gets the default type url for RuntimeConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; }; - return PipelineTaskStatus; - })(); + RuntimeConfig.InputArtifact = (function() { - PipelineTaskDetail.ArtifactList = (function() { + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ - /** - * Properties of an ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IArtifactList - * @property {Array.|null} [artifacts] ArtifactList artifacts - */ + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + */ + function InputArtifact(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents an ArtifactList. - * @implements IArtifactList - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - */ - function ArtifactList(properties) { - this.artifacts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * InputArtifact artifactId. + * @member {string|null|undefined} artifactId + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + InputArtifact.prototype.artifactId = null; - /** - * ArtifactList artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - */ - ArtifactList.prototype.artifacts = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a new ArtifactList instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance - */ - ArtifactList.create = function create(properties) { - return new ArtifactList(properties); - }; + /** + * InputArtifact kind. + * @member {"artifactId"|undefined} kind + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + Object.defineProperty(InputArtifact.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Creates a new InputArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance + */ + InputArtifact.create = function create(properties) { + return new InputArtifact(properties); + }; - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + return writer; + }; - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifactId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an ArtifactList message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; + /** + * Verifies an InputArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.kind = 1; + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; } - } - return null; - }; + return null; + }; - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - */ - ArtifactList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + return message; + }; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + object.artifactId = message.artifactId; + if (options.oneofs) + object.kind = "artifactId"; + } return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + }; + + /** + * Converts this InputArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + * @returns {Object.} JSON object + */ + InputArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InputArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; + }; - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArtifactList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - return object; - }; + return InputArtifact; + })(); - /** - * Converts this ArtifactList to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - * @returns {Object.} JSON object - */ - ArtifactList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return RuntimeConfig; + })(); - /** - * Gets the default type url for ArtifactList - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return PipelineJob; + })(); + + v1.PipelineTemplateMetadata = (function() { + + /** + * Properties of a PipelineTemplateMetadata. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineTemplateMetadata + * @property {string|null} [version] PipelineTemplateMetadata version + */ + + /** + * Constructs a new PipelineTemplateMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTemplateMetadata. + * @implements IPipelineTemplateMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set + */ + function PipelineTemplateMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PipelineTemplateMetadata version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @instance + */ + PipelineTemplateMetadata.prototype.version = ""; + + /** + * Creates a new PipelineTemplateMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance + */ + PipelineTemplateMetadata.create = function create(properties) { + return new PipelineTemplateMetadata(properties); + }; + + /** + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTemplateMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + return writer; + }; + + /** + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTemplateMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; - }; + } + return message; + }; - return ArtifactList; - })(); + /** + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * State enum. - * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value - * @property {number} CANCELLING=5 CANCELLING value - * @property {number} CANCELLED=6 CANCELLED value - * @property {number} FAILED=7 FAILED value - * @property {number} SKIPPED=8 SKIPPED value - * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value + * Verifies a PipelineTemplateMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "CANCEL_PENDING"] = 4; - values[valuesById[5] = "CANCELLING"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - values[valuesById[7] = "FAILED"] = 7; - values[valuesById[8] = "SKIPPED"] = 8; - values[valuesById[9] = "NOT_TRIGGERED"] = 9; - return values; - })(); + PipelineTemplateMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + */ + PipelineTemplateMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTemplateMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this PipelineTemplateMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @instance + * @returns {Object.} JSON object + */ + PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PipelineTemplateMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + }; - return PipelineTaskDetail; + return PipelineTemplateMetadata; })(); - v1.PipelineTaskExecutorDetail = (function() { + v1.PipelineJobDetail = (function() { /** - * Properties of a PipelineTaskExecutorDetail. + * Properties of a PipelineJobDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskExecutorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails */ /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new PipelineJobDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskExecutorDetail. - * @implements IPipelineTaskExecutorDetail + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set */ - function PipelineTaskExecutorDetail(properties) { + function PipelineJobDetail(properties) { + this.taskDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145422,103 +161765,106 @@ } /** - * PipelineTaskExecutorDetail containerDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance */ - PipelineTaskExecutorDetail.prototype.containerDetail = null; + PipelineJobDetail.prototype.pipelineContext = null; /** - * PipelineTaskExecutorDetail customJobDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance */ - PipelineTaskExecutorDetail.prototype.customJobDetail = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PipelineJobDetail.prototype.pipelineRunContext = null; /** - * PipelineTaskExecutorDetail details. - * @member {"containerDetail"|"customJobDetail"|undefined} details - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance */ - Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { - get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), - set: $util.oneOfSetter($oneOfFields) - }); + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new PipelineJobDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance */ - PipelineTaskExecutorDetail.create = function create(properties) { - return new PipelineTaskExecutorDetail(properties); + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); }; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encode = function encode(message, writer) { + PipelineJobDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskDetails != null && message.taskDetails.length) + for (var i = 0; i < message.taskDetails.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decode = function decode(reader, length) { + PipelineJobDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 2: { - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); break; } default: @@ -145530,458 +161876,870 @@ }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { + PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a PipelineJobDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskExecutorDetail.verify = function verify(message) { + PipelineJobDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); - if (error) - return "containerDetail." + error; - } + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); + if (error) + return "pipelineContext." + error; } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - if (properties.details === 1) - return "details: multiple values"; - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); + if (error) + return "pipelineRunContext." + error; + } + if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { + if (!Array.isArray(message.taskDetails)) + return "taskDetails: array expected"; + for (var i = 0; i < message.taskDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); if (error) - return "customJobDetail." + error; + return "taskDetails." + error; } } return null; }; /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail */ - PipelineTaskExecutorDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); - if (object.containerDetail != null) { - if (typeof object.containerDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); } - if (object.customJobDetail != null) { - if (typeof object.customJobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); + } + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); + message.taskDetails = []; + for (var i = 0; i < object.taskDetails.length; ++i) { + if (typeof object.taskDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + } } return message; }; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + PipelineJobDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); - if (options.oneofs) - object.details = "containerDetail"; + if (options.arrays || options.defaults) + object.taskDetails = []; + if (options.defaults) { + object.pipelineContext = null; + object.pipelineRunContext = null; } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); - if (options.oneofs) - object.details = "customJobDetail"; + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) + object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); + if (message.taskDetails && message.taskDetails.length) { + object.taskDetails = []; + for (var j = 0; j < message.taskDetails.length; ++j) + object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); } return object; }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this PipelineJobDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance * @returns {Object.} JSON object */ - PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + PipelineJobDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for PipelineJobDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; }; - PipelineTaskExecutorDetail.ContainerDetail = (function() { + return PipelineJobDetail; + })(); - /** - * Properties of a ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface IContainerDetail - * @property {string|null} [mainJob] ContainerDetail mainJob - * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob - * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs - * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs - */ + v1.PipelineTaskDetail = (function() { - /** - * Constructs a new ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a ContainerDetail. - * @implements IContainerDetail - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - */ - function ContainerDetail(properties) { - this.failedMainJobs = []; - this.failedPreCachingCheckJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineTaskDetail + * @property {number|Long|null} [taskId] PipelineTaskDetail taskId + * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId + * @property {string|null} [taskName] PipelineTaskDetail taskName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime + * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs + */ - /** - * ContainerDetail mainJob. - * @member {string} mainJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.mainJob = ""; + /** + * Constructs a new PipelineTaskDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + */ + function PipelineTaskDetail(properties) { + this.pipelineTaskStatus = []; + this.inputs = {}; + this.outputs = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ContainerDetail preCachingCheckJob. - * @member {string} preCachingCheckJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.preCachingCheckJob = ""; + /** + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * ContainerDetail failedMainJobs. - * @member {Array.} failedMainJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedMainJobs = $util.emptyArray; + /** + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * ContainerDetail failedPreCachingCheckJobs. - * @member {Array.} failedPreCachingCheckJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; + /** + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.taskName = ""; - /** - * Creates a new ContainerDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance - */ - ContainerDetail.create = function create(properties) { - return new ContainerDetail(properties); - }; + /** + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.createTime = null; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); - if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); - if (message.failedMainJobs != null && message.failedMainJobs.length) - for (var i = 0; i < message.failedMainJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); - if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); - return writer; - }; + /** + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.startTime = null; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.endTime = null; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.mainJob = reader.string(); - break; - } - case 2: { - message.preCachingCheckJob = reader.string(); - break; - } - case 3: { - if (!(message.failedMainJobs && message.failedMainJobs.length)) - message.failedMainJobs = []; - message.failedMainJobs.push(reader.string()); - break; + /** + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.executorDetail = null; + + /** + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.state = 0; + + /** + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.execution = null; + + /** + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.error = null; + + /** + * PipelineTaskDetail pipelineTaskStatus. + * @member {Array.} pipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + + /** + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.inputs = $util.emptyObject; + + /** + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + */ + PipelineTaskDetail.prototype.outputs = $util.emptyObject; + + /** + * Creates a new PipelineTaskDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance + */ + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); + }; + + /** + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) + for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); + if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.taskId = reader.int64(); + break; + } + case 12: { + message.parentTaskId = reader.int64(); + break; + } + case 2: { + message.taskName = reader.string(); + break; + } + case 3: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 9: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 13: { + if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) + message.pipelineTaskStatus = []; + message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + break; + } + case 10: { + if (message.inputs === $util.emptyObject) + message.inputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } - case 4: { - if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) - message.failedPreCachingCheckJobs = []; - message.failedPreCachingCheckJobs.push(reader.string()); - break; + message.inputs[key] = value; + break; + } + case 11: { + if (message.outputs === $util.emptyObject) + message.outputs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } - default: - reader.skipType(tag & 7); + message.outputs[key] = value; break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ContainerDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - if (!$util.isString(message.mainJob)) - return "mainJob: string expected"; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - if (!$util.isString(message.preCachingCheckJob)) - return "preCachingCheckJob: string expected"; - if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { - if (!Array.isArray(message.failedMainJobs)) - return "failedMainJobs: array expected"; - for (var i = 0; i < message.failedMainJobs.length; ++i) - if (!$util.isString(message.failedMainJobs[i])) - return "failedMainJobs: string[] expected"; + /** + * Verifies a PipelineTaskDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PipelineTaskDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) + return "parentTaskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (error) + return "executorDetail." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { - if (!Array.isArray(message.failedPreCachingCheckJobs)) - return "failedPreCachingCheckJobs: array expected"; - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - if (!$util.isString(message.failedPreCachingCheckJobs[i])) - return "failedPreCachingCheckJobs: string[] expected"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { + if (!Array.isArray(message.pipelineTaskStatus)) + return "pipelineTaskStatus: array expected"; + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); + if (error) + return "pipelineTaskStatus." + error; } - return null; - }; - - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - */ - ContainerDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); - if (object.mainJob != null) - message.mainJob = String(object.mainJob); - if (object.preCachingCheckJob != null) - message.preCachingCheckJob = String(object.preCachingCheckJob); - if (object.failedMainJobs) { - if (!Array.isArray(object.failedMainJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); - message.failedMainJobs = []; - for (var i = 0; i < object.failedMainJobs.length; ++i) - message.failedMainJobs[i] = String(object.failedMainJobs[i]); + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!$util.isObject(message.inputs)) + return "inputs: object expected"; + var key = Object.keys(message.inputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); + if (error) + return "inputs." + error; } - if (object.failedPreCachingCheckJobs) { - if (!Array.isArray(object.failedPreCachingCheckJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); - message.failedPreCachingCheckJobs = []; - for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) - message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!$util.isObject(message.outputs)) + return "outputs: object expected"; + var key = Object.keys(message.outputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; } - return message; - }; + } + return null; + }; - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContainerDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.failedMainJobs = []; - object.failedPreCachingCheckJobs = []; + /** + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + */ + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.parentTaskId != null) + if ($util.Long) + (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; + else if (typeof object.parentTaskId === "string") + message.parentTaskId = parseInt(object.parentTaskId, 10); + else if (typeof object.parentTaskId === "number") + message.parentTaskId = object.parentTaskId; + else if (typeof object.parentTaskId === "object") + message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.executorDetail != null) { + if (typeof object.executorDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } - if (options.defaults) { - object.mainJob = ""; - object.preCachingCheckJob = ""; + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.pipelineTaskStatus) { + if (!Array.isArray(object.pipelineTaskStatus)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); + message.pipelineTaskStatus = []; + for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { + if (typeof object.pipelineTaskStatus[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); + message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); } - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - object.mainJob = message.mainJob; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - object.preCachingCheckJob = message.preCachingCheckJob; - if (message.failedMainJobs && message.failedMainJobs.length) { - object.failedMainJobs = []; - for (var j = 0; j < message.failedMainJobs.length; ++j) - object.failedMainJobs[j] = message.failedMainJobs[j]; + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs = {}; + for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { + if (typeof object.inputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); } - if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { - object.failedPreCachingCheckJobs = []; - for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) - object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs = {}; + for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { + if (typeof object.outputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); } - return object; - }; + } + return message; + }; - /** - * Converts this ContainerDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - * @returns {Object.} JSON object - */ - ContainerDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pipelineTaskStatus = []; + if (options.objects || options.defaults) { + object.inputs = {}; + object.outputs = {}; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.executorDetail = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.execution = null; + object.error = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parentTaskId = options.longs === String ? "0" : 0; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) + object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { + object.inputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); + } + if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { + object.outputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + } + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (typeof message.parentTaskId === "number") + object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; + else + object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; + if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { + object.pipelineTaskStatus = []; + for (var j = 0; j < message.pipelineTaskStatus.length; ++j) + object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); + } + return object; + }; - /** - * Gets the default type url for ContainerDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; - }; + /** + * Converts this PipelineTaskDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ContainerDetail; - })(); + /** + * Gets the default type url for PipelineTaskDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; + }; - PipelineTaskExecutorDetail.CustomJobDetail = (function() { + PipelineTaskDetail.PipelineTaskStatus = (function() { /** - * Properties of a CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface ICustomJobDetail - * @property {string|null} [job] CustomJobDetail job - * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs + * Properties of a PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IPipelineTaskStatus + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state + * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error */ /** - * Constructs a new CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a CustomJobDetail. - * @implements ICustomJobDetail + * Constructs a new PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents a PipelineTaskStatus. + * @implements IPipelineTaskStatus * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set */ - function CustomJobDetail(properties) { - this.failedJobs = []; + function PipelineTaskStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -145989,92 +162747,103 @@ } /** - * CustomJobDetail job. - * @member {string} job - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * PipelineTaskStatus updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @instance */ - CustomJobDetail.prototype.job = ""; + PipelineTaskStatus.prototype.updateTime = null; /** - * CustomJobDetail failedJobs. - * @member {Array.} failedJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * PipelineTaskStatus state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @instance */ - CustomJobDetail.prototype.failedJobs = $util.emptyArray; + PipelineTaskStatus.prototype.state = 0; /** - * Creates a new CustomJobDetail instance using the specified properties. + * PipelineTaskStatus error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.error = null; + + /** + * Creates a new PipelineTaskStatus instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance */ - CustomJobDetail.create = function create(properties) { - return new CustomJobDetail(properties); + PipelineTaskStatus.create = function create(properties) { + return new PipelineTaskStatus(properties); }; /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJobDetail.encode = function encode(message, writer) { + PipelineTaskStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); - if (message.failedJobs != null && message.failedJobs.length) - for (var i = 0; i < message.failedJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJobDetail message from the specified reader or buffer. + * Decodes a PipelineTaskStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJobDetail.decode = function decode(reader, length) { + PipelineTaskStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.job = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.state = reader.int32(); break; } case 3: { - if (!(message.failedJobs && message.failedJobs.length)) - message.failedJobs = []; - message.failedJobs.push(reader.string()); + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -146086,829 +162855,466 @@ }; /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomJobDetail message. + * Verifies a PipelineTaskStatus message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomJobDetail.verify = function verify(message) { + PipelineTaskStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.job != null && message.hasOwnProperty("job")) - if (!$util.isString(message.job)) - return "job: string expected"; - if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { - if (!Array.isArray(message.failedJobs)) - return "failedJobs: array expected"; - for (var i = 0; i < message.failedJobs.length; ++i) - if (!$util.isString(message.failedJobs[i])) - return "failedJobs: string[] expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; } return null; }; /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus */ - CustomJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + PipelineTaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); - if (object.job != null) - message.job = String(object.job); - if (object.failedJobs) { - if (!Array.isArray(object.failedJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); - message.failedJobs = []; - for (var i = 0; i < object.failedJobs.length; ++i) - message.failedJobs[i] = String(object.failedJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); } return message; }; /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomJobDetail.toObject = function toObject(message, options) { + PipelineTaskStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.failedJobs = []; - if (options.defaults) - object.job = ""; - if (message.job != null && message.hasOwnProperty("job")) - object.job = message.job; - if (message.failedJobs && message.failedJobs.length) { - object.failedJobs = []; - for (var j = 0; j < message.failedJobs.length; ++j) - object.failedJobs[j] = message.failedJobs[j]; + if (options.defaults) { + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); return object; }; /** - * Converts this CustomJobDetail to JSON. + * Converts this PipelineTaskStatus to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @instance * @returns {Object.} JSON object */ - CustomJobDetail.prototype.toJSON = function toJSON() { + PipelineTaskStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CustomJobDetail + * Gets the default type url for PipelineTaskStatus * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; }; - return CustomJobDetail; + return PipelineTaskStatus; })(); - return PipelineTaskExecutorDetail; - })(); - - /** - * PipelineState enum. - * @name google.cloud.aiplatform.v1.PipelineState - * @enum {number} - * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value - * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value - * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value - * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value - * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value - * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value - * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value - * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value - * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value - */ - v1.PipelineState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; - values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; - values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; - values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; - values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; - values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; - values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; - values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; - return values; - })(); - - v1.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.cloud.aiplatform.v1 - * @interface IValue - * @property {number|Long|null} [intValue] Value intValue - * @property {number|null} [doubleValue] Value doubleValue - * @property {string|null} [stringValue] Value stringValue - */ - - /** - * Constructs a new Value. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.cloud.aiplatform.v1.Value - * @instance - */ - Value.prototype.intValue = null; - - /** - * Value doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1.Value - * @instance - */ - Value.prototype.doubleValue = null; - - /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1.Value - * @instance - */ - Value.prototype.stringValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value value. - * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value - * @memberof google.cloud.aiplatform.v1.Value - * @instance - */ - Object.defineProperty(Value.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - return writer; - }; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.intValue = reader.int64(); - break; - } - case 2: { - message.doubleValue = reader.double(); - break; - } - case 3: { - message.stringValue = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - properties.value = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long expected"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - return null; - }; - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Value} Value - */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Value) - return object; - var message = new $root.google.cloud.aiplatform.v1.Value(); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - return message; - }; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {google.cloud.aiplatform.v1.Value} message Value - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Value.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.value = "intValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; - } - return object; - }; + PipelineTaskDetail.ArtifactList = (function() { - /** - * Converts this Value to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.Value - * @instance - * @returns {Object.} JSON object - */ - Value.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ - /** - * Gets the default type url for Value - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Value - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; - }; - - return Value; - })(); - - v1.PipelineService = (function() { - - /** - * Constructs a new PipelineService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function PipelineService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; - - /** - * Creates new PipelineService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. - */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreateTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline - */ - - /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); - - /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline - */ - - /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); - - /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListTrainingPipelinesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse - */ - - /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); - - /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeleteTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); - - /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { - return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); - - /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreatePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob - */ - - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { - return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "CreatePipelineJob" }); - - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob - */ + /** + * ArtifactList artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { - return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "GetPipelineJob" }); + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListPipelineJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse - */ + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { - return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); - }, "name", { value: "ListPipelineJobs" }); + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeletePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + return null; + }; - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { - return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePipelineJob" }); + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + return message; + }; - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + return object; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + * @returns {Object.} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { - return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelPipelineJob" }); + /** + * Gets the default type url for ArtifactList + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; + }; + + return ArtifactList; + })(); /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * State enum. + * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value + * @property {number} CANCELLING=5 CANCELLING value + * @property {number} CANCELLED=6 CANCELLED value + * @property {number} FAILED=7 FAILED value + * @property {number} SKIPPED=8 SKIPPED value + * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value */ + PipelineTaskDetail.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "CANCEL_PENDING"] = 4; + values[valuesById[5] = "CANCELLING"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + values[valuesById[7] = "FAILED"] = 7; + values[valuesById[8] = "SKIPPED"] = 8; + values[valuesById[9] = "NOT_TRIGGERED"] = 9; + return values; + })(); - return PipelineService; + return PipelineTaskDetail; })(); - v1.CreateTrainingPipelineRequest = (function() { + v1.PipelineTaskExecutorDetail = (function() { /** - * Properties of a CreateTrainingPipelineRequest. + * Properties of a PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail */ /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail * @constructor - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set */ - function CreateTrainingPipelineRequest(properties) { + function PipelineTaskExecutorDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -146916,89 +163322,103 @@ } /** - * CreateTrainingPipelineRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - CreateTrainingPipelineRequest.prototype.parent = ""; + PipelineTaskExecutorDetail.prototype.containerDetail = null; /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + PipelineTaskExecutorDetail.prototype.customJobDetail = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance */ - CreateTrainingPipelineRequest.create = function create(properties) { - return new CreateTrainingPipelineRequest(properties); + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); }; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encode = function encode(message, writer) { + PipelineTaskExecutorDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decode = function decode(reader, length) { + PipelineTaskExecutorDetail.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); break; } case 2: { - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); break; } default: @@ -147010,343 +163430,732 @@ }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a PipelineTaskExecutorDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTrainingPipelineRequest.verify = function verify(message) { + PipelineTaskExecutorDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); - if (error) - return "trainingPipeline." + error; + var properties = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); + if (error) + return "containerDetail." + error; + } + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + if (properties.details === 1) + return "details: multiple values"; + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; + } } return null; }; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); } return message; }; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + PipelineTaskExecutorDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.trainingPipeline = null; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); + if (options.oneofs) + object.details = "containerDetail"; + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance * @returns {Object.} JSON object */ - CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for PipelineTaskExecutorDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; }; - return CreateTrainingPipelineRequest; - })(); + PipelineTaskExecutorDetail.ContainerDetail = (function() { - v1.GetTrainingPipelineRequest = (function() { + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs + * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs + */ - /** - * Properties of a GetTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetTrainingPipelineRequest - * @property {string|null} [name] GetTrainingPipelineRequest name - */ + /** + * Constructs a new ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + */ + function ContainerDetail(properties) { + this.failedMainJobs = []; + this.failedPreCachingCheckJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set - */ - function GetTrainingPipelineRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ContainerDetail mainJob. + * @member {string} mainJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; - /** - * GetTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @instance - */ - GetTrainingPipelineRequest.prototype.name = ""; + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; - /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance - */ - GetTrainingPipelineRequest.create = function create(properties) { - return new GetTrainingPipelineRequest(properties); - }; + /** + * ContainerDetail failedMainJobs. + * @member {Array.} failedMainJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedMainJobs = $util.emptyArray; - /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * ContainerDetail failedPreCachingCheckJobs. + * @member {Array.} failedPreCachingCheckJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; - /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance + */ + ContainerDetail.create = function create(properties) { + return new ContainerDetail(properties); + }; - /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); + if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); + if (message.failedMainJobs != null && message.failedMainJobs.length) + for (var i = 0; i < message.failedMainJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); + if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); + return writer; + }; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mainJob = reader.string(); + break; + } + case 2: { + message.preCachingCheckJob = reader.string(); + break; + } + case 3: { + if (!(message.failedMainJobs && message.failedMainJobs.length)) + message.failedMainJobs = []; + message.failedMainJobs.push(reader.string()); + break; + } + case 4: { + if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) + message.failedPreCachingCheckJobs = []; + message.failedPreCachingCheckJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContainerDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + if (!$util.isString(message.mainJob)) + return "mainJob: string expected"; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + if (!$util.isString(message.preCachingCheckJob)) + return "preCachingCheckJob: string expected"; + if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { + if (!Array.isArray(message.failedMainJobs)) + return "failedMainJobs: array expected"; + for (var i = 0; i < message.failedMainJobs.length; ++i) + if (!$util.isString(message.failedMainJobs[i])) + return "failedMainJobs: string[] expected"; + } + if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { + if (!Array.isArray(message.failedPreCachingCheckJobs)) + return "failedPreCachingCheckJobs: array expected"; + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + if (!$util.isString(message.failedPreCachingCheckJobs[i])) + return "failedPreCachingCheckJobs: string[] expected"; + } + return null; + }; + + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + if (object.mainJob != null) + message.mainJob = String(object.mainJob); + if (object.preCachingCheckJob != null) + message.preCachingCheckJob = String(object.preCachingCheckJob); + if (object.failedMainJobs) { + if (!Array.isArray(object.failedMainJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); + message.failedMainJobs = []; + for (var i = 0; i < object.failedMainJobs.length; ++i) + message.failedMainJobs[i] = String(object.failedMainJobs[i]); + } + if (object.failedPreCachingCheckJobs) { + if (!Array.isArray(object.failedPreCachingCheckJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); + message.failedPreCachingCheckJobs = []; + for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) + message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainerDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.failedMainJobs = []; + object.failedPreCachingCheckJobs = []; + } + if (options.defaults) { + object.mainJob = ""; + object.preCachingCheckJob = ""; + } + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + object.mainJob = message.mainJob; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + object.preCachingCheckJob = message.preCachingCheckJob; + if (message.failedMainJobs && message.failedMainJobs.length) { + object.failedMainJobs = []; + for (var j = 0; j < message.failedMainJobs.length; ++j) + object.failedMainJobs[j] = message.failedMainJobs[j]; + } + if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { + object.failedPreCachingCheckJobs = []; + for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) + object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; + } + return object; + }; + + /** + * Converts this ContainerDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + * @returns {Object.} JSON object + */ + ContainerDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ContainerDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; + }; + + return ContainerDetail; + })(); + + PipelineTaskExecutorDetail.CustomJobDetail = (function() { + + /** + * Properties of a CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs + */ + + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + */ + function CustomJobDetail(properties) { + this.failedJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomJobDetail job. + * @member {string} job + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; + + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + */ + CustomJobDetail.create = function create(properties) { + return new CustomJobDetail(properties); + }; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); + return writer; + }; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.job = reader.string(); + break; + } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTrainingPipelineRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a CustomJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomJobDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.job != null && message.hasOwnProperty("job")) + if (!$util.isString(message.job)) + return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } + return null; + }; - /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + if (object.job != null) + message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomJobDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; + if (options.defaults) + object.job = ""; + if (message.job != null && message.hasOwnProperty("job")) + object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } return object; - var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetTrainingPipelineRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this CustomJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @instance - * @returns {Object.} JSON object - */ - GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for CustomJobDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; + }; - /** - * Gets the default type url for GetTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; - }; + return CustomJobDetail; + })(); - return GetTrainingPipelineRequest; + return PipelineTaskExecutorDetail; })(); - v1.ListTrainingPipelinesRequest = (function() { + /** + * PipelineState enum. + * @name google.cloud.aiplatform.v1.PipelineState + * @enum {number} + * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value + * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value + * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value + * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value + * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value + * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value + * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value + * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value + * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value + */ + v1.PipelineState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; + values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; + values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; + values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; + values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; + values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; + values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; + values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; + return values; + })(); + + v1.Value = (function() { /** - * Properties of a ListTrainingPipelinesRequest. + * Properties of a Value. * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesRequest - * @property {string|null} [parent] ListTrainingPipelinesRequest parent - * @property {string|null} [filter] ListTrainingPipelinesRequest filter - * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize - * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask + * @interface IValue + * @property {number|Long|null} [intValue] Value intValue + * @property {number|null} [doubleValue] Value doubleValue + * @property {string|null} [stringValue] Value stringValue */ /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new Value. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set */ - function ListTrainingPipelinesRequest(properties) { + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -147354,131 +164163,117 @@ } /** - * ListTrainingPipelinesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - ListTrainingPipelinesRequest.prototype.parent = ""; + Value.prototype.intValue = null; /** - * ListTrainingPipelinesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - ListTrainingPipelinesRequest.prototype.filter = ""; + Value.prototype.doubleValue = null; /** - * ListTrainingPipelinesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; + Value.prototype.stringValue = null; - /** - * ListTrainingPipelinesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest - * @instance - */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * Value value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + Object.defineProperty(Value.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Value} Value instance */ - ListTrainingPipelinesRequest.create = function create(properties) { - return new ListTrainingPipelinesRequest(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); return writer; }; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.intValue = reader.int64(); break; } case 2: { - message.filter = reader.string(); + message.doubleValue = reader.double(); break; } case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.stringValue = reader.string(); break; } default: @@ -147490,816 +164285,530 @@ }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a Value message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesRequest.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + var properties = {}; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; } return null; }; /** - * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.Value} Value */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Value) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1.Value(); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); return message; }; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest + * @param {google.cloud.aiplatform.v1.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesRequest.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for Value * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; }; - return ListTrainingPipelinesRequest; + return Value; })(); - v1.ListTrainingPipelinesResponse = (function() { - - /** - * Properties of a ListTrainingPipelinesResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesResponse - * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines - * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken - */ + v1.PipelineService = (function() { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new PipelineService service. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a PipelineService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function ListTrainingPipelinesResponse(properties) { - this.trainingPipelines = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function PipelineService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @instance - */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; - - /** - * ListTrainingPipelinesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @instance - */ - ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates new PipelineService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance - */ - ListTrainingPipelinesResponse.create = function create(properties) { - return new ListTrainingPipelinesResponse(properties); - }; - - /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTrainingPipelinesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trainingPipelines != null && message.trainingPipelines.length) - for (var i = 0; i < message.trainingPipelines.length; ++i) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; - - /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTrainingPipelinesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.trainingPipelines && message.trainingPipelines.length)) - message.trainingPipelines = []; - message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListTrainingPipelinesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListTrainingPipelinesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { - if (!Array.isArray(message.trainingPipelines)) - return "trainingPipelines: array expected"; - for (var i = 0; i < message.trainingPipelines.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); - if (error) - return "trainingPipelines." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineService * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); - message.trainingPipelines = []; - for (var i = 0; i < object.trainingPipelines.length; ++i) { - if (typeof object.trainingPipelines[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - ListTrainingPipelinesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.trainingPipelines = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.trainingPipelines && message.trainingPipelines.length) { - object.trainingPipelines = []; - for (var j = 0; j < message.trainingPipelines.length; ++j) - object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListTrainingPipelinesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance - * @returns {Object.} JSON object - */ - ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListTrainingPipelinesResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; - }; - - return ListTrainingPipelinesResponse; - })(); - - v1.DeleteTrainingPipelineRequest = (function() { + Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { + return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); /** - * Properties of a DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteTrainingPipelineRequest - * @property {string|null} [name] DeleteTrainingPipelineRequest name + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - function DeleteTrainingPipelineRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * DeleteTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - DeleteTrainingPipelineRequest.prototype.name = ""; + Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteTrainingPipelineRequest.create = function create(properties) { - return new DeleteTrainingPipelineRequest(properties); - }; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse */ - DeleteTrainingPipelineRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 */ - DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteTrainingPipelineRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeleteTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteTrainingPipelineRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ /** - * Converts this DeleteTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { + return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); /** - * Gets the default type url for DeleteTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; - }; - return DeleteTrainingPipelineRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ - v1.CancelTrainingPipelineRequest = (function() { + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { + return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); /** - * Properties of a CancelTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CancelTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob */ - function CancelTrainingPipelineRequest(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]]; - } /** - * CancelTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 */ - CancelTrainingPipelineRequest.prototype.name = ""; + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); - }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse */ - CancelTrainingPipelineRequest.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 CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelTrainingPipelineRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); - 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 CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CancelTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CancelTrainingPipelineRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); /** - * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CancelTrainingPipelineRequest.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 CancelTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); /** - * Gets the default type url for CancelTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; - }; - return CancelTrainingPipelineRequest; + return PipelineService; })(); - v1.CreatePipelineJobRequest = (function() { + v1.CreateTrainingPipelineRequest = (function() { /** - * Properties of a CreatePipelineJobRequest. + * Properties of a CreateTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreatePipelineJobRequest - * @property {string|null} [parent] CreatePipelineJobRequest parent - * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob - * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline */ /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new CreateTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreatePipelineJobRequest. - * @implements ICreatePipelineJobRequest + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set */ - function CreatePipelineJobRequest(properties) { + function CreateTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148307,90 +164816,80 @@ } /** - * CreatePipelineJobRequest parent. + * CreateTrainingPipelineRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @instance - */ - CreatePipelineJobRequest.prototype.parent = ""; - - /** - * CreatePipelineJobRequest pipelineJob. - * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @instance */ - CreatePipelineJobRequest.prototype.pipelineJob = null; + CreateTrainingPipelineRequest.prototype.parent = ""; /** - * CreatePipelineJobRequest pipelineJobId. - * @member {string} pipelineJobId - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @instance */ - CreatePipelineJobRequest.prototype.pipelineJobId = ""; + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance */ - CreatePipelineJobRequest.create = function create(properties) { - return new CreatePipelineJobRequest(properties); + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); }; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encode = function encode(message, writer) { + CreateTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decode = function decode(reader, length) { + CreateTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -148399,11 +164898,7 @@ break; } case 2: { - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); - break; - } - case 3: { - message.pipelineJobId = reader.string(); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); break; } default: @@ -148415,144 +164910,136 @@ }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a CreateTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePipelineJobRequest.verify = function verify(message) { + CreateTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); if (error) - return "pipelineJob." + error; + return "trainingPipeline." + error; } - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - if (!$util.isString(message.pipelineJobId)) - return "pipelineJobId: string expected"; return null; }; /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest */ - CreatePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pipelineJob != null) { - if (typeof object.pipelineJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); } - if (object.pipelineJobId != null) - message.pipelineJobId = String(object.pipelineJobId); return message; }; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePipelineJobRequest.toObject = function toObject(message, options) { + CreateTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pipelineJob = null; - object.pipelineJobId = ""; + object.trainingPipeline = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) - object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - object.pipelineJobId = message.pipelineJobId; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for CreateTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; }; - return CreatePipelineJobRequest; + return CreateTrainingPipelineRequest; })(); - v1.GetPipelineJobRequest = (function() { + v1.GetTrainingPipelineRequest = (function() { /** - * Properties of a GetPipelineJobRequest. + * Properties of a GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetPipelineJobRequest - * @property {string|null} [name] GetPipelineJobRequest name + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name */ /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetPipelineJobRequest. - * @implements IGetPipelineJobRequest + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set */ - function GetPipelineJobRequest(properties) { + function GetTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148560,35 +165047,35 @@ } /** - * GetPipelineJobRequest name. + * GetTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance */ - GetPipelineJobRequest.prototype.name = ""; + GetTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance */ - GetPipelineJobRequest.create = function create(properties) { - return new GetPipelineJobRequest(properties); + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); }; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encode = function encode(message, writer) { + GetTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -148597,33 +165084,33 @@ }; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decode = function decode(reader, length) { + GetTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -148640,30 +165127,30 @@ }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a GetTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPipelineJobRequest.verify = function verify(message) { + GetTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -148673,32 +165160,32 @@ }; /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest */ - GetPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest + * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPipelineJobRequest.toObject = function toObject(message, options) { + GetTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -148710,57 +165197,56 @@ }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - GetPipelineJobRequest.prototype.toJSON = function toJSON() { + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for GetTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; }; - return GetPipelineJobRequest; + return GetTrainingPipelineRequest; })(); - v1.ListPipelineJobsRequest = (function() { + v1.ListTrainingPipelinesRequest = (function() { /** - * Properties of a ListPipelineJobsRequest. + * Properties of a ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsRequest - * @property {string|null} [parent] ListPipelineJobsRequest parent - * @property {string|null} [filter] ListPipelineJobsRequest filter - * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize - * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken - * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask + * @interface IListTrainingPipelinesRequest + * @property {string|null} [parent] ListTrainingPipelinesRequest parent + * @property {string|null} [filter] ListTrainingPipelinesRequest filter + * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize + * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask */ /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsRequest. - * @implements IListPipelineJobsRequest + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set */ - function ListPipelineJobsRequest(properties) { + function ListTrainingPipelinesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -148768,75 +165254,67 @@ } /** - * ListPipelineJobsRequest parent. + * ListTrainingPipelinesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.parent = ""; + ListTrainingPipelinesRequest.prototype.parent = ""; /** - * ListPipelineJobsRequest filter. + * ListTrainingPipelinesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.filter = ""; + ListTrainingPipelinesRequest.prototype.filter = ""; /** - * ListPipelineJobsRequest pageSize. + * ListTrainingPipelinesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.pageSize = 0; + ListTrainingPipelinesRequest.prototype.pageSize = 0; /** - * ListPipelineJobsRequest pageToken. + * ListTrainingPipelinesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.pageToken = ""; - - /** - * ListPipelineJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.orderBy = ""; + ListTrainingPipelinesRequest.prototype.pageToken = ""; /** - * ListPipelineJobsRequest readMask. + * ListTrainingPipelinesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.readMask = null; + ListTrainingPipelinesRequest.prototype.readMask = null; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance */ - ListPipelineJobsRequest.create = function create(properties) { - return new ListPipelineJobsRequest(properties); + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); }; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encode = function encode(message, writer) { + ListTrainingPipelinesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -148847,41 +165325,39 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decode = function decode(reader, length) { + ListTrainingPipelinesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -148901,11 +165377,7 @@ message.pageToken = reader.string(); break; } - case 6: { - message.orderBy = reader.string(); - break; - } - case 7: { + case 5: { message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } @@ -148918,30 +165390,30 @@ }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a ListTrainingPipelinesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsRequest.verify = function verify(message) { + ListTrainingPipelinesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -148956,9 +165428,6 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; if (message.readMask != null && message.hasOwnProperty("readMask")) { var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) @@ -148968,17 +165437,17 @@ }; /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest */ - ListPipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -148987,26 +165456,24 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsRequest.toObject = function toObject(message, options) { + ListTrainingPipelinesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -149015,7 +165482,6 @@ object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.orderBy = ""; object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) @@ -149026,308 +165492,60 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListPipelineJobsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest - * @instance - * @returns {Object.} JSON object - */ - ListPipelineJobsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListPipelineJobsRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; - }; - - return ListPipelineJobsRequest; - })(); - - v1.ListPipelineJobsResponse = (function() { - - /** - * Properties of a ListPipelineJobsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsResponse - * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs - * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken - */ - - /** - * Constructs a new ListPipelineJobsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsResponse. - * @implements IListPipelineJobsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set - */ - function ListPipelineJobsResponse(properties) { - this.pipelineJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListPipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @instance - */ - ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; - - /** - * ListPipelineJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @instance - */ - ListPipelineJobsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance - */ - ListPipelineJobsResponse.create = function create(properties) { - return new ListPipelineJobsResponse(properties); - }; - - /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPipelineJobsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; - - /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPipelineJobsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListPipelineJobsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListPipelineJobsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); - if (error) - return "pipelineJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse - */ - ListPipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse - * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListPipelineJobsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.pipelineJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance * @returns {Object.} JSON object */ - ListPipelineJobsResponse.prototype.toJSON = function toJSON() { + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for ListTrainingPipelinesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; }; - return ListPipelineJobsResponse; + return ListTrainingPipelinesRequest; })(); - v1.DeletePipelineJobRequest = (function() { + v1.ListTrainingPipelinesResponse = (function() { /** - * Properties of a DeletePipelineJobRequest. + * Properties of a ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeletePipelineJobRequest - * @property {string|null} [name] DeletePipelineJobRequest name + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken */ /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeletePipelineJobRequest. - * @implements IDeletePipelineJobRequest + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set */ - function DeletePipelineJobRequest(properties) { + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149335,75 +165553,92 @@ } /** - * DeletePipelineJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance */ - DeletePipelineJobRequest.prototype.name = ""; + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * ListTrainingPipelinesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @instance + */ + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance */ - DeletePipelineJobRequest.create = function create(properties) { - return new DeletePipelineJobRequest(properties); + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); }; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encode = function encode(message, writer) { + ListTrainingPipelinesResponse.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.trainingPipelines != null && message.trainingPipelines.length) + for (var i = 0; i < message.trainingPipelines.length; ++i) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decode = function decode(reader, length) { + ListTrainingPipelinesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.trainingPipelines && message.trainingPipelines.length)) + message.trainingPipelines = []; + message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -149415,122 +165650,148 @@ }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a ListTrainingPipelinesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePipelineJobRequest.verify = function verify(message) { + ListTrainingPipelinesResponse.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.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { + if (!Array.isArray(message.trainingPipelines)) + return "trainingPipelines: array expected"; + for (var i = 0; i < message.trainingPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); + if (error) + return "trainingPipelines." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse */ - DeletePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); + message.trainingPipelines = []; + for (var i = 0; i < object.trainingPipelines.length; ++i) { + if (typeof object.trainingPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePipelineJobRequest.toObject = function toObject(message, options) { + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.trainingPipelines = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.trainingPipelines && message.trainingPipelines.length) { + object.trainingPipelines = []; + for (var j = 0; j < message.trainingPipelines.length; ++j) + object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance * @returns {Object.} JSON object */ - DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for ListTrainingPipelinesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; }; - return DeletePipelineJobRequest; + return ListTrainingPipelinesResponse; })(); - v1.CancelPipelineJobRequest = (function() { + v1.DeleteTrainingPipelineRequest = (function() { /** - * Properties of a CancelPipelineJobRequest. + * Properties of a DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelPipelineJobRequest - * @property {string|null} [name] CancelPipelineJobRequest name + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name */ /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelPipelineJobRequest. - * @implements ICancelPipelineJobRequest + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set */ - function CancelPipelineJobRequest(properties) { + function DeleteTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149538,35 +165799,35 @@ } /** - * CancelPipelineJobRequest name. + * DeleteTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance */ - CancelPipelineJobRequest.prototype.name = ""; + DeleteTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance */ - CancelPipelineJobRequest.create = function create(properties) { - return new CancelPipelineJobRequest(properties); + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); }; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encode = function encode(message, writer) { + DeleteTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -149575,33 +165836,33 @@ }; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decode = function decode(reader, length) { + DeleteTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -149618,30 +165879,30 @@ }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a DeleteTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelPipelineJobRequest.verify = function verify(message) { + DeleteTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -149651,32 +165912,32 @@ }; /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest */ - CancelPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest + * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelPipelineJobRequest.toObject = function toObject(message, options) { + DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -149688,69 +165949,52 @@ }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this DeleteTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CancelPipelineJobRequest.prototype.toJSON = function toJSON() { + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for DeleteTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; }; - return CancelPipelineJobRequest; + return DeleteTrainingPipelineRequest; })(); - v1.TrainingPipeline = (function() { + v1.CancelTrainingPipelineRequest = (function() { /** - * Properties of a TrainingPipeline. + * Properties of a CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ITrainingPipeline - * @property {string|null} [name] TrainingPipeline name - * @property {string|null} [displayName] TrainingPipeline displayName - * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig - * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition - * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs - * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata - * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload - * @property {string|null} [modelId] TrainingPipeline modelId - * @property {string|null} [parentModel] TrainingPipeline parentModel - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state - * @property {google.rpc.IStatus|null} [error] TrainingPipeline error - * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime - * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime - * @property {Object.|null} [labels] TrainingPipeline labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Constructs a new TrainingPipeline. + * Constructs a new CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TrainingPipeline. - * @implements ITrainingPipeline + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - function TrainingPipeline(properties) { - this.labels = {}; + function CancelTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -149758,231 +166002,70 @@ } /** - * TrainingPipeline name. + * CancelTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.name = ""; - - /** - * TrainingPipeline displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.displayName = ""; - - /** - * TrainingPipeline inputDataConfig. - * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.inputDataConfig = null; - - /** - * TrainingPipeline trainingTaskDefinition. - * @member {string} trainingTaskDefinition - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskDefinition = ""; - - /** - * TrainingPipeline trainingTaskInputs. - * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskInputs = null; - - /** - * TrainingPipeline trainingTaskMetadata. - * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.trainingTaskMetadata = null; - - /** - * TrainingPipeline modelToUpload. - * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.modelToUpload = null; - - /** - * TrainingPipeline modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.modelId = ""; - - /** - * TrainingPipeline parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.parentModel = ""; - - /** - * TrainingPipeline state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.state = 0; - - /** - * TrainingPipeline error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.error = null; - - /** - * TrainingPipeline createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.createTime = null; - - /** - * TrainingPipeline startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.startTime = null; - - /** - * TrainingPipeline endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.endTime = null; - - /** - * TrainingPipeline updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.updateTime = null; - - /** - * TrainingPipeline labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.labels = $util.emptyObject; - - /** - * TrainingPipeline encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance */ - TrainingPipeline.prototype.encryptionSpec = null; + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ - TrainingPipeline.create = function create(properties) { - return new TrainingPipeline(properties); + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); }; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encode = function encode(message, writer) { + CancelTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) - $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); - if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) - $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) - $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) - $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { + CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decode = function decode(reader, length) { + CancelTrainingPipelineRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -149990,89 +166073,6 @@ message.name = reader.string(); break; } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingTaskDefinition = reader.string(); - break; - } - case 5: { - message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 6: { - message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); - break; - } - case 22: { - message.modelId = reader.string(); - break; - } - case 21: { - message.parentModel = reader.string(); - break; - } - case 9: { - message.state = reader.int32(); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 15: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 18: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -150082,636 +166082,228 @@ }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { + CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingPipeline message. + * Verifies a CancelTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.verify = function verify(message) { + CancelTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { - var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); - if (error) - return "inputDataConfig." + error; - } - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - if (!$util.isString(message.trainingTaskDefinition)) - return "trainingTaskDefinition: string expected"; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); - if (error) - return "trainingTaskInputs." + error; - } - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); - if (error) - return "trainingTaskMetadata." + error; - } - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); - if (error) - return "modelToUpload." + error; - } - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - return null; - }; - - /** - * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline - */ - TrainingPipeline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) - return object; - var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.inputDataConfig != null) { - if (typeof object.inputDataConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); - } - if (object.trainingTaskDefinition != null) - message.trainingTaskDefinition = String(object.trainingTaskDefinition); - if (object.trainingTaskInputs != null) { - if (typeof object.trainingTaskInputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); - message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); - } - if (object.trainingTaskMetadata != null) { - if (typeof object.trainingTaskMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); - message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); - } - if (object.modelToUpload != null) { - if (typeof object.modelToUpload !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); - } - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - return message; - }; - - /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @static - * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPipeline.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.inputDataConfig = null; - object.trainingTaskDefinition = ""; - object.trainingTaskInputs = null; - object.trainingTaskMetadata = null; - object.modelToUpload = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.parentModel = ""; - object.modelId = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) - object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - object.trainingTaskDefinition = message.trainingTaskDefinition; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) - object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) - object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) - object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; - return object; - }; - - /** - * Converts this TrainingPipeline to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - * @returns {Object.} JSON object - */ - TrainingPipeline.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TrainingPipeline - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; - }; - - return TrainingPipeline; - })(); - - v1.InputDataConfig = (function() { - - /** - * Properties of an InputDataConfig. - * @memberof google.cloud.aiplatform.v1 - * @interface IInputDataConfig - * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit - * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit - * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit - * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit - * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination - * @property {string|null} [datasetId] InputDataConfig datasetId - * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter - * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri - * @property {string|null} [savedQueryId] InputDataConfig savedQueryId - * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment - */ - - /** - * Constructs a new InputDataConfig. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an InputDataConfig. - * @implements IInputDataConfig - * @constructor - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set - */ - function InputDataConfig(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]]; - } - - /** - * InputDataConfig fractionSplit. - * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.fractionSplit = null; - - /** - * InputDataConfig filterSplit. - * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.filterSplit = null; - - /** - * InputDataConfig predefinedSplit. - * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.predefinedSplit = null; - - /** - * InputDataConfig timestampSplit. - * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.timestampSplit = null; - - /** - * InputDataConfig stratifiedSplit. - * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.stratifiedSplit = null; + return null; + }; /** - * InputDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ - InputDataConfig.prototype.gcsDestination = null; + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * InputDataConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - InputDataConfig.prototype.bigqueryDestination = null; + CancelTrainingPipelineRequest.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; + }; /** - * InputDataConfig datasetId. - * @member {string} datasetId - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * Converts this CancelTrainingPipelineRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance + * @returns {Object.} JSON object */ - InputDataConfig.prototype.datasetId = ""; + CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * InputDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Gets the default type url for CancelTrainingPipelineRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - InputDataConfig.prototype.annotationsFilter = ""; + CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; + }; + + return CancelTrainingPipelineRequest; + })(); + + v1.CreatePipelineJobRequest = (function() { /** - * InputDataConfig annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Properties of a CreatePipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId */ - InputDataConfig.prototype.annotationSchemaUri = ""; /** - * InputDataConfig savedQueryId. - * @member {string} savedQueryId - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Constructs a new CreatePipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set */ - InputDataConfig.prototype.savedQueryId = ""; + function CreatePipelineJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * InputDataConfig persistMlUseAssignment. - * @member {boolean} persistMlUseAssignment - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * CreatePipelineJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - InputDataConfig.prototype.persistMlUseAssignment = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + CreatePipelineJobRequest.prototype.parent = ""; /** - * InputDataConfig split. - * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - Object.defineProperty(InputDataConfig.prototype, "split", { - get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreatePipelineJobRequest.prototype.pipelineJob = null; /** - * InputDataConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * CreatePipelineJobRequest pipelineJobId. + * @member {string} pipelineJobId + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - Object.defineProperty(InputDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreatePipelineJobRequest.prototype.pipelineJobId = ""; /** - * Creates a new InputDataConfig instance using the specified properties. + * Creates a new CreatePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance */ - InputDataConfig.create = function create(properties) { - return new InputDataConfig(properties); + CreatePipelineJobRequest.create = function create(properties) { + return new CreatePipelineJobRequest(properties); }; /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encode = function encode(message, writer) { + CreatePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); - if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) - $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) - $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) - $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) - $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); - if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); - if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) - $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); return writer; }; /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decode = function decode(reader, length) { + CreatePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); - break; - } - case 3: { - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); - break; - } - case 4: { - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); - break; - } - case 5: { - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); - break; - } - case 12: { - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); - break; - } - case 8: { - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 10: { - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } case 1: { - message.datasetId = reader.string(); - break; - } - case 6: { - message.annotationsFilter = reader.string(); - break; - } - case 9: { - message.annotationSchemaUri = reader.string(); + message.parent = reader.string(); break; } - case 7: { - message.savedQueryId = reader.string(); + case 2: { + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); break; } - case 11: { - message.persistMlUseAssignment = reader.bool(); + case 3: { + message.pipelineJobId = reader.string(); break; } default: @@ -150723,294 +166315,144 @@ }; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decodeDelimited = function decodeDelimited(reader) { + CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputDataConfig message. + * Verifies a CreatePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputDataConfig.verify = function verify(message) { + CreatePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); - if (error) - return "fractionSplit." + error; - } - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); - if (error) - return "filterSplit." + error; - } - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); - if (error) - return "predefinedSplit." + error; - } - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); - if (error) - return "timestampSplit." + error; - } - } - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); - if (error) - return "stratifiedSplit." + error; - } - } - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } - } - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); - if (error) - return "bigqueryDestination." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (error) + return "pipelineJob." + error; } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - if (!$util.isString(message.savedQueryId)) - return "savedQueryId: string expected"; - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - if (typeof message.persistMlUseAssignment !== "boolean") - return "persistMlUseAssignment: boolean expected"; + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + if (!$util.isString(message.pipelineJobId)) + return "pipelineJobId: string expected"; return null; }; /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - InputDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); - if (object.fractionSplit != null) { - if (typeof object.fractionSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); - } - if (object.filterSplit != null) { - if (typeof object.filterSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); - } - if (object.predefinedSplit != null) { - if (typeof object.predefinedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); - } - if (object.timestampSplit != null) { - if (typeof object.timestampSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); - } - if (object.stratifiedSplit != null) { - if (typeof object.stratifiedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); - } - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); - } - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); } - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.savedQueryId != null) - message.savedQueryId = String(object.savedQueryId); - if (object.persistMlUseAssignment != null) - message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); + if (object.pipelineJobId != null) + message.pipelineJobId = String(object.pipelineJobId); return message; }; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig + * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputDataConfig.toObject = function toObject(message, options) { + CreatePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.datasetId = ""; - object.annotationsFilter = ""; - object.savedQueryId = ""; - object.annotationSchemaUri = ""; - object.persistMlUseAssignment = false; - } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); - if (options.oneofs) - object.split = "fractionSplit"; - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); - if (options.oneofs) - object.split = "filterSplit"; - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); - if (options.oneofs) - object.split = "predefinedSplit"; - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); - if (options.oneofs) - object.split = "timestampSplit"; - } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - object.savedQueryId = message.savedQueryId; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; - } - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; - } - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - object.persistMlUseAssignment = message.persistMlUseAssignment; - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); - if (options.oneofs) - object.split = "stratifiedSplit"; + object.parent = ""; + object.pipelineJob = null; + object.pipelineJobId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + object.pipelineJobId = message.pipelineJobId; return object; }; /** - * Converts this InputDataConfig to JSON. + * Converts this CreatePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance * @returns {Object.} JSON object */ - InputDataConfig.prototype.toJSON = function toJSON() { + CreatePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputDataConfig + * Gets the default type url for CreatePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; }; - return InputDataConfig; + return CreatePipelineJobRequest; })(); - v1.FractionSplit = (function() { + v1.GetPipelineJobRequest = (function() { /** - * Properties of a FractionSplit. + * Properties of a GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IFractionSplit - * @property {number|null} [trainingFraction] FractionSplit trainingFraction - * @property {number|null} [validationFraction] FractionSplit validationFraction - * @property {number|null} [testFraction] FractionSplit testFraction + * @interface IGetPipelineJobRequest + * @property {string|null} [name] GetPipelineJobRequest name */ /** - * Constructs a new FractionSplit. + * Constructs a new GetPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FractionSplit. - * @implements IFractionSplit + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set */ - function FractionSplit(properties) { + function GetPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151018,103 +166460,75 @@ } /** - * FractionSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit - * @instance - */ - FractionSplit.prototype.trainingFraction = 0; - - /** - * FractionSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit - * @instance - */ - FractionSplit.prototype.validationFraction = 0; - - /** - * FractionSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit + * GetPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance */ - FractionSplit.prototype.testFraction = 0; + GetPipelineJobRequest.prototype.name = ""; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance */ - FractionSplit.create = function create(properties) { - return new FractionSplit(properties); + GetPipelineJobRequest.create = function create(properties) { + return new GetPipelineJobRequest(properties); }; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encode = function encode(message, writer) { + GetPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decode = function decode(reader, length) { + GetPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FractionSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); - break; - } - case 2: { - message.validationFraction = reader.double(); - break; - } - case 3: { - message.testFraction = reader.double(); + message.name = reader.string(); break; } default: @@ -151126,141 +166540,127 @@ }; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decodeDelimited = function decodeDelimited(reader) { + GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FractionSplit message. + * Verifies a GetPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FractionSplit.verify = function verify(message) { + GetPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest */ - FractionSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); + var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit + * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FractionSplit.toObject = function toObject(message, options) { + GetPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FractionSplit to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance * @returns {Object.} JSON object */ - FractionSplit.prototype.toJSON = function toJSON() { + GetPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for GetPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; }; - return FractionSplit; + return GetPipelineJobRequest; })(); - v1.FilterSplit = (function() { + v1.ListPipelineJobsRequest = (function() { /** - * Properties of a FilterSplit. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IFilterSplit - * @property {string|null} [trainingFilter] FilterSplit trainingFilter - * @property {string|null} [validationFilter] FilterSplit validationFilter - * @property {string|null} [testFilter] FilterSplit testFilter + * @interface IListPipelineJobsRequest + * @property {string|null} [parent] ListPipelineJobsRequest parent + * @property {string|null} [filter] ListPipelineJobsRequest filter + * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize + * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken + * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask */ /** - * Constructs a new FilterSplit. + * Constructs a new ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FilterSplit. - * @implements IFilterSplit + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set */ - function FilterSplit(properties) { + function ListPipelineJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151268,103 +166668,145 @@ } /** - * FilterSplit trainingFilter. - * @member {string} trainingFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit + * ListPipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - FilterSplit.prototype.trainingFilter = ""; + ListPipelineJobsRequest.prototype.parent = ""; /** - * FilterSplit validationFilter. - * @member {string} validationFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit + * ListPipelineJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - FilterSplit.prototype.validationFilter = ""; + ListPipelineJobsRequest.prototype.filter = ""; /** - * FilterSplit testFilter. - * @member {string} testFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit + * ListPipelineJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - FilterSplit.prototype.testFilter = ""; + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * Creates a new FilterSplit instance using the specified properties. + * ListPipelineJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @instance + */ + ListPipelineJobsRequest.prototype.pageToken = ""; + + /** + * ListPipelineJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @instance + */ + ListPipelineJobsRequest.prototype.orderBy = ""; + + /** + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @instance + */ + ListPipelineJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListPipelineJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance */ - FilterSplit.create = function create(properties) { - return new FilterSplit(properties); + ListPipelineJobsRequest.create = function create(properties) { + return new ListPipelineJobsRequest(properties); }; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encode = function encode(message, writer) { + ListPipelineJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); - if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); - if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decode = function decode(reader, length) { + ListPipelineJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FilterSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFilter = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.validationFilter = reader.string(); + message.filter = reader.string(); break; } case 3: { - message.testFilter = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } + case 7: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -151376,139 +166818,170 @@ }; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilterSplit message. + * Verifies a ListPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilterSplit.verify = function verify(message) { + ListPipelineJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - if (!$util.isString(message.trainingFilter)) - return "trainingFilter: string expected"; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - if (!$util.isString(message.validationFilter)) - return "validationFilter: string expected"; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - if (!$util.isString(message.testFilter)) - return "testFilter: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } return null; }; /** - * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - FilterSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); - if (object.trainingFilter != null) - message.trainingFilter = String(object.trainingFilter); - if (object.validationFilter != null) - message.validationFilter = String(object.validationFilter); - if (object.testFilter != null) - message.testFilter = String(object.testFilter); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } return message; }; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit + * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilterSplit.toObject = function toObject(message, options) { + ListPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.trainingFilter = ""; - object.validationFilter = ""; - object.testFilter = ""; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; } - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - object.trainingFilter = message.trainingFilter; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - object.validationFilter = message.validationFilter; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - object.testFilter = message.testFilter; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this FilterSplit to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - FilterSplit.prototype.toJSON = function toJSON() { + ListPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for ListPipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; }; - return FilterSplit; + return ListPipelineJobsRequest; })(); - v1.PredefinedSplit = (function() { + v1.ListPipelineJobsResponse = (function() { /** - * Properties of a PredefinedSplit. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPredefinedSplit - * @property {string|null} [key] PredefinedSplit key + * @interface IListPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs + * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken */ /** - * Constructs a new PredefinedSplit. + * Constructs a new ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredefinedSplit. - * @implements IPredefinedSplit + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set */ - function PredefinedSplit(properties) { + function ListPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151516,75 +166989,92 @@ } /** - * PredefinedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - PredefinedSplit.prototype.key = ""; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * Creates a new PredefinedSplit instance using the specified properties. + * ListPipelineJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @instance + */ + ListPipelineJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance */ - PredefinedSplit.create = function create(properties) { - return new PredefinedSplit(properties); + ListPipelineJobsResponse.create = function create(properties) { + return new ListPipelineJobsResponse(properties); }; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encode = function encode(message, writer) { + ListPipelineJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decode = function decode(reader, length) { + ListPipelineJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.key = reader.string(); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -151596,125 +167086,148 @@ }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredefinedSplit message. + * Verifies a ListPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredefinedSplit.verify = function verify(message) { + ListPipelineJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - PredefinedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredefinedSplit.toObject = function toObject(message, options) { + ListPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pipelineJobs = []; if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + object.nextPageToken = ""; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PredefinedSplit to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - PredefinedSplit.prototype.toJSON = function toJSON() { + ListPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for ListPipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; }; - return PredefinedSplit; + return ListPipelineJobsResponse; })(); - v1.TimestampSplit = (function() { + v1.DeletePipelineJobRequest = (function() { /** - * Properties of a TimestampSplit. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ITimestampSplit - * @property {number|null} [trainingFraction] TimestampSplit trainingFraction - * @property {number|null} [validationFraction] TimestampSplit validationFraction - * @property {number|null} [testFraction] TimestampSplit testFraction - * @property {string|null} [key] TimestampSplit key + * @interface IDeletePipelineJobRequest + * @property {string|null} [name] DeletePipelineJobRequest name */ /** - * Constructs a new TimestampSplit. + * Constructs a new DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TimestampSplit. - * @implements ITimestampSplit + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set */ - function TimestampSplit(properties) { + function DeletePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151722,117 +167235,75 @@ } /** - * TimestampSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.trainingFraction = 0; - - /** - * TimestampSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.validationFraction = 0; - - /** - * TimestampSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit - * @instance - */ - TimestampSplit.prototype.testFraction = 0; - - /** - * TimestampSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * DeletePipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance */ - TimestampSplit.prototype.key = ""; + DeletePipelineJobRequest.prototype.name = ""; /** - * Creates a new TimestampSplit instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance */ - TimestampSplit.create = function create(properties) { - return new TimestampSplit(properties); + DeletePipelineJobRequest.create = function create(properties) { + return new DeletePipelineJobRequest(properties); }; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encode = function encode(message, writer) { + DeletePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decode = function decode(reader, length) { + DeletePipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); - break; - } - case 2: { - message.validationFraction = reader.double(); - break; - } - case 3: { - message.testFraction = reader.double(); - break; - } - case 4: { - message.key = reader.string(); + message.name = reader.string(); break; } default: @@ -151844,150 +167315,122 @@ }; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampSplit message. + * Verifies a DeletePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampSplit.verify = function verify(message) { + DeletePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - TimestampSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit + * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampSplit.toObject = function toObject(message, options) { + DeletePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; - } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this TimestampSplit to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance * @returns {Object.} JSON object */ - TimestampSplit.prototype.toJSON = function toJSON() { + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimestampSplit + * Gets the default type url for DeletePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; }; - return TimestampSplit; + return DeletePipelineJobRequest; })(); - v1.StratifiedSplit = (function() { + v1.CancelPipelineJobRequest = (function() { /** - * Properties of a StratifiedSplit. + * Properties of a CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IStratifiedSplit - * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction - * @property {number|null} [validationFraction] StratifiedSplit validationFraction - * @property {number|null} [testFraction] StratifiedSplit testFraction - * @property {string|null} [key] StratifiedSplit key + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name */ /** - * Constructs a new StratifiedSplit. + * Constructs a new CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StratifiedSplit. - * @implements IStratifiedSplit + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set */ - function StratifiedSplit(properties) { + function CancelPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -151995,117 +167438,75 @@ } /** - * StratifiedSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.trainingFraction = 0; - - /** - * StratifiedSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.validationFraction = 0; - - /** - * StratifiedSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit - * @instance - */ - StratifiedSplit.prototype.testFraction = 0; - - /** - * StratifiedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * CancelPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance */ - StratifiedSplit.prototype.key = ""; + CancelPipelineJobRequest.prototype.name = ""; /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance */ - StratifiedSplit.create = function create(properties) { - return new StratifiedSplit(properties); + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); }; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encode = function encode(message, writer) { + CancelPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); - if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); - if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decode = function decode(reader, length) { + CancelPipelineJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); - break; - } - case 2: { - message.validationFraction = reader.double(); - break; - } - case 3: { - message.testFraction = reader.double(); - break; - } - case 4: { - message.key = reader.string(); + message.name = reader.string(); break; } default: @@ -152117,424 +167518,459 @@ }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StratifiedSplit message. + * Verifies a CancelPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StratifiedSplit.verify = function verify(message) { + CancelPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - if (typeof message.trainingFraction !== "number") - return "trainingFraction: number expected"; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - if (typeof message.validationFraction !== "number") - return "validationFraction: number expected"; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - if (typeof message.testFraction !== "number") - return "testFraction: number expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest */ - StratifiedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); - if (object.trainingFraction != null) - message.trainingFraction = Number(object.trainingFraction); - if (object.validationFraction != null) - message.validationFraction = Number(object.validationFraction); - if (object.testFraction != null) - message.testFraction = Number(object.testFraction); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit + * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StratifiedSplit.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; - } - if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) - object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; - if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) - object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; - if (message.testFraction != null && message.hasOwnProperty("testFraction")) - object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this StratifiedSplit to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - StratifiedSplit.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for CancelPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; }; - return StratifiedSplit; + return CancelPipelineJobRequest; })(); - v1.PredictionService = (function() { + v1.TrainingPipeline = (function() { /** - * Constructs a new PredictionService service. + * Properties of a TrainingPipeline. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictionService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @interface ITrainingPipeline + * @property {string|null} [name] TrainingPipeline name + * @property {string|null} [displayName] TrainingPipeline displayName + * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig + * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition + * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs + * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata + * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state + * @property {google.rpc.IStatus|null} [error] TrainingPipeline error + * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime + * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime + * @property {Object.|null} [labels] TrainingPipeline labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec */ - function PredictionService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; /** - * Creates new PredictionService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.PredictionService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. + * Constructs a new TrainingPipeline. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a TrainingPipeline. + * @implements ITrainingPipeline + * @constructor + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set */ - PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + function TrainingPipeline(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]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef PredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse + * TrainingPipeline name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ + TrainingPipeline.prototype.name = ""; /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { - return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); - }, "name", { value: "Predict" }); + TrainingPipeline.prototype.displayName = ""; /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline inputDataConfig. + * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TrainingPipeline.prototype.inputDataConfig = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef RawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.api.HttpBody} [response] HttpBody + * TrainingPipeline trainingTaskDefinition. + * @member {string} trainingTaskDefinition + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ + TrainingPipeline.prototype.trainingTaskDefinition = ""; /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline trainingTaskInputs. + * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { - return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); - }, "name", { value: "RawPredict" }); + TrainingPipeline.prototype.trainingTaskInputs = null; /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline trainingTaskMetadata. + * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TrainingPipeline.prototype.trainingTaskMetadata = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|serverStreamingPredict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef ServerStreamingPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.StreamingPredictResponse} [response] StreamingPredictResponse + * TrainingPipeline modelToUpload. + * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ + TrainingPipeline.prototype.modelToUpload = null; /** - * Calls ServerStreamingPredict. - * @function serverStreamingPredict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredictCallback} callback Node-style callback called with the error, if any, and StreamingPredictResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PredictionService.prototype.serverStreamingPredict = function serverStreamingPredict(request, callback) { - return this.rpcCall(serverStreamingPredict, $root.google.cloud.aiplatform.v1.StreamingPredictRequest, $root.google.cloud.aiplatform.v1.StreamingPredictResponse, request, callback); - }, "name", { value: "ServerStreamingPredict" }); + TrainingPipeline.prototype.modelId = ""; /** - * Calls ServerStreamingPredict. - * @function serverStreamingPredict - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} request StreamingPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TrainingPipeline.prototype.parentModel = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef ExplainCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse + * TrainingPipeline state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ + TrainingPipeline.prototype.state = 0; /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { - return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); - }, "name", { value: "Explain" }); + TrainingPipeline.prototype.error = null; /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService + * TrainingPipeline createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return PredictionService; - })(); - - v1.PredictRequest = (function() { + TrainingPipeline.prototype.createTime = null; /** - * Properties of a PredictRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IPredictRequest - * @property {string|null} [endpoint] PredictRequest endpoint - * @property {Array.|null} [instances] PredictRequest instances - * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + * TrainingPipeline startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ + TrainingPipeline.prototype.startTime = null; /** - * Constructs a new PredictRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictRequest. - * @implements IPredictRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * TrainingPipeline endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance */ - function PredictRequest(properties) { - this.instances = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TrainingPipeline.prototype.endTime = null; /** - * PredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.PredictRequest + * TrainingPipeline updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - PredictRequest.prototype.endpoint = ""; + TrainingPipeline.prototype.updateTime = null; /** - * PredictRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.PredictRequest + * TrainingPipeline labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - PredictRequest.prototype.instances = $util.emptyArray; + TrainingPipeline.prototype.labels = $util.emptyObject; /** - * PredictRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.PredictRequest + * TrainingPipeline encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - PredictRequest.prototype.parameters = null; + TrainingPipeline.prototype.encryptionSpec = null; /** - * Creates a new PredictRequest instance using the specified properties. + * Creates a new TrainingPipeline instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance */ - PredictRequest.create = function create(properties) { - return new PredictRequest(properties); + TrainingPipeline.create = function create(properties) { + return new TrainingPipeline(properties); }; /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encode = function encode(message, writer) { + TrainingPipeline.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) + $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); + if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) + $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) + $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) + $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictRequest message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decode = function decode(reader, length) { + TrainingPipeline.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.name = reader.string(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.displayName = reader.string(); break; } case 3: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainingTaskDefinition = reader.string(); + break; + } + case 5: { + message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + break; + } + case 22: { + message.modelId = reader.string(); + break; + } + case 21: { + message.parentModel = reader.string(); + break; + } + case 9: { + message.state = reader.int32(); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 15: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 18: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -152546,168 +167982,381 @@ }; /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decodeDelimited = function decodeDelimited(reader) { + TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictRequest message. + * Verifies a TrainingPipeline message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictRequest.verify = function verify(message) { + TrainingPipeline.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { + var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); + if (error) + return "inputDataConfig." + error; + } + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + if (!$util.isString(message.trainingTaskDefinition)) + return "trainingTaskDefinition: string expected"; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); + if (error) + return "trainingTaskInputs." + error; + } + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); + if (error) + return "trainingTaskMetadata." + error; + } + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); + if (error) + return "modelToUpload." + error; + } + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "parameters." + error; + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; } return null; }; /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline */ - PredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) + TrainingPipeline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.inputDataConfig != null) { + if (typeof object.inputDataConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); + } + if (object.trainingTaskDefinition != null) + message.trainingTaskDefinition = String(object.trainingTaskDefinition); + if (object.trainingTaskInputs != null) { + if (typeof object.trainingTaskInputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); + message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); + } + if (object.trainingTaskMetadata != null) { + if (typeof object.trainingTaskMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); + message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); + } + if (object.modelToUpload != null) { + if (typeof object.modelToUpload !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); + } + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } return message; }; /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest + * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictRequest.toObject = function toObject(message, options) { + TrainingPipeline.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instances = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; + object.name = ""; + object.displayName = ""; + object.inputDataConfig = null; + object.trainingTaskDefinition = ""; + object.trainingTaskInputs = null; + object.trainingTaskMetadata = null; + object.modelToUpload = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) + object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + object.trainingTaskDefinition = message.trainingTaskDefinition; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) + object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) + object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) + object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; /** - * Converts this PredictRequest to JSON. + * Converts this TrainingPipeline to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance * @returns {Object.} JSON object */ - PredictRequest.prototype.toJSON = function toJSON() { + TrainingPipeline.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictRequest + * Gets the default type url for TrainingPipeline * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; }; - return PredictRequest; + return TrainingPipeline; })(); - v1.PredictResponse = (function() { + v1.InputDataConfig = (function() { /** - * Properties of a PredictResponse. + * Properties of an InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IPredictResponse - * @property {Array.|null} [predictions] PredictResponse predictions - * @property {string|null} [deployedModelId] PredictResponse deployedModelId - * @property {string|null} [model] PredictResponse model - * @property {string|null} [modelVersionId] PredictResponse modelVersionId - * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName - * @property {google.protobuf.IValue|null} [metadata] PredictResponse metadata + * @interface IInputDataConfig + * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit + * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit + * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit + * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit + * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination + * @property {string|null} [datasetId] InputDataConfig datasetId + * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter + * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId + * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment */ /** - * Constructs a new PredictResponse. + * Constructs a new InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictResponse. - * @implements IPredictResponse + * @classdesc Represents an InputDataConfig. + * @implements IInputDataConfig * @constructor - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set */ - function PredictResponse(properties) { - this.predictions = []; + function InputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -152715,148 +168364,254 @@ } /** - * PredictResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.predictions = $util.emptyArray; + InputDataConfig.prototype.fractionSplit = null; /** - * PredictResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig filterSplit. + * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.deployedModelId = ""; + InputDataConfig.prototype.filterSplit = null; /** - * PredictResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig predefinedSplit. + * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.model = ""; + InputDataConfig.prototype.predefinedSplit = null; /** - * PredictResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig timestampSplit. + * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.modelVersionId = ""; + InputDataConfig.prototype.timestampSplit = null; /** - * PredictResponse modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig stratifiedSplit. + * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.modelDisplayName = ""; + InputDataConfig.prototype.stratifiedSplit = null; /** - * PredictResponse metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.PredictResponse + * InputDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - PredictResponse.prototype.metadata = null; + InputDataConfig.prototype.gcsDestination = null; /** - * Creates a new PredictResponse instance using the specified properties. + * InputDataConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.bigqueryDestination = null; + + /** + * InputDataConfig datasetId. + * @member {string} datasetId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.datasetId = ""; + + /** + * InputDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationsFilter = ""; + + /** + * InputDataConfig annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationSchemaUri = ""; + + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + + /** + * InputDataConfig persistMlUseAssignment. + * @member {boolean} persistMlUseAssignment + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.persistMlUseAssignment = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputDataConfig split. + * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InputDataConfig destination. + * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance */ - PredictResponse.create = function create(properties) { - return new PredictResponse(properties); + InputDataConfig.create = function create(properties) { + return new InputDataConfig(properties); }; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encode = function encode(message, writer) { + InputDataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.predictions != null && message.predictions.length) - for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) + $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) + $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) + $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); + if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) + $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decode = function decode(reader, length) { + InputDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } case 2: { - message.deployedModelId = reader.string(); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); break; } case 3: { - message.model = reader.string(); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); + break; + } + case 4: { + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); break; } case 5: { - message.modelVersionId = reader.string(); + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); break; } - case 4: { - message.modelDisplayName = reader.string(); + case 12: { + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); + break; + } + case 8: { + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 10: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.datasetId = reader.string(); break; } case 6: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.annotationsFilter = reader.string(); + break; + } + case 9: { + message.annotationSchemaUri = reader.string(); + break; + } + case 7: { + message.savedQueryId = reader.string(); + break; + } + case 11: { + message.persistMlUseAssignment = reader.bool(); break; } default: @@ -152868,187 +168623,294 @@ }; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decodeDelimited = function decodeDelimited(reader) { + InputDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictResponse message. + * Verifies an InputDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictResponse.verify = function verify(message) { + InputDataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.predictions != null && message.hasOwnProperty("predictions")) { - if (!Array.isArray(message.predictions)) - return "predictions: array expected"; - for (var i = 0; i < message.predictions.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.predictions[i]); + var properties = {}; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); if (error) - return "predictions." + error; + return "fractionSplit." + error; } } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); + if (error) + return "filterSplit." + error; + } + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); + if (error) + return "predefinedSplit." + error; + } + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); + if (error) + return "timestampSplit." + error; + } + } + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); + if (error) + return "stratifiedSplit." + error; + } + } + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + if (typeof message.persistMlUseAssignment !== "boolean") + return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig */ - PredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) + InputDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: array expected"); - message.predictions = []; - for (var i = 0; i < object.predictions.length; ++i) { - if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); - } + var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + if (object.filterSplit != null) { + if (typeof object.filterSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); + } + if (object.predefinedSplit != null) { + if (typeof object.predefinedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); + } + if (object.timestampSplit != null) { + if (typeof object.timestampSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); + } + if (object.stratifiedSplit != null) { + if (typeof object.stratifiedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); + } + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); } + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); + if (object.persistMlUseAssignment != null) + message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); return message; }; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse + * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictResponse.toObject = function toObject(message, options) { + InputDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.predictions = []; if (options.defaults) { - object.deployedModelId = ""; - object.model = ""; - object.modelDisplayName = ""; - object.modelVersionId = ""; - object.metadata = null; + object.datasetId = ""; + object.annotationsFilter = ""; + object.savedQueryId = ""; + object.annotationSchemaUri = ""; + object.persistMlUseAssignment = false; } - if (message.predictions && message.predictions.length) { - object.predictions = []; - for (var j = 0; j < message.predictions.length; ++j) - object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); + if (options.oneofs) + object.split = "filterSplit"; + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); + if (options.oneofs) + object.split = "predefinedSplit"; + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); + if (options.oneofs) + object.split = "timestampSplit"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; + } + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + object.persistMlUseAssignment = message.persistMlUseAssignment; + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); + if (options.oneofs) + object.split = "stratifiedSplit"; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this PredictResponse to JSON. + * Converts this InputDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance * @returns {Object.} JSON object */ - PredictResponse.prototype.toJSON = function toJSON() { + InputDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictResponse + * Gets the default type url for InputDataConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; }; - return PredictResponse; + return InputDataConfig; })(); - v1.RawPredictRequest = (function() { + v1.FractionSplit = (function() { /** - * Properties of a RawPredictRequest. + * Properties of a FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IRawPredictRequest - * @property {string|null} [endpoint] RawPredictRequest endpoint - * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + * @interface IFractionSplit + * @property {number|null} [trainingFraction] FractionSplit trainingFraction + * @property {number|null} [validationFraction] FractionSplit validationFraction + * @property {number|null} [testFraction] FractionSplit testFraction */ /** - * Constructs a new RawPredictRequest. + * Constructs a new FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RawPredictRequest. - * @implements IRawPredictRequest + * @classdesc Represents a FractionSplit. + * @implements IFractionSplit * @constructor - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set */ - function RawPredictRequest(properties) { + function FractionSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153056,89 +168918,103 @@ } /** - * RawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * FractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - RawPredictRequest.prototype.endpoint = ""; + FractionSplit.prototype.trainingFraction = 0; /** - * RawPredictRequest httpBody. - * @member {google.api.IHttpBody|null|undefined} httpBody - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * FractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - RawPredictRequest.prototype.httpBody = null; + FractionSplit.prototype.validationFraction = 0; /** - * Creates a new RawPredictRequest instance using the specified properties. + * FractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit + * @instance + */ + FractionSplit.prototype.testFraction = 0; + + /** + * Creates a new FractionSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance */ - RawPredictRequest.create = function create(properties) { - return new RawPredictRequest(properties); + FractionSplit.create = function create(properties) { + return new FractionSplit(properties); }; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encode = function encode(message, writer) { + FractionSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) - $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); return writer; }; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decode = function decode(reader, length) { + FractionSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FractionSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); break; } default: @@ -153150,139 +169026,141 @@ }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + FractionSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RawPredictRequest message. + * Verifies a FractionSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RawPredictRequest.verify = function verify(message) { + FractionSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) { - var error = $root.google.api.HttpBody.verify(message.httpBody); - if (error) - return "httpBody." + error; - } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; return null; }; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit */ - RawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) + FractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.httpBody != null) { - if (typeof object.httpBody !== "object") - throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); - message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); - } + var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); return message; }; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest + * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RawPredictRequest.toObject = function toObject(message, options) { + FractionSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.endpoint = ""; - object.httpBody = null; + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) - object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; return object; }; /** - * Converts this RawPredictRequest to JSON. + * Converts this FractionSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance * @returns {Object.} JSON object */ - RawPredictRequest.prototype.toJSON = function toJSON() { + FractionSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RawPredictRequest + * Gets the default type url for FractionSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; }; - return RawPredictRequest; + return FractionSplit; })(); - v1.StreamingPredictRequest = (function() { + v1.FilterSplit = (function() { /** - * Properties of a StreamingPredictRequest. + * Properties of a FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IStreamingPredictRequest - * @property {string|null} [endpoint] StreamingPredictRequest endpoint - * @property {Array.|null} [inputs] StreamingPredictRequest inputs - * @property {google.cloud.aiplatform.v1.ITensor|null} [parameters] StreamingPredictRequest parameters + * @interface IFilterSplit + * @property {string|null} [trainingFilter] FilterSplit trainingFilter + * @property {string|null} [validationFilter] FilterSplit validationFilter + * @property {string|null} [testFilter] FilterSplit testFilter */ /** - * Constructs a new StreamingPredictRequest. + * Constructs a new FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StreamingPredictRequest. - * @implements IStreamingPredictRequest + * @classdesc Represents a FilterSplit. + * @implements IFilterSplit * @constructor - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set */ - function StreamingPredictRequest(properties) { - this.inputs = []; + function FilterSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153290,106 +169168,103 @@ } /** - * StreamingPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * FilterSplit trainingFilter. + * @member {string} trainingFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - StreamingPredictRequest.prototype.endpoint = ""; + FilterSplit.prototype.trainingFilter = ""; /** - * StreamingPredictRequest inputs. - * @member {Array.} inputs - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * FilterSplit validationFilter. + * @member {string} validationFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - StreamingPredictRequest.prototype.inputs = $util.emptyArray; + FilterSplit.prototype.validationFilter = ""; /** - * StreamingPredictRequest parameters. - * @member {google.cloud.aiplatform.v1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * FilterSplit testFilter. + * @member {string} testFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - StreamingPredictRequest.prototype.parameters = null; + FilterSplit.prototype.testFilter = ""; /** - * Creates a new StreamingPredictRequest instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest instance + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance */ - StreamingPredictRequest.create = function create(properties) { - return new StreamingPredictRequest(properties); + FilterSplit.create = function create(properties) { + return new FilterSplit(properties); }; /** - * Encodes the specified StreamingPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictRequest.encode = function encode(message, writer) { + FilterSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.google.cloud.aiplatform.v1.Tensor.encode(message.inputs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1.Tensor.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); + if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); + if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); return writer; }; /** - * Encodes the specified StreamingPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictRequest.verify|verify} messages. + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictRequest} message StreamingPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictRequest.decode = function decode(reader, length) { + FilterSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FilterSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFilter = reader.string(); break; } case 2: { - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); + message.validationFilter = reader.string(); break; } case 3: { - message.parameters = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); + message.testFilter = reader.string(); break; } default: @@ -153401,164 +169276,139 @@ }; /** - * Decodes a StreamingPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictRequest.decodeDelimited = function decodeDelimited(reader) { + FilterSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingPredictRequest message. + * Verifies a FilterSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingPredictRequest.verify = function verify(message) { + FilterSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; - } + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + if (!$util.isString(message.trainingFilter)) + return "trainingFilter: string expected"; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + if (!$util.isString(message.validationFilter)) + return "validationFilter: string expected"; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + if (!$util.isString(message.testFilter)) + return "testFilter: string expected"; return null; }; /** - * Creates a StreamingPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StreamingPredictRequest} StreamingPredictRequest + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit */ - StreamingPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StreamingPredictRequest) + FilterSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.StreamingPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.inputs) { - if (!Array.isArray(object.inputs)) - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.inputs: array expected"); - message.inputs = []; - for (var i = 0; i < object.inputs.length; ++i) { - if (typeof object.inputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.inputs: object expected"); - message.inputs[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.inputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictRequest.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.parameters); - } + var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); + if (object.trainingFilter != null) + message.trainingFilter = String(object.trainingFilter); + if (object.validationFilter != null) + message.validationFilter = String(object.validationFilter); + if (object.testFilter != null) + message.testFilter = String(object.testFilter); return message; }; /** - * Creates a plain object from a StreamingPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.StreamingPredictRequest} message StreamingPredictRequest + * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingPredictRequest.toObject = function toObject(message, options) { + FilterSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.inputs = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.inputs && message.inputs.length) { - object.inputs = []; - for (var j = 0; j < message.inputs.length; ++j) - object.inputs[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.inputs[j], options); + object.trainingFilter = ""; + object.validationFilter = ""; + object.testFilter = ""; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.parameters, options); + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + object.trainingFilter = message.trainingFilter; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + object.validationFilter = message.validationFilter; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + object.testFilter = message.testFilter; return object; }; /** - * Converts this StreamingPredictRequest to JSON. + * Converts this FilterSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance * @returns {Object.} JSON object */ - StreamingPredictRequest.prototype.toJSON = function toJSON() { + FilterSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingPredictRequest + * Gets the default type url for FilterSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StreamingPredictRequest + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; }; - return StreamingPredictRequest; + return FilterSplit; })(); - v1.StreamingPredictResponse = (function() { + v1.PredefinedSplit = (function() { /** - * Properties of a StreamingPredictResponse. + * Properties of a PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IStreamingPredictResponse - * @property {Array.|null} [outputs] StreamingPredictResponse outputs - * @property {google.cloud.aiplatform.v1.ITensor|null} [parameters] StreamingPredictResponse parameters + * @interface IPredefinedSplit + * @property {string|null} [key] PredefinedSplit key */ /** - * Constructs a new StreamingPredictResponse. + * Constructs a new PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StreamingPredictResponse. - * @implements IStreamingPredictResponse + * @classdesc Represents a PredefinedSplit. + * @implements IPredefinedSplit * @constructor - * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set */ - function StreamingPredictResponse(properties) { - this.outputs = []; + function PredefinedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153566,92 +169416,75 @@ } /** - * StreamingPredictResponse outputs. - * @member {Array.} outputs - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse - * @instance - */ - StreamingPredictResponse.prototype.outputs = $util.emptyArray; - - /** - * StreamingPredictResponse parameters. - * @member {google.cloud.aiplatform.v1.ITensor|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * PredefinedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance */ - StreamingPredictResponse.prototype.parameters = null; + PredefinedSplit.prototype.key = ""; /** - * Creates a new StreamingPredictResponse instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse instance + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance */ - StreamingPredictResponse.create = function create(properties) { - return new StreamingPredictResponse(properties); + PredefinedSplit.create = function create(properties) { + return new PredefinedSplit(properties); }; /** - * Encodes the specified StreamingPredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictResponse.encode = function encode(message, writer) { + PredefinedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.google.cloud.aiplatform.v1.Tensor.encode(message.outputs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.cloud.aiplatform.v1.Tensor.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); return writer; }; /** - * Encodes the specified StreamingPredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StreamingPredictResponse.verify|verify} messages. + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IStreamingPredictResponse} message StreamingPredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingPredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictResponse.decode = function decode(reader, length) { + PredefinedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StreamingPredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32())); - break; - } - case 2: { - message.parameters = $root.google.cloud.aiplatform.v1.Tensor.decode(reader, reader.uint32()); + message.key = reader.string(); break; } default: @@ -153663,158 +169496,125 @@ }; /** - * Decodes a StreamingPredictResponse message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingPredictResponse.decodeDelimited = function decodeDelimited(reader) { + PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingPredictResponse message. + * Verifies a PredefinedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingPredictResponse.verify = function verify(message) { + PredefinedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.cloud.aiplatform.v1.Tensor.verify(message.parameters); - if (error) - return "parameters." + error; - } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a StreamingPredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StreamingPredictResponse} StreamingPredictResponse + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit */ - StreamingPredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StreamingPredictResponse) + PredefinedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.StreamingPredictResponse(); - if (object.outputs) { - if (!Array.isArray(object.outputs)) - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.outputs: array expected"); - message.outputs = []; - for (var i = 0; i < object.outputs.length; ++i) { - if (typeof object.outputs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.outputs: object expected"); - message.outputs[i] = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.outputs[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.StreamingPredictResponse.parameters: object expected"); - message.parameters = $root.google.cloud.aiplatform.v1.Tensor.fromObject(object.parameters); - } + var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a StreamingPredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.StreamingPredictResponse} message StreamingPredictResponse + * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingPredictResponse.toObject = function toObject(message, options) { + PredefinedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.outputs = []; if (options.defaults) - object.parameters = null; - if (message.outputs && message.outputs.length) { - object.outputs = []; - for (var j = 0; j < message.outputs.length; ++j) - object.outputs[j] = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.outputs[j], options); - } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.cloud.aiplatform.v1.Tensor.toObject(message.parameters, options); + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this StreamingPredictResponse to JSON. + * Converts this PredefinedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance * @returns {Object.} JSON object */ - StreamingPredictResponse.prototype.toJSON = function toJSON() { + PredefinedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingPredictResponse + * Gets the default type url for PredefinedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StreamingPredictResponse + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingPredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StreamingPredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; }; - return StreamingPredictResponse; + return PredefinedSplit; })(); - v1.ExplainRequest = (function() { + v1.TimestampSplit = (function() { /** - * Properties of an ExplainRequest. + * Properties of a TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainRequest - * @property {string|null} [endpoint] ExplainRequest endpoint - * @property {Array.|null} [instances] ExplainRequest instances - * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters - * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride - * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + * @interface ITimestampSplit + * @property {number|null} [trainingFraction] TimestampSplit trainingFraction + * @property {number|null} [validationFraction] TimestampSplit validationFraction + * @property {number|null} [testFraction] TimestampSplit testFraction + * @property {string|null} [key] TimestampSplit key */ /** - * Constructs a new ExplainRequest. + * Constructs a new TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainRequest. - * @implements IExplainRequest + * @classdesc Represents a TimestampSplit. + * @implements ITimestampSplit * @constructor - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set */ - function ExplainRequest(properties) { - this.instances = []; + function TimestampSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -153822,134 +169622,117 @@ } /** - * ExplainRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.endpoint = ""; - - /** - * ExplainRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.instances = $util.emptyArray; + TimestampSplit.prototype.trainingFraction = 0; /** - * ExplainRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.parameters = null; + TimestampSplit.prototype.validationFraction = 0; /** - * ExplainRequest explanationSpecOverride. - * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.explanationSpecOverride = null; + TimestampSplit.prototype.testFraction = 0; /** - * ExplainRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.deployedModelId = ""; + TimestampSplit.prototype.key = ""; /** - * Creates a new ExplainRequest instance using the specified properties. + * Creates a new TimestampSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance */ - ExplainRequest.create = function create(properties) { - return new ExplainRequest(properties); + TimestampSplit.create = function create(properties) { + return new TimestampSplit(properties); }; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encode = function encode(message, writer) { + TimestampSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) - $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainRequest message from the specified reader or buffer. + * Decodes a TimestampSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decode = function decode(reader, length) { + TimestampSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - } - case 4: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.validationFraction = reader.double(); break; } - case 5: { - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + case 3: { + message.testFraction = reader.double(); break; } - case 3: { - message.deployedModelId = reader.string(); + case 4: { + message.key = reader.string(); break; } default: @@ -153961,187 +169744,150 @@ }; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + TimestampSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainRequest message. + * Verifies a TimestampSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainRequest.verify = function verify(message) { + TimestampSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { - var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); - if (error) - return "explanationSpecOverride." + error; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit */ - ExplainRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + TimestampSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); - } - if (object.explanationSpecOverride != null) { - if (typeof object.explanationSpecOverride !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); + var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainRequest.toObject = function toObject(message, options) { + TimestampSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instances = []; if (options.defaults) { - object.endpoint = ""; - object.deployedModelId = ""; - object.parameters = null; - object.explanationSpecOverride = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) - object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this ExplainRequest to JSON. + * Converts this TimestampSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance * @returns {Object.} JSON object */ - ExplainRequest.prototype.toJSON = function toJSON() { + TimestampSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainRequest + * Gets the default type url for TimestampSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; }; - return ExplainRequest; + return TimestampSplit; })(); - v1.ExplainResponse = (function() { + v1.StratifiedSplit = (function() { /** - * Properties of an ExplainResponse. + * Properties of a StratifiedSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainResponse - * @property {Array.|null} [explanations] ExplainResponse explanations - * @property {string|null} [deployedModelId] ExplainResponse deployedModelId - * @property {Array.|null} [predictions] ExplainResponse predictions + * @interface IStratifiedSplit + * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction + * @property {number|null} [validationFraction] StratifiedSplit validationFraction + * @property {number|null} [testFraction] StratifiedSplit testFraction + * @property {string|null} [key] StratifiedSplit key */ /** - * Constructs a new ExplainResponse. + * Constructs a new StratifiedSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainResponse. - * @implements IExplainResponse + * @classdesc Represents a StratifiedSplit. + * @implements IStratifiedSplit * @constructor - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set */ - function ExplainResponse(properties) { - this.explanations = []; - this.predictions = []; + function StratifiedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -154149,109 +169895,117 @@ } /** - * ExplainResponse explanations. - * @member {Array.} explanations - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * StratifiedSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @instance */ - ExplainResponse.prototype.explanations = $util.emptyArray; + StratifiedSplit.prototype.trainingFraction = 0; /** - * ExplainResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * StratifiedSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @instance */ - ExplainResponse.prototype.deployedModelId = ""; + StratifiedSplit.prototype.validationFraction = 0; /** - * ExplainResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * StratifiedSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @instance */ - ExplainResponse.prototype.predictions = $util.emptyArray; + StratifiedSplit.prototype.testFraction = 0; /** - * Creates a new ExplainResponse instance using the specified properties. + * StratifiedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.key = ""; + + /** + * Creates a new StratifiedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance */ - ExplainResponse.create = function create(properties) { - return new ExplainResponse(properties); + StratifiedSplit.create = function create(properties) { + return new StratifiedSplit(properties); }; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encode = function encode(message, writer) { + StratifiedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanations != null && message.explanations.length) - for (var i = 0; i < message.explanations.length; ++i) - $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.predictions != null && message.predictions.length) - for (var i = 0; i < message.predictions.length; ++i) - $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingFraction != null && Object.hasOwnProperty.call(message, "trainingFraction")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.trainingFraction); + if (message.validationFraction != null && Object.hasOwnProperty.call(message, "validationFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.validationFraction); + if (message.testFraction != null && Object.hasOwnProperty.call(message, "testFraction")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.testFraction); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a StratifiedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decode = function decode(reader, length) { + StratifiedSplit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.explanations && message.explanations.length)) - message.explanations = []; - message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + message.trainingFraction = reader.double(); break; } case 2: { - message.deployedModelId = reader.string(); + message.validationFraction = reader.double(); break; } case 3: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.testFraction = reader.double(); + break; + } + case 4: { + message.key = reader.string(); break; } default: @@ -154263,154 +170017,127 @@ }; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainResponse message. + * Verifies a StratifiedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainResponse.verify = function verify(message) { + StratifiedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.explanations != null && message.hasOwnProperty("explanations")) { - if (!Array.isArray(message.explanations)) - return "explanations: array expected"; - for (var i = 0; i < message.explanations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Explanation.verify(message.explanations[i]); - if (error) - return "explanations." + error; - } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.predictions != null && message.hasOwnProperty("predictions")) { - if (!Array.isArray(message.predictions)) - return "predictions: array expected"; - for (var i = 0; i < message.predictions.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.predictions[i]); - if (error) - return "predictions." + error; - } - } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + if (typeof message.trainingFraction !== "number") + return "trainingFraction: number expected"; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + if (typeof message.validationFraction !== "number") + return "validationFraction: number expected"; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + if (typeof message.testFraction !== "number") + return "testFraction: number expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit */ - ExplainResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) + StratifiedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); - if (object.explanations) { - if (!Array.isArray(object.explanations)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: array expected"); - message.explanations = []; - for (var i = 0; i < object.explanations.length; ++i) { - if (typeof object.explanations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.explanations: object expected"); - message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: array expected"); - message.predictions = []; - for (var i = 0; i < object.predictions.length; ++i) { - if (typeof object.predictions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + if (object.trainingFraction != null) + message.trainingFraction = Number(object.trainingFraction); + if (object.validationFraction != null) + message.validationFraction = Number(object.validationFraction); + if (object.testFraction != null) + message.testFraction = Number(object.testFraction); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static - * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse + * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainResponse.toObject = function toObject(message, options) { + StratifiedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.explanations = []; - object.predictions = []; - } - if (options.defaults) - object.deployedModelId = ""; - if (message.explanations && message.explanations.length) { - object.explanations = []; - for (var j = 0; j < message.explanations.length; ++j) - object.explanations[j] = $root.google.cloud.aiplatform.v1.Explanation.toObject(message.explanations[j], options); - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.predictions && message.predictions.length) { - object.predictions = []; - for (var j = 0; j < message.predictions.length; ++j) - object.predictions[j] = $root.google.protobuf.Value.toObject(message.predictions[j], options); + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; } + if (message.trainingFraction != null && message.hasOwnProperty("trainingFraction")) + object.trainingFraction = options.json && !isFinite(message.trainingFraction) ? String(message.trainingFraction) : message.trainingFraction; + if (message.validationFraction != null && message.hasOwnProperty("validationFraction")) + object.validationFraction = options.json && !isFinite(message.validationFraction) ? String(message.validationFraction) : message.validationFraction; + if (message.testFraction != null && message.hasOwnProperty("testFraction")) + object.testFraction = options.json && !isFinite(message.testFraction) ? String(message.testFraction) : message.testFraction; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this ExplainResponse to JSON. + * Converts this StratifiedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @instance * @returns {Object.} JSON object */ - ExplainResponse.prototype.toJSON = function toJSON() { + StratifiedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainResponse + * Gets the default type url for StratifiedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; }; - return ExplainResponse; + return StratifiedSplit; })(); v1.Schedule = (function() { @@ -211320,6 +227047,7 @@ * @property {string|null} [machineType] MachineSpec machineType * @property {google.cloud.aiplatform.v1beta1.AcceleratorType|null} [acceleratorType] MachineSpec acceleratorType * @property {number|null} [acceleratorCount] MachineSpec acceleratorCount + * @property {string|null} [tpuTopology] MachineSpec tpuTopology */ /** @@ -211361,6 +227089,14 @@ */ MachineSpec.prototype.acceleratorCount = 0; + /** + * MachineSpec tpuTopology. + * @member {string} tpuTopology + * @memberof google.cloud.aiplatform.v1beta1.MachineSpec + * @instance + */ + MachineSpec.prototype.tpuTopology = ""; + /** * Creates a new MachineSpec instance using the specified properties. * @function create @@ -211391,6 +227127,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.acceleratorType); if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.acceleratorCount); + if (message.tpuTopology != null && Object.hasOwnProperty.call(message, "tpuTopology")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.tpuTopology); return writer; }; @@ -211437,6 +227175,10 @@ message.acceleratorCount = reader.int32(); break; } + case 4: { + message.tpuTopology = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -211498,6 +227240,9 @@ if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) if (!$util.isInteger(message.acceleratorCount)) return "acceleratorCount: integer expected"; + if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) + if (!$util.isString(message.tpuTopology)) + return "tpuTopology: string expected"; return null; }; @@ -211581,6 +227326,8 @@ } if (object.acceleratorCount != null) message.acceleratorCount = object.acceleratorCount | 0; + if (object.tpuTopology != null) + message.tpuTopology = String(object.tpuTopology); return message; }; @@ -211601,6 +227348,7 @@ object.machineType = ""; object.acceleratorType = options.enums === String ? "ACCELERATOR_TYPE_UNSPECIFIED" : 0; object.acceleratorCount = 0; + object.tpuTopology = ""; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -211608,6 +227356,8 @@ object.acceleratorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.AcceleratorType[message.acceleratorType] === undefined ? message.acceleratorType : $root.google.cloud.aiplatform.v1beta1.AcceleratorType[message.acceleratorType] : message.acceleratorType; if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) object.acceleratorCount = message.acceleratorCount; + if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) + object.tpuTopology = message.tpuTopology; return object; }; @@ -222423,6 +238173,10 @@ * @property {Array.|null} [ports] ModelContainerSpec ports * @property {string|null} [predictRoute] ModelContainerSpec predictRoute * @property {string|null} [healthRoute] ModelContainerSpec healthRoute + * @property {google.protobuf.IDuration|null} [deploymentTimeout] ModelContainerSpec deploymentTimeout + * @property {number|Long|null} [sharedMemorySizeMb] ModelContainerSpec sharedMemorySizeMb + * @property {google.cloud.aiplatform.v1beta1.IProbe|null} [startupProbe] ModelContainerSpec startupProbe + * @property {google.cloud.aiplatform.v1beta1.IProbe|null} [healthProbe] ModelContainerSpec healthProbe */ /** @@ -222500,6 +238254,38 @@ */ ModelContainerSpec.prototype.healthRoute = ""; + /** + * ModelContainerSpec deploymentTimeout. + * @member {google.protobuf.IDuration|null|undefined} deploymentTimeout + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.deploymentTimeout = null; + + /** + * ModelContainerSpec sharedMemorySizeMb. + * @member {number|Long} sharedMemorySizeMb + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.sharedMemorySizeMb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ModelContainerSpec startupProbe. + * @member {google.cloud.aiplatform.v1beta1.IProbe|null|undefined} startupProbe + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.startupProbe = null; + + /** + * ModelContainerSpec healthProbe. + * @member {google.cloud.aiplatform.v1beta1.IProbe|null|undefined} healthProbe + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @instance + */ + ModelContainerSpec.prototype.healthProbe = null; + /** * Creates a new ModelContainerSpec instance using the specified properties. * @function create @@ -222542,6 +238328,14 @@ writer.uint32(/* id 6, wireType 2 =*/50).string(message.predictRoute); if (message.healthRoute != null && Object.hasOwnProperty.call(message, "healthRoute")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthRoute); + if (message.deploymentTimeout != null && Object.hasOwnProperty.call(message, "deploymentTimeout")) + $root.google.protobuf.Duration.encode(message.deploymentTimeout, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.sharedMemorySizeMb != null && Object.hasOwnProperty.call(message, "sharedMemorySizeMb")) + writer.uint32(/* id 11, wireType 0 =*/88).int64(message.sharedMemorySizeMb); + if (message.startupProbe != null && Object.hasOwnProperty.call(message, "startupProbe")) + $root.google.cloud.aiplatform.v1beta1.Probe.encode(message.startupProbe, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.healthProbe != null && Object.hasOwnProperty.call(message, "healthProbe")) + $root.google.cloud.aiplatform.v1beta1.Probe.encode(message.healthProbe, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -222612,6 +238406,22 @@ message.healthRoute = reader.string(); break; } + case 10: { + message.deploymentTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + message.sharedMemorySizeMb = reader.int64(); + break; + } + case 12: { + message.startupProbe = $root.google.cloud.aiplatform.v1beta1.Probe.decode(reader, reader.uint32()); + break; + } + case 13: { + message.healthProbe = $root.google.cloud.aiplatform.v1beta1.Probe.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -222688,6 +238498,24 @@ if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) if (!$util.isString(message.healthRoute)) return "healthRoute: string expected"; + if (message.deploymentTimeout != null && message.hasOwnProperty("deploymentTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.deploymentTimeout); + if (error) + return "deploymentTimeout." + error; + } + if (message.sharedMemorySizeMb != null && message.hasOwnProperty("sharedMemorySizeMb")) + if (!$util.isInteger(message.sharedMemorySizeMb) && !(message.sharedMemorySizeMb && $util.isInteger(message.sharedMemorySizeMb.low) && $util.isInteger(message.sharedMemorySizeMb.high))) + return "sharedMemorySizeMb: integer|Long expected"; + if (message.startupProbe != null && message.hasOwnProperty("startupProbe")) { + var error = $root.google.cloud.aiplatform.v1beta1.Probe.verify(message.startupProbe); + if (error) + return "startupProbe." + error; + } + if (message.healthProbe != null && message.hasOwnProperty("healthProbe")) { + var error = $root.google.cloud.aiplatform.v1beta1.Probe.verify(message.healthProbe); + if (error) + return "healthProbe." + error; + } return null; }; @@ -222743,6 +238571,30 @@ message.predictRoute = String(object.predictRoute); if (object.healthRoute != null) message.healthRoute = String(object.healthRoute); + if (object.deploymentTimeout != null) { + if (typeof object.deploymentTimeout !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.deploymentTimeout: object expected"); + message.deploymentTimeout = $root.google.protobuf.Duration.fromObject(object.deploymentTimeout); + } + if (object.sharedMemorySizeMb != null) + if ($util.Long) + (message.sharedMemorySizeMb = $util.Long.fromValue(object.sharedMemorySizeMb)).unsigned = false; + else if (typeof object.sharedMemorySizeMb === "string") + message.sharedMemorySizeMb = parseInt(object.sharedMemorySizeMb, 10); + else if (typeof object.sharedMemorySizeMb === "number") + message.sharedMemorySizeMb = object.sharedMemorySizeMb; + else if (typeof object.sharedMemorySizeMb === "object") + message.sharedMemorySizeMb = new $util.LongBits(object.sharedMemorySizeMb.low >>> 0, object.sharedMemorySizeMb.high >>> 0).toNumber(); + if (object.startupProbe != null) { + if (typeof object.startupProbe !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.startupProbe: object expected"); + message.startupProbe = $root.google.cloud.aiplatform.v1beta1.Probe.fromObject(object.startupProbe); + } + if (object.healthProbe != null) { + if (typeof object.healthProbe !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.healthProbe: object expected"); + message.healthProbe = $root.google.cloud.aiplatform.v1beta1.Probe.fromObject(object.healthProbe); + } return message; }; @@ -222769,6 +238621,14 @@ object.imageUri = ""; object.predictRoute = ""; object.healthRoute = ""; + object.deploymentTimeout = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sharedMemorySizeMb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sharedMemorySizeMb = options.longs === String ? "0" : 0; + object.startupProbe = null; + object.healthProbe = null; } if (message.imageUri != null && message.hasOwnProperty("imageUri")) object.imageUri = message.imageUri; @@ -222796,6 +238656,17 @@ object.predictRoute = message.predictRoute; if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) object.healthRoute = message.healthRoute; + if (message.deploymentTimeout != null && message.hasOwnProperty("deploymentTimeout")) + object.deploymentTimeout = $root.google.protobuf.Duration.toObject(message.deploymentTimeout, options); + if (message.sharedMemorySizeMb != null && message.hasOwnProperty("sharedMemorySizeMb")) + if (typeof message.sharedMemorySizeMb === "number") + object.sharedMemorySizeMb = options.longs === String ? String(message.sharedMemorySizeMb) : message.sharedMemorySizeMb; + else + object.sharedMemorySizeMb = options.longs === String ? $util.Long.prototype.toString.call(message.sharedMemorySizeMb) : options.longs === Number ? new $util.LongBits(message.sharedMemorySizeMb.low >>> 0, message.sharedMemorySizeMb.high >>> 0).toNumber() : message.sharedMemorySizeMb; + if (message.startupProbe != null && message.hasOwnProperty("startupProbe")) + object.startupProbe = $root.google.cloud.aiplatform.v1beta1.Probe.toObject(message.startupProbe, options); + if (message.healthProbe != null && message.hasOwnProperty("healthProbe")) + object.healthProbe = $root.google.cloud.aiplatform.v1beta1.Probe.toObject(message.healthProbe, options); return object; }; @@ -223319,6 +239190,500 @@ return ModelSourceInfo; })(); + v1beta1.Probe = (function() { + + /** + * Properties of a Probe. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IProbe + * @property {google.cloud.aiplatform.v1beta1.Probe.IExecAction|null} [exec] Probe exec + * @property {number|null} [periodSeconds] Probe periodSeconds + * @property {number|null} [timeoutSeconds] Probe timeoutSeconds + */ + + /** + * Constructs a new Probe. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Probe. + * @implements IProbe + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IProbe=} [properties] Properties to set + */ + function Probe(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]]; + } + + /** + * Probe exec. + * @member {google.cloud.aiplatform.v1beta1.Probe.IExecAction|null|undefined} exec + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @instance + */ + Probe.prototype.exec = null; + + /** + * Probe periodSeconds. + * @member {number} periodSeconds + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @instance + */ + Probe.prototype.periodSeconds = 0; + + /** + * Probe timeoutSeconds. + * @member {number} timeoutSeconds + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @instance + */ + Probe.prototype.timeoutSeconds = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Probe probeType. + * @member {"exec"|undefined} probeType + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @instance + */ + Object.defineProperty(Probe.prototype, "probeType", { + get: $util.oneOfGetter($oneOfFields = ["exec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Probe instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {google.cloud.aiplatform.v1beta1.IProbe=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Probe} Probe instance + */ + Probe.create = function create(properties) { + return new Probe(properties); + }; + + /** + * Encodes the specified Probe message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {google.cloud.aiplatform.v1beta1.IProbe} message Probe message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Probe.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exec != null && Object.hasOwnProperty.call(message, "exec")) + $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction.encode(message.exec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.periodSeconds != null && Object.hasOwnProperty.call(message, "periodSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.periodSeconds); + if (message.timeoutSeconds != null && Object.hasOwnProperty.call(message, "timeoutSeconds")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.timeoutSeconds); + return writer; + }; + + /** + * Encodes the specified Probe message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {google.cloud.aiplatform.v1beta1.IProbe} message Probe message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Probe.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Probe message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @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.Probe} Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Probe.decode = function decode(reader, 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.Probe(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exec = $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction.decode(reader, reader.uint32()); + break; + } + case 2: { + message.periodSeconds = reader.int32(); + break; + } + case 3: { + message.timeoutSeconds = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Probe message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Probe} Probe + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Probe.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Probe message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Probe.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.exec != null && message.hasOwnProperty("exec")) { + properties.probeType = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction.verify(message.exec); + if (error) + return "exec." + error; + } + } + if (message.periodSeconds != null && message.hasOwnProperty("periodSeconds")) + if (!$util.isInteger(message.periodSeconds)) + return "periodSeconds: integer expected"; + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + if (!$util.isInteger(message.timeoutSeconds)) + return "timeoutSeconds: integer expected"; + return null; + }; + + /** + * Creates a Probe message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Probe} Probe + */ + Probe.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Probe) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Probe(); + if (object.exec != null) { + if (typeof object.exec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Probe.exec: object expected"); + message.exec = $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction.fromObject(object.exec); + } + if (object.periodSeconds != null) + message.periodSeconds = object.periodSeconds | 0; + if (object.timeoutSeconds != null) + message.timeoutSeconds = object.timeoutSeconds | 0; + return message; + }; + + /** + * Creates a plain object from a Probe message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {google.cloud.aiplatform.v1beta1.Probe} message Probe + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Probe.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.periodSeconds = 0; + object.timeoutSeconds = 0; + } + if (message.exec != null && message.hasOwnProperty("exec")) { + object.exec = $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction.toObject(message.exec, options); + if (options.oneofs) + object.probeType = "exec"; + } + if (message.periodSeconds != null && message.hasOwnProperty("periodSeconds")) + object.periodSeconds = message.periodSeconds; + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + object.timeoutSeconds = message.timeoutSeconds; + return object; + }; + + /** + * Converts this Probe to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @instance + * @returns {Object.} JSON object + */ + Probe.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Probe + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Probe.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Probe"; + }; + + Probe.ExecAction = (function() { + + /** + * Properties of an ExecAction. + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @interface IExecAction + * @property {Array.|null} [command] ExecAction command + */ + + /** + * Constructs a new ExecAction. + * @memberof google.cloud.aiplatform.v1beta1.Probe + * @classdesc Represents an ExecAction. + * @implements IExecAction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Probe.IExecAction=} [properties] Properties to set + */ + function ExecAction(properties) { + this.command = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecAction command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @instance + */ + ExecAction.prototype.command = $util.emptyArray; + + /** + * Creates a new ExecAction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1beta1.Probe.IExecAction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Probe.ExecAction} ExecAction instance + */ + ExecAction.create = function create(properties) { + return new ExecAction(properties); + }; + + /** + * Encodes the specified ExecAction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.ExecAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1beta1.Probe.IExecAction} message ExecAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.command[i]); + return writer; + }; + + /** + * Encodes the specified ExecAction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Probe.ExecAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1beta1.Probe.IExecAction} message ExecAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @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.Probe.ExecAction} ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecAction.decode = function decode(reader, 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.Probe.ExecAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Probe.ExecAction} ExecAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecAction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + return null; + }; + + /** + * Creates an ExecAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Probe.ExecAction} ExecAction + */ + ExecAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Probe.ExecAction(); + if (object.command) { + if (!Array.isArray(object.command)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Probe.ExecAction.command: array expected"); + message.command = []; + for (var i = 0; i < object.command.length; ++i) + message.command[i] = String(object.command[i]); + } + return message; + }; + + /** + * Creates a plain object from an ExecAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {google.cloud.aiplatform.v1beta1.Probe.ExecAction} message ExecAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.command = []; + if (message.command && message.command.length) { + object.command = []; + for (var j = 0; j < message.command.length; ++j) + object.command[j] = message.command[j]; + } + return object; + }; + + /** + * Converts this ExecAction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @instance + * @returns {Object.} JSON object + */ + ExecAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExecAction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Probe.ExecAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExecAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Probe.ExecAction"; + }; + + return ExecAction; + })(); + + return Probe; + })(); + v1beta1.DeployedModelRef = (function() { /** @@ -224920,6 +241285,7 @@ * @property {string|null} [network] CustomJobSpec network * @property {Array.|null} [reservedIpRanges] CustomJobSpec reservedIpRanges * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory + * @property {string|null} [protectedArtifactLocationId] CustomJobSpec protectedArtifactLocationId * @property {string|null} [tensorboard] CustomJobSpec tensorboard * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess * @property {boolean|null} [enableDashboardAccess] CustomJobSpec enableDashboardAccess @@ -225000,6 +241366,14 @@ */ CustomJobSpec.prototype.baseOutputDirectory = null; + /** + * CustomJobSpec protectedArtifactLocationId. + * @member {string} protectedArtifactLocationId + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.protectedArtifactLocationId = ""; + /** * CustomJobSpec tensorboard. * @member {string} tensorboard @@ -225090,6 +241464,8 @@ writer.uint32(/* id 17, wireType 2 =*/138).string(message.experiment); if (message.experimentRun != null && Object.hasOwnProperty.call(message, "experimentRun")) writer.uint32(/* id 18, wireType 2 =*/146).string(message.experimentRun); + if (message.protectedArtifactLocationId != null && Object.hasOwnProperty.call(message, "protectedArtifactLocationId")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.protectedArtifactLocationId); return writer; }; @@ -225156,6 +241532,10 @@ message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); break; } + case 19: { + message.protectedArtifactLocationId = reader.string(); + break; + } case 7: { message.tensorboard = reader.string(); break; @@ -225246,6 +241626,9 @@ if (error) return "baseOutputDirectory." + error; } + if (message.protectedArtifactLocationId != null && message.hasOwnProperty("protectedArtifactLocationId")) + if (!$util.isString(message.protectedArtifactLocationId)) + return "protectedArtifactLocationId: string expected"; if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) if (!$util.isString(message.tensorboard)) return "tensorboard: string expected"; @@ -225309,6 +241692,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.baseOutputDirectory: object expected"); message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.baseOutputDirectory); } + if (object.protectedArtifactLocationId != null) + message.protectedArtifactLocationId = String(object.protectedArtifactLocationId); if (object.tensorboard != null) message.tensorboard = String(object.tensorboard); if (object.enableWebAccess != null) @@ -225350,6 +241735,7 @@ object.enableDashboardAccess = false; object.experiment = ""; object.experimentRun = ""; + object.protectedArtifactLocationId = ""; } if (message.workerPoolSpecs && message.workerPoolSpecs.length) { object.workerPoolSpecs = []; @@ -225381,6 +241767,8 @@ object.experiment = message.experiment; if (message.experimentRun != null && message.hasOwnProperty("experimentRun")) object.experimentRun = message.experimentRun; + if (message.protectedArtifactLocationId != null && message.hasOwnProperty("protectedArtifactLocationId")) + object.protectedArtifactLocationId = message.protectedArtifactLocationId; return object; }; @@ -252721,6 +269109,7 @@ * @property {boolean|null} [disableMonitoring] Feature disableMonitoring * @property {Array.|null} [monitoringStats] Feature monitoringStats * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + * @property {string|null} [versionColumnName] Feature versionColumnName */ /** @@ -252829,6 +269218,14 @@ */ Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + /** + * Feature versionColumnName. + * @member {string} versionColumnName + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.versionColumnName = ""; + /** * Creates a new Feature instance using the specified properties. * @function create @@ -252878,6 +269275,8 @@ $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.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); return writer; }; @@ -252979,6 +269378,10 @@ message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); break; } + case 106: { + message.versionColumnName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -253083,6 +269486,9 @@ return "monitoringStatsAnomalies." + error; } } + if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) + if (!$util.isString(message.versionColumnName)) + return "versionColumnName: string expected"; return null; }; @@ -253196,6 +269602,8 @@ message.monitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.fromObject(object.monitoringStatsAnomalies[i]); } } + if (object.versionColumnName != null) + message.versionColumnName = String(object.versionColumnName); return message; }; @@ -253227,6 +269635,7 @@ object.etag = ""; object.monitoringConfig = null; object.disableMonitoring = false; + object.versionColumnName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -253260,6 +269669,8 @@ } if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) object.disableMonitoring = message.disableMonitoring; + if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) + object.versionColumnName = message.versionColumnName; return object; }; @@ -264160,6 +280571,243 @@ return FeatureOnlineStoreService; })(); + /** + * FeatureViewDataFormat enum. + * @name google.cloud.aiplatform.v1beta1.FeatureViewDataFormat + * @enum {number} + * @property {number} FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED=0 FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED value + * @property {number} KEY_VALUE=1 KEY_VALUE value + * @property {number} PROTO_STRUCT=2 PROTO_STRUCT value + */ + v1beta1.FeatureViewDataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEY_VALUE"] = 1; + values[valuesById[2] = "PROTO_STRUCT"] = 2; + return values; + })(); + + v1beta1.FeatureViewDataKey = (function() { + + /** + * Properties of a FeatureViewDataKey. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureViewDataKey + * @property {string|null} [key] FeatureViewDataKey key + */ + + /** + * Constructs a new FeatureViewDataKey. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureViewDataKey. + * @implements IFeatureViewDataKey + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey=} [properties] Properties to set + */ + function FeatureViewDataKey(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]]; + } + + /** + * FeatureViewDataKey key. + * @member {string|null|undefined} key + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @instance + */ + FeatureViewDataKey.prototype.key = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FeatureViewDataKey keyOneof. + * @member {"key"|undefined} keyOneof + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @instance + */ + Object.defineProperty(FeatureViewDataKey.prototype, "keyOneof", { + get: $util.oneOfGetter($oneOfFields = ["key"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FeatureViewDataKey instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureViewDataKey} FeatureViewDataKey instance + */ + FeatureViewDataKey.create = function create(properties) { + return new FeatureViewDataKey(properties); + }; + + /** + * Encodes the specified FeatureViewDataKey message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureViewDataKey.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey} message FeatureViewDataKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureViewDataKey.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + return writer; + }; + + /** + * Encodes the specified FeatureViewDataKey message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureViewDataKey.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey} message FeatureViewDataKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureViewDataKey.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @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.FeatureViewDataKey} FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureViewDataKey.decode = function decode(reader, 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.FeatureViewDataKey(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.key = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureViewDataKey message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureViewDataKey} FeatureViewDataKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureViewDataKey.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureViewDataKey message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureViewDataKey.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.key != null && message.hasOwnProperty("key")) { + properties.keyOneof = 1; + if (!$util.isString(message.key)) + return "key: string expected"; + } + return null; + }; + + /** + * Creates a FeatureViewDataKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureViewDataKey} FeatureViewDataKey + */ + FeatureViewDataKey.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey(); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a FeatureViewDataKey message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureViewDataKey} message FeatureViewDataKey + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureViewDataKey.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.key != null && message.hasOwnProperty("key")) { + object.key = message.key; + if (options.oneofs) + object.keyOneof = "key"; + } + return object; + }; + + /** + * Converts this FeatureViewDataKey to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @instance + * @returns {Object.} JSON object + */ + FeatureViewDataKey.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureViewDataKey + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewDataKey + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureViewDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureViewDataKey"; + }; + + return FeatureViewDataKey; + })(); + v1beta1.FetchFeatureValuesRequest = (function() { /** @@ -264168,6 +280816,8 @@ * @interface IFetchFeatureValuesRequest * @property {string|null} [id] FetchFeatureValuesRequest id * @property {string|null} [featureView] FetchFeatureValuesRequest featureView + * @property {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey|null} [dataKey] FetchFeatureValuesRequest dataKey + * @property {google.cloud.aiplatform.v1beta1.FeatureViewDataFormat|null} [dataFormat] FetchFeatureValuesRequest dataFormat * @property {google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format|null} [format] FetchFeatureValuesRequest format */ @@ -264202,6 +280852,22 @@ */ FetchFeatureValuesRequest.prototype.featureView = ""; + /** + * FetchFeatureValuesRequest dataKey. + * @member {google.cloud.aiplatform.v1beta1.IFeatureViewDataKey|null|undefined} dataKey + * @memberof google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest + * @instance + */ + FetchFeatureValuesRequest.prototype.dataKey = null; + + /** + * FetchFeatureValuesRequest dataFormat. + * @member {google.cloud.aiplatform.v1beta1.FeatureViewDataFormat} dataFormat + * @memberof google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest + * @instance + */ + FetchFeatureValuesRequest.prototype.dataFormat = 0; + /** * FetchFeatureValuesRequest format. * @member {google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format} format @@ -264254,6 +280920,10 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.id); if (message.format != null && Object.hasOwnProperty.call(message, "format")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.format); + if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) + $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey.encode(message.dataKey, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.dataFormat); return writer; }; @@ -264296,6 +280966,14 @@ message.featureView = reader.string(); break; } + case 6: { + message.dataKey = $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey.decode(reader, reader.uint32()); + break; + } + case 7: { + message.dataFormat = reader.int32(); + break; + } case 5: { message.format = reader.int32(); break; @@ -264344,6 +281022,20 @@ if (message.featureView != null && message.hasOwnProperty("featureView")) if (!$util.isString(message.featureView)) return "featureView: string expected"; + if (message.dataKey != null && message.hasOwnProperty("dataKey")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey.verify(message.dataKey); + if (error) + return "dataKey." + error; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } if (message.format != null && message.hasOwnProperty("format")) switch (message.format) { default: @@ -264372,6 +281064,31 @@ message.id = String(object.id); if (object.featureView != null) message.featureView = String(object.featureView); + if (object.dataKey != null) { + if (typeof object.dataKey !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.dataKey: object expected"); + message.dataKey = $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey.fromObject(object.dataKey); + } + switch (object.dataFormat) { + default: + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; + break; + } + break; + case "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "KEY_VALUE": + case 1: + message.dataFormat = 1; + break; + case "PROTO_STRUCT": + case 2: + message.dataFormat = 2; + break; + } switch (object.format) { default: if (typeof object.format === "number") { @@ -264411,6 +281128,8 @@ if (options.defaults) { object.featureView = ""; object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + object.dataKey = null; + object.dataFormat = options.enums === String ? "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED" : 0; } if (message.featureView != null && message.hasOwnProperty("featureView")) object.featureView = message.featureView; @@ -264421,6 +281140,10 @@ } if (message.format != null && message.hasOwnProperty("format")) object.format = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format[message.format] === undefined ? message.format : $root.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format[message.format] : message.format; + if (message.dataKey != null && message.hasOwnProperty("dataKey")) + object.dataKey = $root.google.cloud.aiplatform.v1beta1.FeatureViewDataKey.toObject(message.dataKey, options); + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeatureViewDataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.aiplatform.v1beta1.FeatureViewDataFormat[message.dataFormat] : message.dataFormat; return object; }; @@ -292732,6 +309455,268 @@ return TrialContext; })(); + v1beta1.StudyTimeConstraint = (function() { + + /** + * Properties of a StudyTimeConstraint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStudyTimeConstraint + * @property {google.protobuf.IDuration|null} [maxDuration] StudyTimeConstraint maxDuration + * @property {google.protobuf.ITimestamp|null} [endTime] StudyTimeConstraint endTime + */ + + /** + * Constructs a new StudyTimeConstraint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StudyTimeConstraint. + * @implements IStudyTimeConstraint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint=} [properties] Properties to set + */ + function StudyTimeConstraint(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]]; + } + + /** + * StudyTimeConstraint maxDuration. + * @member {google.protobuf.IDuration|null|undefined} maxDuration + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @instance + */ + StudyTimeConstraint.prototype.maxDuration = null; + + /** + * StudyTimeConstraint endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @instance + */ + StudyTimeConstraint.prototype.endTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StudyTimeConstraint constraint. + * @member {"maxDuration"|"endTime"|undefined} constraint + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @instance + */ + Object.defineProperty(StudyTimeConstraint.prototype, "constraint", { + get: $util.oneOfGetter($oneOfFields = ["maxDuration", "endTime"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StudyTimeConstraint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudyTimeConstraint} StudyTimeConstraint instance + */ + StudyTimeConstraint.create = function create(properties) { + return new StudyTimeConstraint(properties); + }; + + /** + * Encodes the specified StudyTimeConstraint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint} message StudyTimeConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyTimeConstraint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxDuration != null && Object.hasOwnProperty.call(message, "maxDuration")) + $root.google.protobuf.Duration.encode(message.maxDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudyTimeConstraint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint} message StudyTimeConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyTimeConstraint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @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.StudyTimeConstraint} StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyTimeConstraint.decode = function decode(reader, 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.StudyTimeConstraint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudyTimeConstraint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudyTimeConstraint} StudyTimeConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyTimeConstraint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudyTimeConstraint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudyTimeConstraint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxDuration != null && message.hasOwnProperty("maxDuration")) { + properties.constraint = 1; + { + var error = $root.google.protobuf.Duration.verify(message.maxDuration); + if (error) + return "maxDuration." + error; + } + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + if (properties.constraint === 1) + return "constraint: multiple values"; + properties.constraint = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + } + return null; + }; + + /** + * Creates a StudyTimeConstraint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudyTimeConstraint} StudyTimeConstraint + */ + StudyTimeConstraint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint(); + if (object.maxDuration != null) { + if (typeof object.maxDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudyTimeConstraint.maxDuration: object expected"); + message.maxDuration = $root.google.protobuf.Duration.fromObject(object.maxDuration); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudyTimeConstraint.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a StudyTimeConstraint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {google.cloud.aiplatform.v1beta1.StudyTimeConstraint} message StudyTimeConstraint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudyTimeConstraint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.maxDuration != null && message.hasOwnProperty("maxDuration")) { + object.maxDuration = $root.google.protobuf.Duration.toObject(message.maxDuration, options); + if (options.oneofs) + object.constraint = "maxDuration"; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (options.oneofs) + object.constraint = "endTime"; + } + return object; + }; + + /** + * Converts this StudyTimeConstraint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @instance + * @returns {Object.} JSON object + */ + StudyTimeConstraint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StudyTimeConstraint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudyTimeConstraint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StudyTimeConstraint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudyTimeConstraint"; + }; + + return StudyTimeConstraint; + })(); + v1beta1.StudySpec = (function() { /** @@ -292748,6 +309733,7 @@ * @property {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise * @property {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType * @property {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null} [transferLearningConfig] StudySpec transferLearningConfig + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig|null} [studyStoppingConfig] StudySpec studyStoppingConfig */ /** @@ -292847,6 +309833,14 @@ */ StudySpec.prototype.transferLearningConfig = null; + /** + * StudySpec studyStoppingConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig|null|undefined} studyStoppingConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.studyStoppingConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -292861,6 +309855,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * StudySpec _studyStoppingConfig. + * @member {"studyStoppingConfig"|undefined} _studyStoppingConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + Object.defineProperty(StudySpec.prototype, "_studyStoppingConfig", { + get: $util.oneOfGetter($oneOfFields = ["studyStoppingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new StudySpec instance using the specified properties. * @function create @@ -292907,6 +309912,8 @@ $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.transferLearningConfig != null && Object.hasOwnProperty.call(message, "transferLearningConfig")) $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.encode(message.transferLearningConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.studyStoppingConfig != null && Object.hasOwnProperty.call(message, "studyStoppingConfig")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.encode(message.studyStoppingConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -292985,6 +309992,10 @@ message.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.decode(reader, reader.uint32()); break; } + case 11: { + message.studyStoppingConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -293109,6 +310120,14 @@ if (error) return "transferLearningConfig." + error; } + if (message.studyStoppingConfig != null && message.hasOwnProperty("studyStoppingConfig")) { + properties._studyStoppingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.verify(message.studyStoppingConfig); + if (error) + return "studyStoppingConfig." + error; + } + } return null; }; @@ -293229,6 +310248,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.transferLearningConfig: object expected"); message.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.fromObject(object.transferLearningConfig); } + if (object.studyStoppingConfig != null) { + if (typeof object.studyStoppingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.studyStoppingConfig: object expected"); + message.studyStoppingConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.fromObject(object.studyStoppingConfig); + } return message; }; @@ -293293,6 +310317,11 @@ } if (message.transferLearningConfig != null && message.hasOwnProperty("transferLearningConfig")) object.transferLearningConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.toObject(message.transferLearningConfig, options); + if (message.studyStoppingConfig != null && message.hasOwnProperty("studyStoppingConfig")) { + object.studyStoppingConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.toObject(message.studyStoppingConfig, options); + if (options.oneofs) + object._studyStoppingConfig = "studyStoppingConfig"; + } return object; }; @@ -297836,6 +314865,383 @@ return TransferLearningConfig; })(); + StudySpec.StudyStoppingConfig = (function() { + + /** + * Properties of a StudyStoppingConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IStudyStoppingConfig + * @property {google.protobuf.IBoolValue|null} [shouldStopAsap] StudyStoppingConfig shouldStopAsap + * @property {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null} [minimumRuntimeConstraint] StudyStoppingConfig minimumRuntimeConstraint + * @property {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null} [maximumRuntimeConstraint] StudyStoppingConfig maximumRuntimeConstraint + * @property {google.protobuf.IInt32Value|null} [minNumTrials] StudyStoppingConfig minNumTrials + * @property {google.protobuf.IInt32Value|null} [maxNumTrials] StudyStoppingConfig maxNumTrials + * @property {google.protobuf.IInt32Value|null} [maxNumTrialsNoProgress] StudyStoppingConfig maxNumTrialsNoProgress + * @property {google.protobuf.IDuration|null} [maxDurationNoProgress] StudyStoppingConfig maxDurationNoProgress + */ + + /** + * Constructs a new StudyStoppingConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a StudyStoppingConfig. + * @implements IStudyStoppingConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig=} [properties] Properties to set + */ + function StudyStoppingConfig(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]]; + } + + /** + * StudyStoppingConfig shouldStopAsap. + * @member {google.protobuf.IBoolValue|null|undefined} shouldStopAsap + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.shouldStopAsap = null; + + /** + * StudyStoppingConfig minimumRuntimeConstraint. + * @member {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null|undefined} minimumRuntimeConstraint + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.minimumRuntimeConstraint = null; + + /** + * StudyStoppingConfig maximumRuntimeConstraint. + * @member {google.cloud.aiplatform.v1beta1.IStudyTimeConstraint|null|undefined} maximumRuntimeConstraint + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maximumRuntimeConstraint = null; + + /** + * StudyStoppingConfig minNumTrials. + * @member {google.protobuf.IInt32Value|null|undefined} minNumTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.minNumTrials = null; + + /** + * StudyStoppingConfig maxNumTrials. + * @member {google.protobuf.IInt32Value|null|undefined} maxNumTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxNumTrials = null; + + /** + * StudyStoppingConfig maxNumTrialsNoProgress. + * @member {google.protobuf.IInt32Value|null|undefined} maxNumTrialsNoProgress + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxNumTrialsNoProgress = null; + + /** + * StudyStoppingConfig maxDurationNoProgress. + * @member {google.protobuf.IDuration|null|undefined} maxDurationNoProgress + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + */ + StudyStoppingConfig.prototype.maxDurationNoProgress = null; + + /** + * Creates a new StudyStoppingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig} StudyStoppingConfig instance + */ + StudyStoppingConfig.create = function create(properties) { + return new StudyStoppingConfig(properties); + }; + + /** + * Encodes the specified StudyStoppingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig} message StudyStoppingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyStoppingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.shouldStopAsap != null && Object.hasOwnProperty.call(message, "shouldStopAsap")) + $root.google.protobuf.BoolValue.encode(message.shouldStopAsap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumRuntimeConstraint != null && Object.hasOwnProperty.call(message, "minimumRuntimeConstraint")) + $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.encode(message.minimumRuntimeConstraint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.maximumRuntimeConstraint != null && Object.hasOwnProperty.call(message, "maximumRuntimeConstraint")) + $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.encode(message.maximumRuntimeConstraint, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.minNumTrials != null && Object.hasOwnProperty.call(message, "minNumTrials")) + $root.google.protobuf.Int32Value.encode(message.minNumTrials, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxNumTrials != null && Object.hasOwnProperty.call(message, "maxNumTrials")) + $root.google.protobuf.Int32Value.encode(message.maxNumTrials, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.maxNumTrialsNoProgress != null && Object.hasOwnProperty.call(message, "maxNumTrialsNoProgress")) + $root.google.protobuf.Int32Value.encode(message.maxNumTrialsNoProgress, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.maxDurationNoProgress != null && Object.hasOwnProperty.call(message, "maxDurationNoProgress")) + $root.google.protobuf.Duration.encode(message.maxDurationNoProgress, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudyStoppingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IStudyStoppingConfig} message StudyStoppingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudyStoppingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyStoppingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.shouldStopAsap = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 2: { + message.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.decode(reader, reader.uint32()); + break; + } + case 3: { + message.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.decode(reader, reader.uint32()); + break; + } + case 4: { + message.minNumTrials = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.maxNumTrials = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.decode(reader, reader.uint32()); + break; + } + case 7: { + message.maxDurationNoProgress = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudyStoppingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudyStoppingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudyStoppingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudyStoppingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.shouldStopAsap != null && message.hasOwnProperty("shouldStopAsap")) { + var error = $root.google.protobuf.BoolValue.verify(message.shouldStopAsap); + if (error) + return "shouldStopAsap." + error; + } + if (message.minimumRuntimeConstraint != null && message.hasOwnProperty("minimumRuntimeConstraint")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify(message.minimumRuntimeConstraint); + if (error) + return "minimumRuntimeConstraint." + error; + } + if (message.maximumRuntimeConstraint != null && message.hasOwnProperty("maximumRuntimeConstraint")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.verify(message.maximumRuntimeConstraint); + if (error) + return "maximumRuntimeConstraint." + error; + } + if (message.minNumTrials != null && message.hasOwnProperty("minNumTrials")) { + var error = $root.google.protobuf.Int32Value.verify(message.minNumTrials); + if (error) + return "minNumTrials." + error; + } + if (message.maxNumTrials != null && message.hasOwnProperty("maxNumTrials")) { + var error = $root.google.protobuf.Int32Value.verify(message.maxNumTrials); + if (error) + return "maxNumTrials." + error; + } + if (message.maxNumTrialsNoProgress != null && message.hasOwnProperty("maxNumTrialsNoProgress")) { + var error = $root.google.protobuf.Int32Value.verify(message.maxNumTrialsNoProgress); + if (error) + return "maxNumTrialsNoProgress." + error; + } + if (message.maxDurationNoProgress != null && message.hasOwnProperty("maxDurationNoProgress")) { + var error = $root.google.protobuf.Duration.verify(message.maxDurationNoProgress); + if (error) + return "maxDurationNoProgress." + error; + } + return null; + }; + + /** + * Creates a StudyStoppingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig} StudyStoppingConfig + */ + StudyStoppingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig(); + if (object.shouldStopAsap != null) { + if (typeof object.shouldStopAsap !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.shouldStopAsap: object expected"); + message.shouldStopAsap = $root.google.protobuf.BoolValue.fromObject(object.shouldStopAsap); + } + if (object.minimumRuntimeConstraint != null) { + if (typeof object.minimumRuntimeConstraint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.minimumRuntimeConstraint: object expected"); + message.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.fromObject(object.minimumRuntimeConstraint); + } + if (object.maximumRuntimeConstraint != null) { + if (typeof object.maximumRuntimeConstraint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.maximumRuntimeConstraint: object expected"); + message.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.fromObject(object.maximumRuntimeConstraint); + } + if (object.minNumTrials != null) { + if (typeof object.minNumTrials !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.minNumTrials: object expected"); + message.minNumTrials = $root.google.protobuf.Int32Value.fromObject(object.minNumTrials); + } + if (object.maxNumTrials != null) { + if (typeof object.maxNumTrials !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.maxNumTrials: object expected"); + message.maxNumTrials = $root.google.protobuf.Int32Value.fromObject(object.maxNumTrials); + } + if (object.maxNumTrialsNoProgress != null) { + if (typeof object.maxNumTrialsNoProgress !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.maxNumTrialsNoProgress: object expected"); + message.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.fromObject(object.maxNumTrialsNoProgress); + } + if (object.maxDurationNoProgress != null) { + if (typeof object.maxDurationNoProgress !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig.maxDurationNoProgress: object expected"); + message.maxDurationNoProgress = $root.google.protobuf.Duration.fromObject(object.maxDurationNoProgress); + } + return message; + }; + + /** + * Creates a plain object from a StudyStoppingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig} message StudyStoppingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudyStoppingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.shouldStopAsap = null; + object.minimumRuntimeConstraint = null; + object.maximumRuntimeConstraint = null; + object.minNumTrials = null; + object.maxNumTrials = null; + object.maxNumTrialsNoProgress = null; + object.maxDurationNoProgress = null; + } + if (message.shouldStopAsap != null && message.hasOwnProperty("shouldStopAsap")) + object.shouldStopAsap = $root.google.protobuf.BoolValue.toObject(message.shouldStopAsap, options); + if (message.minimumRuntimeConstraint != null && message.hasOwnProperty("minimumRuntimeConstraint")) + object.minimumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.toObject(message.minimumRuntimeConstraint, options); + if (message.maximumRuntimeConstraint != null && message.hasOwnProperty("maximumRuntimeConstraint")) + object.maximumRuntimeConstraint = $root.google.cloud.aiplatform.v1beta1.StudyTimeConstraint.toObject(message.maximumRuntimeConstraint, options); + if (message.minNumTrials != null && message.hasOwnProperty("minNumTrials")) + object.minNumTrials = $root.google.protobuf.Int32Value.toObject(message.minNumTrials, options); + if (message.maxNumTrials != null && message.hasOwnProperty("maxNumTrials")) + object.maxNumTrials = $root.google.protobuf.Int32Value.toObject(message.maxNumTrials, options); + if (message.maxNumTrialsNoProgress != null && message.hasOwnProperty("maxNumTrialsNoProgress")) + object.maxNumTrialsNoProgress = $root.google.protobuf.Int32Value.toObject(message.maxNumTrialsNoProgress, options); + if (message.maxDurationNoProgress != null && message.hasOwnProperty("maxDurationNoProgress")) + object.maxDurationNoProgress = $root.google.protobuf.Duration.toObject(message.maxDurationNoProgress, options); + return object; + }; + + /** + * Converts this StudyStoppingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @instance + * @returns {Object.} JSON object + */ + StudyStoppingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StudyStoppingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StudyStoppingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.StudyStoppingConfig"; + }; + + return StudyStoppingConfig; + })(); + /** * Algorithm enum. * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm @@ -299017,6 +316423,7 @@ * @property {string|null} [datapointId] IndexDatapoint datapointId * @property {Array.|null} [featureVector] IndexDatapoint featureVector * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {Array.|null} [numericRestricts] IndexDatapoint numericRestricts * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag */ @@ -299031,6 +316438,7 @@ function IndexDatapoint(properties) { this.featureVector = []; this.restricts = []; + this.numericRestricts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -299061,6 +316469,14 @@ */ IndexDatapoint.prototype.restricts = $util.emptyArray; + /** + * IndexDatapoint numericRestricts. + * @member {Array.} numericRestricts + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.numericRestricts = $util.emptyArray; + /** * IndexDatapoint crowdingTag. * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag @@ -299106,6 +316522,9 @@ $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.numericRestricts != null && message.numericRestricts.length) + for (var i = 0; i < message.numericRestricts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.encode(message.numericRestricts[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -299161,6 +316580,12 @@ message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); break; } + case 6: { + if (!(message.numericRestricts && message.numericRestricts.length)) + message.numericRestricts = []; + message.numericRestricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.decode(reader, reader.uint32())); + break; + } case 5: { message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); break; @@ -299219,6 +316644,15 @@ return "restricts." + error; } } + if (message.numericRestricts != null && message.hasOwnProperty("numericRestricts")) { + if (!Array.isArray(message.numericRestricts)) + return "numericRestricts: array expected"; + for (var i = 0; i < message.numericRestricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.verify(message.numericRestricts[i]); + if (error) + return "numericRestricts." + error; + } + } if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); if (error) @@ -299258,6 +316692,16 @@ message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); } } + if (object.numericRestricts) { + if (!Array.isArray(object.numericRestricts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.numericRestricts: array expected"); + message.numericRestricts = []; + for (var i = 0; i < object.numericRestricts.length; ++i) { + if (typeof object.numericRestricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.numericRestricts: object expected"); + message.numericRestricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.fromObject(object.numericRestricts[i]); + } + } if (object.crowdingTag != null) { if (typeof object.crowdingTag !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); @@ -299282,6 +316726,7 @@ if (options.arrays || options.defaults) { object.featureVector = []; object.restricts = []; + object.numericRestricts = []; } if (options.defaults) { object.datapointId = ""; @@ -299301,6 +316746,11 @@ } if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + if (message.numericRestricts && message.numericRestricts.length) { + object.numericRestricts = []; + for (var j = 0; j < message.numericRestricts.length; ++j) + object.numericRestricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.toObject(message.numericRestricts[j], options); + } return object; }; @@ -299613,6 +317063,404 @@ return Restriction; })(); + IndexDatapoint.NumericRestriction = (function() { + + /** + * Properties of a NumericRestriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface INumericRestriction + * @property {number|Long|null} [valueInt] NumericRestriction valueInt + * @property {number|null} [valueFloat] NumericRestriction valueFloat + * @property {number|null} [valueDouble] NumericRestriction valueDouble + * @property {string|null} [namespace] NumericRestriction namespace + * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator|null} [op] NumericRestriction op + */ + + /** + * Constructs a new NumericRestriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a NumericRestriction. + * @implements INumericRestriction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction=} [properties] Properties to set + */ + function NumericRestriction(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]]; + } + + /** + * NumericRestriction valueInt. + * @member {number|Long|null|undefined} valueInt + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueInt = null; + + /** + * NumericRestriction valueFloat. + * @member {number|null|undefined} valueFloat + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueFloat = null; + + /** + * NumericRestriction valueDouble. + * @member {number|null|undefined} valueDouble + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.valueDouble = null; + + /** + * NumericRestriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.namespace = ""; + + /** + * NumericRestriction op. + * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator} op + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + NumericRestriction.prototype.op = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NumericRestriction Value. + * @member {"valueInt"|"valueFloat"|"valueDouble"|undefined} Value + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + */ + Object.defineProperty(NumericRestriction.prototype, "Value", { + get: $util.oneOfGetter($oneOfFields = ["valueInt", "valueFloat", "valueDouble"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NumericRestriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction} NumericRestriction instance + */ + NumericRestriction.create = function create(properties) { + return new NumericRestriction(properties); + }; + + /** + * Encodes the specified NumericRestriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction} message NumericRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericRestriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.valueInt != null && Object.hasOwnProperty.call(message, "valueInt")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.valueInt); + if (message.valueFloat != null && Object.hasOwnProperty.call(message, "valueFloat")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.valueFloat); + if (message.valueDouble != null && Object.hasOwnProperty.call(message, "valueDouble")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.valueDouble); + if (message.op != null && Object.hasOwnProperty.call(message, "op")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.op); + return writer; + }; + + /** + * Encodes the specified NumericRestriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.INumericRestriction} message NumericRestriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NumericRestriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction} NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericRestriction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.valueInt = reader.int64(); + break; + } + case 3: { + message.valueFloat = reader.float(); + break; + } + case 4: { + message.valueDouble = reader.double(); + break; + } + case 1: { + message.namespace = reader.string(); + break; + } + case 5: { + message.op = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NumericRestriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction} NumericRestriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NumericRestriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NumericRestriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NumericRestriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.valueInt != null && message.hasOwnProperty("valueInt")) { + properties.Value = 1; + if (!$util.isInteger(message.valueInt) && !(message.valueInt && $util.isInteger(message.valueInt.low) && $util.isInteger(message.valueInt.high))) + return "valueInt: integer|Long expected"; + } + if (message.valueFloat != null && message.hasOwnProperty("valueFloat")) { + if (properties.Value === 1) + return "Value: multiple values"; + properties.Value = 1; + if (typeof message.valueFloat !== "number") + return "valueFloat: number expected"; + } + if (message.valueDouble != null && message.hasOwnProperty("valueDouble")) { + if (properties.Value === 1) + return "Value: multiple values"; + properties.Value = 1; + if (typeof message.valueDouble !== "number") + return "valueDouble: number expected"; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.op != null && message.hasOwnProperty("op")) + switch (message.op) { + default: + return "op: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a NumericRestriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction} NumericRestriction + */ + NumericRestriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction(); + if (object.valueInt != null) + if ($util.Long) + (message.valueInt = $util.Long.fromValue(object.valueInt)).unsigned = false; + else if (typeof object.valueInt === "string") + message.valueInt = parseInt(object.valueInt, 10); + else if (typeof object.valueInt === "number") + message.valueInt = object.valueInt; + else if (typeof object.valueInt === "object") + message.valueInt = new $util.LongBits(object.valueInt.low >>> 0, object.valueInt.high >>> 0).toNumber(); + if (object.valueFloat != null) + message.valueFloat = Number(object.valueFloat); + if (object.valueDouble != null) + message.valueDouble = Number(object.valueDouble); + if (object.namespace != null) + message.namespace = String(object.namespace); + switch (object.op) { + default: + if (typeof object.op === "number") { + message.op = object.op; + break; + } + break; + case "OPERATOR_UNSPECIFIED": + case 0: + message.op = 0; + break; + case "LESS": + case 1: + message.op = 1; + break; + case "LESS_EQUAL": + case 2: + message.op = 2; + break; + case "EQUAL": + case 3: + message.op = 3; + break; + case "GREATER_EQUAL": + case 4: + message.op = 4; + break; + case "GREATER": + case 5: + message.op = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a NumericRestriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction} message NumericRestriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NumericRestriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namespace = ""; + object.op = options.enums === String ? "OPERATOR_UNSPECIFIED" : 0; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.valueInt != null && message.hasOwnProperty("valueInt")) { + if (typeof message.valueInt === "number") + object.valueInt = options.longs === String ? String(message.valueInt) : message.valueInt; + else + object.valueInt = options.longs === String ? $util.Long.prototype.toString.call(message.valueInt) : options.longs === Number ? new $util.LongBits(message.valueInt.low >>> 0, message.valueInt.high >>> 0).toNumber() : message.valueInt; + if (options.oneofs) + object.Value = "valueInt"; + } + if (message.valueFloat != null && message.hasOwnProperty("valueFloat")) { + object.valueFloat = options.json && !isFinite(message.valueFloat) ? String(message.valueFloat) : message.valueFloat; + if (options.oneofs) + object.Value = "valueFloat"; + } + if (message.valueDouble != null && message.hasOwnProperty("valueDouble")) { + object.valueDouble = options.json && !isFinite(message.valueDouble) ? String(message.valueDouble) : message.valueDouble; + if (options.oneofs) + object.Value = "valueDouble"; + } + if (message.op != null && message.hasOwnProperty("op")) + object.op = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator[message.op] === undefined ? message.op : $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator[message.op] : message.op; + return object; + }; + + /** + * Converts this NumericRestriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @instance + * @returns {Object.} JSON object + */ + NumericRestriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NumericRestriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NumericRestriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction"; + }; + + /** + * Operator enum. + * @name google.cloud.aiplatform.v1beta1.IndexDatapoint.NumericRestriction.Operator + * @enum {number} + * @property {number} OPERATOR_UNSPECIFIED=0 OPERATOR_UNSPECIFIED value + * @property {number} LESS=1 LESS value + * @property {number} LESS_EQUAL=2 LESS_EQUAL value + * @property {number} EQUAL=3 EQUAL value + * @property {number} GREATER_EQUAL=4 GREATER_EQUAL value + * @property {number} GREATER=5 GREATER value + */ + NumericRestriction.Operator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OPERATOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "LESS"] = 1; + values[valuesById[2] = "LESS_EQUAL"] = 2; + values[valuesById[3] = "EQUAL"] = 3; + values[valuesById[4] = "GREATER_EQUAL"] = 4; + values[valuesById[5] = "GREATER"] = 5; + return values; + })(); + + return NumericRestriction; + })(); + IndexDatapoint.CrowdingTag = (function() { /** @@ -324985,6 +342833,826 @@ return LineageSubgraph; })(); + v1beta1.LlmUtilityService = (function() { + + /** + * Constructs a new LlmUtilityService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a LlmUtilityService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function LlmUtilityService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (LlmUtilityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = LlmUtilityService; + + /** + * Creates new LlmUtilityService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {LlmUtilityService} RPC service. Useful where requests and/or responses are streamed. + */ + LlmUtilityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.LlmUtilityService|computeTokens}. + * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService + * @typedef ComputeTokensCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ComputeTokensResponse} [response] ComputeTokensResponse + */ + + /** + * Calls ComputeTokens. + * @function computeTokens + * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest} request ComputeTokensRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokensCallback} callback Node-style callback called with the error, if any, and ComputeTokensResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(LlmUtilityService.prototype.computeTokens = function computeTokens(request, callback) { + return this.rpcCall(computeTokens, $root.google.cloud.aiplatform.v1beta1.ComputeTokensRequest, $root.google.cloud.aiplatform.v1beta1.ComputeTokensResponse, request, callback); + }, "name", { value: "ComputeTokens" }); + + /** + * Calls ComputeTokens. + * @function computeTokens + * @memberof google.cloud.aiplatform.v1beta1.LlmUtilityService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest} request ComputeTokensRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return LlmUtilityService; + })(); + + v1beta1.ComputeTokensRequest = (function() { + + /** + * Properties of a ComputeTokensRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IComputeTokensRequest + * @property {string|null} [endpoint] ComputeTokensRequest endpoint + * @property {Array.|null} [instances] ComputeTokensRequest instances + */ + + /** + * Constructs a new ComputeTokensRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ComputeTokensRequest. + * @implements IComputeTokensRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest=} [properties] Properties to set + */ + function ComputeTokensRequest(properties) { + this.instances = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComputeTokensRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @instance + */ + ComputeTokensRequest.prototype.endpoint = ""; + + /** + * ComputeTokensRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @instance + */ + ComputeTokensRequest.prototype.instances = $util.emptyArray; + + /** + * Creates a new ComputeTokensRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensRequest} ComputeTokensRequest instance + */ + ComputeTokensRequest.create = function create(properties) { + return new ComputeTokensRequest(properties); + }; + + /** + * Encodes the specified ComputeTokensRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest} message ComputeTokensRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeTokensRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ComputeTokensRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensRequest} message ComputeTokensRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeTokensRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ComputeTokensRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @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.ComputeTokensRequest} ComputeTokensRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeTokensRequest.decode = function decode(reader, 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.ComputeTokensRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComputeTokensRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensRequest} ComputeTokensRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeTokensRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComputeTokensRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComputeTokensRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a ComputeTokensRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensRequest} ComputeTokensRequest + */ + ComputeTokensRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ComputeTokensRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ComputeTokensRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ComputeTokensRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ComputeTokensRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ComputeTokensRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ComputeTokensRequest} message ComputeTokensRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComputeTokensRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.endpoint = ""; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ComputeTokensRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @instance + * @returns {Object.} JSON object + */ + ComputeTokensRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComputeTokensRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComputeTokensRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ComputeTokensRequest"; + }; + + return ComputeTokensRequest; + })(); + + v1beta1.TokensInfo = (function() { + + /** + * Properties of a TokensInfo. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ITokensInfo + * @property {Array.|null} [tokens] TokensInfo tokens + * @property {Array.|null} [tokenIds] TokensInfo tokenIds + */ + + /** + * Constructs a new TokensInfo. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a TokensInfo. + * @implements ITokensInfo + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ITokensInfo=} [properties] Properties to set + */ + function TokensInfo(properties) { + this.tokens = []; + this.tokenIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TokensInfo tokens. + * @member {Array.} tokens + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @instance + */ + TokensInfo.prototype.tokens = $util.emptyArray; + + /** + * TokensInfo tokenIds. + * @member {Array.} tokenIds + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @instance + */ + TokensInfo.prototype.tokenIds = $util.emptyArray; + + /** + * Creates a new TokensInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ITokensInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TokensInfo} TokensInfo instance + */ + TokensInfo.create = function create(properties) { + return new TokensInfo(properties); + }; + + /** + * Encodes the specified TokensInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TokensInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ITokensInfo} message TokensInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokensInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tokens != null && message.tokens.length) + for (var i = 0; i < message.tokens.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokens[i]); + if (message.tokenIds != null && message.tokenIds.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.tokenIds.length; ++i) + writer.int64(message.tokenIds[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TokensInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TokensInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.ITokensInfo} message TokensInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TokensInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TokensInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @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.TokensInfo} TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokensInfo.decode = function decode(reader, 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.TokensInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tokens && message.tokens.length)) + message.tokens = []; + message.tokens.push(reader.bytes()); + break; + } + case 2: { + if (!(message.tokenIds && message.tokenIds.length)) + message.tokenIds = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tokenIds.push(reader.int64()); + } else + message.tokenIds.push(reader.int64()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TokensInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.TokensInfo} TokensInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TokensInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TokensInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TokensInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tokens != null && message.hasOwnProperty("tokens")) { + if (!Array.isArray(message.tokens)) + return "tokens: array expected"; + for (var i = 0; i < message.tokens.length; ++i) + if (!(message.tokens[i] && typeof message.tokens[i].length === "number" || $util.isString(message.tokens[i]))) + return "tokens: buffer[] expected"; + } + if (message.tokenIds != null && message.hasOwnProperty("tokenIds")) { + if (!Array.isArray(message.tokenIds)) + return "tokenIds: array expected"; + for (var i = 0; i < message.tokenIds.length; ++i) + if (!$util.isInteger(message.tokenIds[i]) && !(message.tokenIds[i] && $util.isInteger(message.tokenIds[i].low) && $util.isInteger(message.tokenIds[i].high))) + return "tokenIds: integer|Long[] expected"; + } + return null; + }; + + /** + * Creates a TokensInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.TokensInfo} TokensInfo + */ + TokensInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TokensInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.TokensInfo(); + if (object.tokens) { + if (!Array.isArray(object.tokens)) + throw TypeError(".google.cloud.aiplatform.v1beta1.TokensInfo.tokens: array expected"); + message.tokens = []; + for (var i = 0; i < object.tokens.length; ++i) + if (typeof object.tokens[i] === "string") + $util.base64.decode(object.tokens[i], message.tokens[i] = $util.newBuffer($util.base64.length(object.tokens[i])), 0); + else if (object.tokens[i].length >= 0) + message.tokens[i] = object.tokens[i]; + } + if (object.tokenIds) { + if (!Array.isArray(object.tokenIds)) + throw TypeError(".google.cloud.aiplatform.v1beta1.TokensInfo.tokenIds: array expected"); + message.tokenIds = []; + for (var i = 0; i < object.tokenIds.length; ++i) + if ($util.Long) + (message.tokenIds[i] = $util.Long.fromValue(object.tokenIds[i])).unsigned = false; + else if (typeof object.tokenIds[i] === "string") + message.tokenIds[i] = parseInt(object.tokenIds[i], 10); + else if (typeof object.tokenIds[i] === "number") + message.tokenIds[i] = object.tokenIds[i]; + else if (typeof object.tokenIds[i] === "object") + message.tokenIds[i] = new $util.LongBits(object.tokenIds[i].low >>> 0, object.tokenIds[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from a TokensInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.TokensInfo} message TokensInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TokensInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tokens = []; + object.tokenIds = []; + } + if (message.tokens && message.tokens.length) { + object.tokens = []; + for (var j = 0; j < message.tokens.length; ++j) + object.tokens[j] = options.bytes === String ? $util.base64.encode(message.tokens[j], 0, message.tokens[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.tokens[j]) : message.tokens[j]; + } + if (message.tokenIds && message.tokenIds.length) { + object.tokenIds = []; + for (var j = 0; j < message.tokenIds.length; ++j) + if (typeof message.tokenIds[j] === "number") + object.tokenIds[j] = options.longs === String ? String(message.tokenIds[j]) : message.tokenIds[j]; + else + object.tokenIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.tokenIds[j]) : options.longs === Number ? new $util.LongBits(message.tokenIds[j].low >>> 0, message.tokenIds[j].high >>> 0).toNumber() : message.tokenIds[j]; + } + return object; + }; + + /** + * Converts this TokensInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @instance + * @returns {Object.} JSON object + */ + TokensInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TokensInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.TokensInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TokensInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.TokensInfo"; + }; + + return TokensInfo; + })(); + + v1beta1.ComputeTokensResponse = (function() { + + /** + * Properties of a ComputeTokensResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IComputeTokensResponse + * @property {Array.|null} [tokensInfo] ComputeTokensResponse tokensInfo + */ + + /** + * Constructs a new ComputeTokensResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ComputeTokensResponse. + * @implements IComputeTokensResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensResponse=} [properties] Properties to set + */ + function ComputeTokensResponse(properties) { + this.tokensInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComputeTokensResponse tokensInfo. + * @member {Array.} tokensInfo + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @instance + */ + ComputeTokensResponse.prototype.tokensInfo = $util.emptyArray; + + /** + * Creates a new ComputeTokensResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensResponse} ComputeTokensResponse instance + */ + ComputeTokensResponse.create = function create(properties) { + return new ComputeTokensResponse(properties); + }; + + /** + * Encodes the specified ComputeTokensResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensResponse} message ComputeTokensResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeTokensResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tokensInfo != null && message.tokensInfo.length) + for (var i = 0; i < message.tokensInfo.length; ++i) + $root.google.cloud.aiplatform.v1beta1.TokensInfo.encode(message.tokensInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ComputeTokensResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ComputeTokensResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IComputeTokensResponse} message ComputeTokensResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComputeTokensResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ComputeTokensResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @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.ComputeTokensResponse} ComputeTokensResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeTokensResponse.decode = function decode(reader, 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.ComputeTokensResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.tokensInfo && message.tokensInfo.length)) + message.tokensInfo = []; + message.tokensInfo.push($root.google.cloud.aiplatform.v1beta1.TokensInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComputeTokensResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensResponse} ComputeTokensResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComputeTokensResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComputeTokensResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComputeTokensResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tokensInfo != null && message.hasOwnProperty("tokensInfo")) { + if (!Array.isArray(message.tokensInfo)) + return "tokensInfo: array expected"; + for (var i = 0; i < message.tokensInfo.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.TokensInfo.verify(message.tokensInfo[i]); + if (error) + return "tokensInfo." + error; + } + } + return null; + }; + + /** + * Creates a ComputeTokensResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ComputeTokensResponse} ComputeTokensResponse + */ + ComputeTokensResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ComputeTokensResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ComputeTokensResponse(); + if (object.tokensInfo) { + if (!Array.isArray(object.tokensInfo)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ComputeTokensResponse.tokensInfo: array expected"); + message.tokensInfo = []; + for (var i = 0; i < object.tokensInfo.length; ++i) { + if (typeof object.tokensInfo[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ComputeTokensResponse.tokensInfo: object expected"); + message.tokensInfo[i] = $root.google.cloud.aiplatform.v1beta1.TokensInfo.fromObject(object.tokensInfo[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ComputeTokensResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ComputeTokensResponse} message ComputeTokensResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComputeTokensResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tokensInfo = []; + if (message.tokensInfo && message.tokensInfo.length) { + object.tokensInfo = []; + for (var j = 0; j < message.tokensInfo.length; ++j) + object.tokensInfo[j] = $root.google.cloud.aiplatform.v1beta1.TokensInfo.toObject(message.tokensInfo[j], options); + } + return object; + }; + + /** + * Converts this ComputeTokensResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @instance + * @returns {Object.} JSON object + */ + ComputeTokensResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComputeTokensResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ComputeTokensResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComputeTokensResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ComputeTokensResponse"; + }; + + return ComputeTokensResponse; + })(); + v1beta1.MatchService = (function() { /** @@ -369464,6 +388132,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|batchDeletePipelineJobs}. + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @typedef BatchDeletePipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchDeletePipelineJobs. + * @function batchDeletePipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.batchDeletePipelineJobs = function batchDeletePipelineJobs(request, callback) { + return this.rpcCall(batchDeletePipelineJobs, $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchDeletePipelineJobs" }); + + /** + * Calls BatchDeletePipelineJobs. + * @function batchDeletePipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} request BatchDeletePipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.PipelineService|cancelPipelineJob}. * @memberof google.cloud.aiplatform.v1beta1.PipelineService @@ -372123,6 +390824,473 @@ return DeletePipelineJobRequest; })(); + v1beta1.BatchDeletePipelineJobsRequest = (function() { + + /** + * Properties of a BatchDeletePipelineJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchDeletePipelineJobsRequest + * @property {string|null} [parent] BatchDeletePipelineJobsRequest parent + * @property {Array.|null} [names] BatchDeletePipelineJobsRequest names + */ + + /** + * Constructs a new BatchDeletePipelineJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchDeletePipelineJobsRequest. + * @implements IBatchDeletePipelineJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set + */ + function BatchDeletePipelineJobsRequest(properties) { + this.names = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchDeletePipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @instance + */ + BatchDeletePipelineJobsRequest.prototype.parent = ""; + + /** + * BatchDeletePipelineJobsRequest names. + * @member {Array.} names + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @instance + */ + BatchDeletePipelineJobsRequest.prototype.names = $util.emptyArray; + + /** + * Creates a new BatchDeletePipelineJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest instance + */ + BatchDeletePipelineJobsRequest.create = function create(properties) { + return new BatchDeletePipelineJobsRequest(properties); + }; + + /** + * Encodes the specified BatchDeletePipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeletePipelineJobsRequest.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.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.names[i]); + return writer; + }; + + /** + * Encodes the specified BatchDeletePipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeletePipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @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.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeletePipelineJobsRequest.decode = function decode(reader, 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.BatchDeletePipelineJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchDeletePipelineJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeletePipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchDeletePipelineJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchDeletePipelineJobsRequest.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.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } + return null; + }; + + /** + * Creates a BatchDeletePipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} BatchDeletePipelineJobsRequest + */ + BatchDeletePipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; + }; + + /** + * Creates a plain object from a BatchDeletePipelineJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest} message BatchDeletePipelineJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchDeletePipelineJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; + }; + + /** + * Converts this BatchDeletePipelineJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @instance + * @returns {Object.} JSON object + */ + BatchDeletePipelineJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchDeletePipelineJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchDeletePipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest"; + }; + + return BatchDeletePipelineJobsRequest; + })(); + + v1beta1.BatchDeletePipelineJobsResponse = (function() { + + /** + * Properties of a BatchDeletePipelineJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchDeletePipelineJobsResponse + * @property {Array.|null} [pipelineJobs] BatchDeletePipelineJobsResponse pipelineJobs + */ + + /** + * Constructs a new BatchDeletePipelineJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchDeletePipelineJobsResponse. + * @implements IBatchDeletePipelineJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set + */ + function BatchDeletePipelineJobsResponse(properties) { + this.pipelineJobs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchDeletePipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @instance + */ + BatchDeletePipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; + + /** + * Creates a new BatchDeletePipelineJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse instance + */ + BatchDeletePipelineJobsResponse.create = function create(properties) { + return new BatchDeletePipelineJobsResponse(properties); + }; + + /** + * Encodes the specified BatchDeletePipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeletePipelineJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchDeletePipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchDeletePipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @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.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeletePipelineJobsResponse.decode = function decode(reader, 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.BatchDeletePipelineJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1beta1.PipelineJob.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchDeletePipelineJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchDeletePipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchDeletePipelineJobsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchDeletePipelineJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } + } + return null; + }; + + /** + * Creates a BatchDeletePipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} BatchDeletePipelineJobsResponse + */ + BatchDeletePipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.fromObject(object.pipelineJobs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchDeletePipelineJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse} message BatchDeletePipelineJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchDeletePipelineJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pipelineJobs = []; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineJob.toObject(message.pipelineJobs[j], options); + } + return object; + }; + + /** + * Converts this BatchDeletePipelineJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @instance + * @returns {Object.} JSON object + */ + BatchDeletePipelineJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchDeletePipelineJobsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchDeletePipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse"; + }; + + return BatchDeletePipelineJobsResponse; + })(); + v1beta1.CancelPipelineJobRequest = (function() { /** @@ -447600,25 +466768,25 @@ return Timestamp; })(); - protobuf.Any = (function() { + protobuf.Duration = (function() { /** - * Properties of an Any. + * Properties of a Duration. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos */ /** - * Constructs a new Any. + * Constructs a new Duration. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents a Duration. + * @implements IDuration * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IDuration=} [properties] Properties to set */ - function Any(properties) { + function Duration(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -447626,89 +466794,89 @@ } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration * @instance */ - Any.prototype.type_url = ""; + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration * @instance */ - Any.prototype.value = $util.newBuffer([]); + Duration.prototype.nanos = 0; /** - * Creates a new Any instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @function create - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance */ - Any.create = function create(properties) { - return new Any(properties); + Duration.create = function create(properties) { + return new Duration(properties); }; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + Duration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IDuration} message Duration message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + Duration.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decode = function decode(reader, length) { + Duration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.type_url = reader.string(); + message.seconds = reader.int64(); break; } case 2: { - message.value = reader.bytes(); + message.nanos = reader.int32(); break; } default: @@ -447720,141 +466888,146 @@ }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.Duration} Duration * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decodeDelimited = function decodeDelimited(reader) { + Duration.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies a Duration message. * @function verify - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Any.verify = function verify(message) { + Duration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.Duration} Duration */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) return object; - var message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from a Duration message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.Duration} message Duration * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + Duration.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this Any to JSON. + * Converts this Duration to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + Duration.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Any + * Gets the default type url for Duration * @function getTypeUrl - * @memberof google.protobuf.Any + * @memberof google.protobuf.Duration * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Any"; + return typeUrlPrefix + "/google.protobuf.Duration"; }; - return Any; + return Duration; })(); - protobuf.Duration = (function() { + protobuf.Any = (function() { /** - * Properties of a Duration. + * Properties of an Any. * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value */ /** - * Constructs a new Duration. + * Constructs a new Any. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents an Any. + * @implements IAny * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IAny=} [properties] Properties to set */ - function Duration(properties) { + function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -447862,89 +467035,89 @@ } /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any * @instance */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Any.prototype.type_url = ""; /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any * @instance */ - Duration.prototype.nanos = 0; + Any.prototype.value = $util.newBuffer([]); /** - * Creates a new Duration instance using the specified properties. + * Creates a new Any instance using the specified properties. * @function create - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance */ - Duration.create = function create(properties) { - return new Duration(properties); + Any.create = function create(properties) { + return new Any(properties); }; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + Any.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + Any.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.seconds = reader.int64(); + message.type_url = reader.string(); break; } case 2: { - message.nanos = reader.int32(); + message.value = reader.bytes(); break; } default: @@ -447956,125 +467129,120 @@ }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + Any.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies an Any message. * @function verify - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + Any.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.Any} Any */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length >= 0) + message.value = object.value; return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from an Any message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.Any} message Any * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + Any.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this Duration to JSON. + * Converts this Any to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + Any.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Duration + * Gets the default type url for Any * @function getTypeUrl - * @memberof google.protobuf.Duration + * @memberof google.protobuf.Any * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.Duration"; + return typeUrlPrefix + "/google.protobuf.Any"; }; - return Duration; + return Any; })(); protobuf.Empty = (function() { diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index af256643ab9..64860be6f97 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -1355,6 +1355,13 @@ "acceleratorCount": { "type": "int32", "id": 3 + }, + "tpuTopology": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -1872,6 +1879,34 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "deploymentTimeout": { + "type": "google.protobuf.Duration", + "id": 10, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "sharedMemorySizeMb": { + "type": "int64", + "id": 11, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "startupProbe": { + "type": "Probe", + "id": 12, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "healthProbe": { + "type": "Probe", + "id": 13, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -1907,6 +1942,40 @@ } } }, + "Probe": { + "oneofs": { + "probeType": { + "oneof": [ + "exec" + ] + } + }, + "fields": { + "exec": { + "type": "ExecAction", + "id": 1 + }, + "periodSeconds": { + "type": "int32", + "id": 2 + }, + "timeoutSeconds": { + "type": "int32", + "id": 3 + } + }, + "nested": { + "ExecAction": { + "fields": { + "command": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + } + } + }, "DeployedModelRef": { "fields": { "endpoint": { @@ -2137,6 +2206,10 @@ "type": "GcsDestination", "id": 6 }, + "protectedArtifactLocationId": { + "type": "string", + "id": 19 + }, "tensorboard": { "type": "string", "id": 7, @@ -4955,7 +5028,9 @@ "Feature": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/Feature", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}" + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}", + "(google.api.resource).plural": "features", + "(google.api.resource).singular": "feature" }, "fields": { "name": { @@ -5016,6 +5091,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "versionColumnName": { + "type": "string", + "id": 106 } }, "nested": { @@ -5094,35 +5173,108 @@ } } }, - "IdMatcher": { + "FeatureGroup": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureGroup", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureGroups/{feature_group}", + "(google.api.resource).plural": "featureGroups", + "(google.api.resource).singular": "featureGroup" + }, + "oneofs": { + "source": { + "oneof": [ + "bigQuery" + ] + } + }, "fields": { - "ids": { - "rule": "repeated", + "bigQuery": { + "type": "BigQuery", + "id": 7 + }, + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "FeatureSelector": { - "fields": { - "idMatcher": { - "type": "IdMatcher", - "id": 1, + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(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" + } + } + }, + "nested": { + "BigQuery": { + "fields": { + "bigQuerySource": { + "type": "BigQuerySource", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "entityIdColumns": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } } } } }, - "Featurestore": { + "FeatureOnlineStore": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Featurestore", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}" + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureOnlineStore", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}" + }, + "oneofs": { + "storageType": { + "oneof": [ + "bigtable" + ] + } }, "fields": { + "bigtable": { + "type": "Bigtable", + "id": 8 + }, "name": { "type": "string", "id": 1, @@ -5159,49 +5311,27 @@ "(google.api.field_behavior)": "OPTIONAL" } }, - "onlineServingConfig": { - "type": "OnlineServingConfig", - "id": 7, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, "state": { "type": "State", - "id": 8, + "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } - }, - "onlineStorageTtlDays": { - "type": "int32", - "id": 13, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "encryptionSpec": { - "type": "EncryptionSpec", - "id": 10, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } } }, "nested": { - "OnlineServingConfig": { + "Bigtable": { "fields": { - "fixedNodeCount": { - "type": "int32", - "id": 2 - }, - "scaling": { - "type": "Scaling", - "id": 4 + "autoScaling": { + "type": "AutoScaling", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } }, "nested": { - "Scaling": { + "AutoScaling": { "fields": { "minNodeCount": { "type": "int32", @@ -5212,7 +5342,10 @@ }, "maxNodeCount": { "type": "int32", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "cpuUtilizationTarget": { "type": "int32", @@ -5234,128 +5367,1052 @@ } } }, - "FeaturestoreOnlineServingService": { + "FeatureOnlineStoreAdminService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { - "ReadFeatureValues": { - "requestType": "ReadFeatureValuesRequest", - "responseType": "ReadFeatureValuesResponse", + "CreateFeatureOnlineStore": { + "requestType": "CreateFeatureOnlineStoreRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", - "(google.api.http).body": "*", - "(google.api.method_signature)": "entity_type" + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/featureOnlineStores", + "(google.api.http).body": "feature_online_store", + "(google.api.method_signature)": "parent,feature_online_store,feature_online_store_id", + "(google.longrunning.operation_info).response_type": "FeatureOnlineStore", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureOnlineStoreOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", - "body": "*" + "post": "/v1/{parent=projects/*/locations/*}/featureOnlineStores", + "body": "feature_online_store" } }, { - "(google.api.method_signature)": "entity_type" + "(google.api.method_signature)": "parent,feature_online_store,feature_online_store_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureOnlineStore", + "metadata_type": "CreateFeatureOnlineStoreOperationMetadata" + } } ] }, - "StreamingReadFeatureValues": { - "requestType": "StreamingReadFeatureValuesRequest", - "responseType": "ReadFeatureValuesResponse", - "responseStream": true, + "GetFeatureOnlineStore": { + "requestType": "GetFeatureOnlineStoreRequest", + "responseType": "FeatureOnlineStore", "options": { - "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", - "(google.api.http).body": "*", - "(google.api.method_signature)": "entity_type" + "(google.api.http).get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", - "body": "*" + "get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*}" } }, { - "(google.api.method_signature)": "entity_type" + "(google.api.method_signature)": "name" } ] }, - "WriteFeatureValues": { - "requestType": "WriteFeatureValuesRequest", - "responseType": "WriteFeatureValuesResponse", + "ListFeatureOnlineStores": { + "requestType": "ListFeatureOnlineStoresRequest", + "responseType": "ListFeatureOnlineStoresResponse", "options": { - "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues", + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/featureOnlineStores", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/featureOnlineStores" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateFeatureOnlineStore": { + "requestType": "UpdateFeatureOnlineStoreRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{feature_online_store.name=projects/*/locations/*/featureOnlineStores/*}", + "(google.api.http).body": "feature_online_store", + "(google.api.method_signature)": "feature_online_store,update_mask", + "(google.longrunning.operation_info).response_type": "FeatureOnlineStore", + "(google.longrunning.operation_info).metadata_type": "UpdateFeatureOnlineStoreOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{feature_online_store.name=projects/*/locations/*/featureOnlineStores/*}", + "body": "feature_online_store" + } + }, + { + "(google.api.method_signature)": "feature_online_store,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureOnlineStore", + "metadata_type": "UpdateFeatureOnlineStoreOperationMetadata" + } + } + ] + }, + "DeleteFeatureOnlineStore": { + "requestType": "DeleteFeatureOnlineStoreRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/featureOnlineStores/*}", + "(google.api.method_signature)": "name,force", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/featureOnlineStores/*}" + } + }, + { + "(google.api.method_signature)": "name,force" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CreateFeatureView": { + "requestType": "CreateFeatureViewRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews", + "(google.api.http).body": "feature_view", + "(google.api.method_signature)": "parent,feature_view,feature_view_id", + "(google.longrunning.operation_info).response_type": "FeatureView", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureViewOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews", + "body": "feature_view" + } + }, + { + "(google.api.method_signature)": "parent,feature_view,feature_view_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureView", + "metadata_type": "CreateFeatureViewOperationMetadata" + } + } + ] + }, + "GetFeatureView": { + "requestType": "GetFeatureViewRequest", + "responseType": "FeatureView", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatureViews": { + "requestType": "ListFeatureViewsRequest", + "responseType": "ListFeatureViewsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*}/featureViews" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateFeatureView": { + "requestType": "UpdateFeatureViewRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{feature_view.name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}", + "(google.api.http).body": "feature_view", + "(google.api.method_signature)": "feature_view,update_mask", + "(google.longrunning.operation_info).response_type": "FeatureView", + "(google.longrunning.operation_info).metadata_type": "UpdateFeatureViewOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{feature_view.name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}", + "body": "feature_view" + } + }, + { + "(google.api.method_signature)": "feature_view,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureView", + "metadata_type": "UpdateFeatureViewOperationMetadata" + } + } + ] + }, + "DeleteFeatureView": { + "requestType": "DeleteFeatureViewRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "SyncFeatureView": { + "requestType": "SyncFeatureViewRequest", + "responseType": "SyncFeatureViewResponse", + "options": { + "(google.api.http).post": "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:sync", "(google.api.http).body": "*", - "(google.api.method_signature)": "entity_type,payloads" + "(google.api.method_signature)": "feature_view" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues", + "post": "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:sync", "body": "*" } }, { - "(google.api.method_signature)": "entity_type,payloads" + "(google.api.method_signature)": "feature_view" + } + ] + }, + "GetFeatureViewSync": { + "requestType": "GetFeatureViewSyncRequest", + "responseType": "FeatureViewSync", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/featureViewSyncs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/featureViewSyncs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatureViewSyncs": { + "requestType": "ListFeatureViewSyncsRequest", + "responseType": "ListFeatureViewSyncsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*/featureViews/*}/featureViewSyncs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/featureOnlineStores/*/featureViews/*}/featureViewSyncs" + } + }, + { + "(google.api.method_signature)": "parent" } ] } } }, - "WriteFeatureValuesRequest": { + "CreateFeatureOnlineStoreRequest": { "fields": { - "entityType": { + "parent": { "type": "string", "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/FeatureOnlineStore" } }, - "payloads": { - "rule": "repeated", - "type": "WriteFeatureValuesPayload", + "featureOnlineStore": { + "type": "FeatureOnlineStore", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "featureOnlineStoreId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "WriteFeatureValuesPayload": { + "GetFeatureOnlineStoreRequest": { "fields": { - "entityId": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "featureValues": { - "keyType": "string", - "type": "FeatureValue", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureOnlineStore" } } } }, - "WriteFeatureValuesResponse": { - "fields": {} - }, - "ReadFeatureValuesRequest": { + "ListFeatureOnlineStoresRequest": { "fields": { - "entityType": { + "parent": { "type": "string", "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/FeatureOnlineStore" } }, - "entityId": { + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListFeatureOnlineStoresResponse": { + "fields": { + "featureOnlineStores": { + "rule": "repeated", + "type": "FeatureOnlineStore", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdateFeatureOnlineStoreRequest": { + "fields": { + "featureOnlineStore": { + "type": "FeatureOnlineStore", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteFeatureOnlineStoreRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureOnlineStore" + } + }, + "force": { + "type": "bool", + "id": 2 + } + } + }, + "CreateFeatureViewRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureOnlineStore" + } + }, + "featureView": { + "type": "FeatureView", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureViewId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "runSyncImmediately": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } + }, + "GetFeatureViewRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" + } + } + } + }, + "ListFeatureViewsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureView" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListFeatureViewsResponse": { + "fields": { + "featureViews": { + "rule": "repeated", + "type": "FeatureView", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UpdateFeatureViewRequest": { + "fields": { + "featureView": { + "type": "FeatureView", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteFeatureViewRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" + } + } + } + }, + "CreateFeatureOnlineStoreOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "UpdateFeatureOnlineStoreOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CreateFeatureViewOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "UpdateFeatureViewOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "SyncFeatureViewRequest": { + "fields": { + "featureView": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" + } + } + } + }, + "SyncFeatureViewResponse": { + "fields": { + "featureViewSync": { + "type": "string", + "id": 1 + } + } + }, + "GetFeatureViewSyncRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureViewSync" + } + } + } + }, + "ListFeatureViewSyncsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "orderBy": { + "type": "string", + "id": 5 + } + } + }, + "ListFeatureViewSyncsResponse": { + "fields": { + "featureViewSyncs": { + "rule": "repeated", + "type": "FeatureViewSync", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "FeatureView": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureView", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}" + }, + "oneofs": { + "source": { + "oneof": [ + "bigQuerySource", + "featureRegistrySource" + ] + } + }, + "fields": { + "bigQuerySource": { + "type": "BigQuerySource", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "featureRegistrySource": { + "type": "FeatureRegistrySource", + "id": 9, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "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" + } + }, + "syncConfig": { + "type": "SyncConfig", + "id": 7 + } + }, + "nested": { + "BigQuerySource": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "entityIdColumns": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SyncConfig": { + "fields": { + "cron": { + "type": "string", + "id": 1 + } + } + }, + "FeatureRegistrySource": { + "fields": { + "featureGroups": { + "rule": "repeated", + "type": "FeatureGroup", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "FeatureGroup": { + "fields": { + "featureGroupId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureIds": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + } + } + } + } + }, + "FeatureViewSync": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureViewSync", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "runTime": { + "type": "google.type.Interval", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "finalStatus": { + "type": "google.rpc.Status", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "FeatureOnlineStoreService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "FetchFeatureValues": { + "requestType": "FetchFeatureValuesRequest", + "responseType": "FetchFeatureValuesResponse", + "options": { + "(google.api.http).post": "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:fetchFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "feature_view, data_key" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:fetchFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "feature_view, data_key" + } + ] + } + } + }, + "FeatureViewDataFormat": { + "values": { + "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED": 0, + "KEY_VALUE": 1, + "PROTO_STRUCT": 2 + } + }, + "FeatureViewDataKey": { + "oneofs": { + "keyOneof": { + "oneof": [ + "key" + ] + } + }, + "fields": { + "key": { + "type": "string", + "id": 1 + } + } + }, + "FetchFeatureValuesRequest": { + "fields": { + "featureView": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" + } + }, + "dataKey": { + "type": "FeatureViewDataKey", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dataFormat": { + "type": "FeatureViewDataFormat", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "FetchFeatureValuesResponse": { + "oneofs": { + "format": { + "oneof": [ + "keyValues", + "protoStruct" + ] + } + }, + "fields": { + "keyValues": { + "type": "FeatureNameValuePairList", + "id": 3 + }, + "protoStruct": { + "type": "google.protobuf.Struct", + "id": 2 + } + }, + "nested": { + "FeatureNameValuePairList": { + "fields": { + "features": { + "rule": "repeated", + "type": "FeatureNameValuePair", + "id": 1 + } + }, + "nested": { + "FeatureNameValuePair": { + "oneofs": { + "data": { + "oneof": [ + "value" + ] + } + }, + "fields": { + "value": { + "type": "FeatureValue", + "id": 2 + }, + "name": { + "type": "string", + "id": 1 + } + } + } + } + } + } + }, + "FeaturestoreOnlineServingService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "ReadFeatureValues": { + "requestType": "ReadFeatureValuesRequest", + "responseType": "ReadFeatureValuesResponse", + "options": { + "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type" + } + ] + }, + "StreamingReadFeatureValues": { + "requestType": "StreamingReadFeatureValuesRequest", + "responseType": "ReadFeatureValuesResponse", + "responseStream": true, + "options": { + "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type" + } + ] + }, + "WriteFeatureValues": { + "requestType": "WriteFeatureValuesRequest", + "responseType": "WriteFeatureValuesResponse", + "options": { + "(google.api.http).post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues", + "(google.api.http).body": "*", + "(google.api.method_signature)": "entity_type,payloads" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues", + "body": "*" + } + }, + { + "(google.api.method_signature)": "entity_type,payloads" + } + ] + } + } + }, + "WriteFeatureValuesRequest": { + "fields": { + "entityType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + } + }, + "payloads": { + "rule": "repeated", + "type": "WriteFeatureValuesPayload", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "WriteFeatureValuesPayload": { + "fields": { + "entityId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureValues": { + "keyType": "string", + "type": "FeatureValue", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "WriteFeatureValuesResponse": { + "fields": {} + }, + "ReadFeatureValuesRequest": { + "fields": { + "entityType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + } + }, + "entityId": { "type": "string", "id": 2, "options": { @@ -5400,70 +6457,568 @@ "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" } }, - "featureDescriptors": { - "rule": "repeated", - "type": "FeatureDescriptor", - "id": 2 - } - } - }, - "EntityView": { - "fields": { - "entityId": { - "type": "string", - "id": 1 + "featureDescriptors": { + "rule": "repeated", + "type": "FeatureDescriptor", + "id": 2 + } + } + }, + "EntityView": { + "fields": { + "entityId": { + "type": "string", + "id": 1 + }, + "data": { + "rule": "repeated", + "type": "Data", + "id": 2 + } + }, + "nested": { + "Data": { + "oneofs": { + "data": { + "oneof": [ + "value", + "values" + ] + } + }, + "fields": { + "value": { + "type": "FeatureValue", + "id": 1 + }, + "values": { + "type": "FeatureValueList", + "id": 2 + } + } + } + } + } + } + }, + "StreamingReadFeatureValuesRequest": { + "fields": { + "entityType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + } + }, + "entityIds": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureSelector": { + "type": "FeatureSelector", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "FeatureValue": { + "oneofs": { + "value": { + "oneof": [ + "boolValue", + "doubleValue", + "int64Value", + "stringValue", + "boolArrayValue", + "doubleArrayValue", + "int64ArrayValue", + "stringArrayValue", + "bytesValue" + ] + } + }, + "fields": { + "boolValue": { + "type": "bool", + "id": 1 + }, + "doubleValue": { + "type": "double", + "id": 2 + }, + "int64Value": { + "type": "int64", + "id": 5 + }, + "stringValue": { + "type": "string", + "id": 6 + }, + "boolArrayValue": { + "type": "BoolArray", + "id": 7 + }, + "doubleArrayValue": { + "type": "DoubleArray", + "id": 8 + }, + "int64ArrayValue": { + "type": "Int64Array", + "id": 11 + }, + "stringArrayValue": { + "type": "StringArray", + "id": 12 + }, + "bytesValue": { + "type": "bytes", + "id": 13 + }, + "metadata": { + "type": "Metadata", + "id": 14 + } + }, + "nested": { + "Metadata": { + "fields": { + "generateTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + } + } + } + } + }, + "FeatureValueList": { + "fields": { + "values": { + "rule": "repeated", + "type": "FeatureValue", + "id": 1 + } + } + }, + "IdMatcher": { + "fields": { + "ids": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "FeatureSelector": { + "fields": { + "idMatcher": { + "type": "IdMatcher", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BoolArray": { + "fields": { + "values": { + "rule": "repeated", + "type": "bool", + "id": 1 + } + } + }, + "DoubleArray": { + "fields": { + "values": { + "rule": "repeated", + "type": "double", + "id": 1 + } + } + }, + "Int64Array": { + "fields": { + "values": { + "rule": "repeated", + "type": "int64", + "id": 1 + } + } + }, + "StringArray": { + "fields": { + "values": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, + "Tensor": { + "fields": { + "dtype": { + "type": "DataType", + "id": 1 + }, + "shape": { + "rule": "repeated", + "type": "int64", + "id": 2 + }, + "boolVal": { + "rule": "repeated", + "type": "bool", + "id": 3 + }, + "stringVal": { + "rule": "repeated", + "type": "string", + "id": 14 + }, + "bytesVal": { + "rule": "repeated", + "type": "bytes", + "id": 15 + }, + "floatVal": { + "rule": "repeated", + "type": "float", + "id": 5 + }, + "doubleVal": { + "rule": "repeated", + "type": "double", + "id": 6 + }, + "intVal": { + "rule": "repeated", + "type": "int32", + "id": 7 + }, + "int64Val": { + "rule": "repeated", + "type": "int64", + "id": 8 + }, + "uintVal": { + "rule": "repeated", + "type": "uint32", + "id": 9 + }, + "uint64Val": { + "rule": "repeated", + "type": "uint64", + "id": 10 + }, + "listVal": { + "rule": "repeated", + "type": "Tensor", + "id": 11 + }, + "structVal": { + "keyType": "string", + "type": "Tensor", + "id": 12 + }, + "tensorVal": { + "type": "bytes", + "id": 13 + } + }, + "nested": { + "DataType": { + "values": { + "DATA_TYPE_UNSPECIFIED": 0, + "BOOL": 1, + "STRING": 2, + "FLOAT": 3, + "DOUBLE": 4, + "INT8": 5, + "INT16": 6, + "INT32": 7, + "INT64": 8, + "UINT8": 9, + "UINT16": 10, + "UINT32": 11, + "UINT64": 12 + } + } + } + }, + "FeatureRegistryService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CreateFeatureGroup": { + "requestType": "CreateFeatureGroupRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/featureGroups", + "(google.api.http).body": "feature_group", + "(google.api.method_signature)": "parent,feature_group,feature_group_id", + "(google.longrunning.operation_info).response_type": "FeatureGroup", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureGroupOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/featureGroups", + "body": "feature_group" + } + }, + { + "(google.api.method_signature)": "parent,feature_group,feature_group_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureGroup", + "metadata_type": "CreateFeatureGroupOperationMetadata" + } + } + ] + }, + "GetFeatureGroup": { + "requestType": "GetFeatureGroupRequest", + "responseType": "FeatureGroup", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/featureGroups/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/featureGroups/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatureGroups": { + "requestType": "ListFeatureGroupsRequest", + "responseType": "ListFeatureGroupsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/featureGroups", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/featureGroups" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateFeatureGroup": { + "requestType": "UpdateFeatureGroupRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{feature_group.name=projects/*/locations/*/featureGroups/*}", + "(google.api.http).body": "feature_group", + "(google.api.method_signature)": "feature_group,update_mask", + "(google.longrunning.operation_info).response_type": "FeatureGroup", + "(google.longrunning.operation_info).metadata_type": "UpdateFeatureGroupOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{feature_group.name=projects/*/locations/*/featureGroups/*}", + "body": "feature_group" + } + }, + { + "(google.api.method_signature)": "feature_group,update_mask" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureGroup", + "metadata_type": "UpdateFeatureGroupOperationMetadata" + } + } + ] + }, + "DeleteFeatureGroup": { + "requestType": "DeleteFeatureGroupRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/featureGroups/*}", + "(google.api.method_signature)": "name,force", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/featureGroups/*}" + } + }, + { + "(google.api.method_signature)": "name,force" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CreateFeature": { + "requestType": "CreateFeatureRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features", + "(google.api.http).body": "feature", + "(google.api.method_signature)": "parent,feature,feature_id", + "(google.longrunning.operation_info).response_type": "Feature", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features", + "body": "feature" + } + }, + { + "(google.api.method_signature)": "parent,feature,feature_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "Feature", + "metadata_type": "CreateFeatureOperationMetadata" + } + } + ] + }, + "GetFeature": { + "requestType": "GetFeatureRequest", + "responseType": "Feature", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatures": { + "requestType": "ListFeaturesRequest", + "responseType": "ListFeaturesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "UpdateFeature": { + "requestType": "UpdateFeatureRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).patch": "/v1/{feature.name=projects/*/locations/*/featureGroups/*/features/*}", + "(google.api.http).body": "feature", + "(google.api.method_signature)": "feature,update_mask", + "(google.longrunning.operation_info).response_type": "Feature", + "(google.longrunning.operation_info).metadata_type": "UpdateFeatureOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1/{feature.name=projects/*/locations/*/featureGroups/*/features/*}", + "body": "feature" + } + }, + { + "(google.api.method_signature)": "feature,update_mask" }, - "data": { - "rule": "repeated", - "type": "Data", - "id": 2 + { + "(google.longrunning.operation_info)": { + "response_type": "Feature", + "metadata_type": "UpdateFeatureOperationMetadata" + } } + ] + }, + "DeleteFeature": { + "requestType": "DeleteFeatureRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" }, - "nested": { - "Data": { - "oneofs": { - "data": { - "oneof": [ - "value", - "values" - ] - } - }, - "fields": { - "value": { - "type": "FeatureValue", - "id": 1 - }, - "values": { - "type": "FeatureValueList", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/featureGroups/*/features/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" } } - } + ] } } }, - "StreamingReadFeatureValuesRequest": { + "CreateFeatureGroupRequest": { "fields": { - "entityType": { + "parent": { "type": "string", "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/FeatureGroup" } }, - "entityIds": { - "rule": "repeated", - "type": "string", + "featureGroup": { + "type": "FeatureGroup", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "featureSelector": { - "type": "FeatureSelector", + "featureGroupId": { + "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -5471,208 +7026,119 @@ } } }, - "FeatureValue": { - "oneofs": { - "value": { - "oneof": [ - "boolValue", - "doubleValue", - "int64Value", - "stringValue", - "boolArrayValue", - "doubleArrayValue", - "int64ArrayValue", - "stringArrayValue", - "bytesValue" - ] + "GetFeatureGroupRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureGroup" + } } - }, + } + }, + "ListFeatureGroupsRequest": { "fields": { - "boolValue": { - "type": "bool", - "id": 1 + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureGroup" + } }, - "doubleValue": { - "type": "double", + "filter": { + "type": "string", "id": 2 }, - "int64Value": { - "type": "int64", - "id": 5 + "pageSize": { + "type": "int32", + "id": 3 }, - "stringValue": { + "pageToken": { "type": "string", - "id": 6 - }, - "boolArrayValue": { - "type": "BoolArray", - "id": 7 - }, - "doubleArrayValue": { - "type": "DoubleArray", - "id": 8 - }, - "int64ArrayValue": { - "type": "Int64Array", - "id": 11 - }, - "stringArrayValue": { - "type": "StringArray", - "id": 12 - }, - "bytesValue": { - "type": "bytes", - "id": 13 + "id": 4 }, - "metadata": { - "type": "Metadata", - "id": 14 - } - }, - "nested": { - "Metadata": { - "fields": { - "generateTime": { - "type": "google.protobuf.Timestamp", - "id": 1 - } - } + "orderBy": { + "type": "string", + "id": 5 } } }, - "FeatureValueList": { + "ListFeatureGroupsResponse": { "fields": { - "values": { + "featureGroups": { "rule": "repeated", - "type": "FeatureValue", + "type": "FeatureGroup", "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "BoolArray": { + "UpdateFeatureGroupRequest": { "fields": { - "values": { - "rule": "repeated", + "featureGroup": { + "type": "FeatureGroup", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteFeatureGroupRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureGroup" + } + }, + "force": { "type": "bool", - "id": 1 + "id": 2 } } }, - "DoubleArray": { + "CreateFeatureGroupOperationMetadata": { "fields": { - "values": { - "rule": "repeated", - "type": "double", + "genericMetadata": { + "type": "GenericOperationMetadata", "id": 1 } } }, - "Int64Array": { + "UpdateFeatureGroupOperationMetadata": { "fields": { - "values": { - "rule": "repeated", - "type": "int64", + "genericMetadata": { + "type": "GenericOperationMetadata", "id": 1 } } }, - "StringArray": { + "CreateRegistryFeatureOperationMetadata": { "fields": { - "values": { - "rule": "repeated", - "type": "string", + "genericMetadata": { + "type": "GenericOperationMetadata", "id": 1 } } }, - "Tensor": { + "UpdateFeatureOperationMetadata": { "fields": { - "dtype": { - "type": "DataType", + "genericMetadata": { + "type": "GenericOperationMetadata", "id": 1 - }, - "shape": { - "rule": "repeated", - "type": "int64", - "id": 2 - }, - "boolVal": { - "rule": "repeated", - "type": "bool", - "id": 3 - }, - "stringVal": { - "rule": "repeated", - "type": "string", - "id": 14 - }, - "bytesVal": { - "rule": "repeated", - "type": "bytes", - "id": 15 - }, - "floatVal": { - "rule": "repeated", - "type": "float", - "id": 5 - }, - "doubleVal": { - "rule": "repeated", - "type": "double", - "id": 6 - }, - "intVal": { - "rule": "repeated", - "type": "int32", - "id": 7 - }, - "int64Val": { - "rule": "repeated", - "type": "int64", - "id": 8 - }, - "uintVal": { - "rule": "repeated", - "type": "uint32", - "id": 9 - }, - "uint64Val": { - "rule": "repeated", - "type": "uint64", - "id": 10 - }, - "listVal": { - "rule": "repeated", - "type": "Tensor", - "id": 11 - }, - "structVal": { - "keyType": "string", - "type": "Tensor", - "id": 12 - }, - "tensorVal": { - "type": "bytes", - "id": 13 - } - }, - "nested": { - "DataType": { - "values": { - "DATA_TYPE_UNSPECIFIED": 0, - "BOOL": 1, - "STRING": 2, - "FLOAT": 3, - "DOUBLE": 4, - "INT8": 5, - "INT16": 6, - "INT32": 7, - "INT64": 8, - "UINT8": 9, - "UINT16": 10, - "UINT32": 11, - "UINT64": 12 - } } } }, @@ -7151,6 +8617,123 @@ } } }, + "Featurestore": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Featurestore", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featurestores/{featurestore}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "etag": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "onlineServingConfig": { + "type": "OnlineServingConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "state": { + "type": "State", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "onlineStorageTtlDays": { + "type": "int32", + "id": 13, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "OnlineServingConfig": { + "fields": { + "fixedNodeCount": { + "type": "int32", + "id": 2 + }, + "scaling": { + "type": "Scaling", + "id": 4 + } + }, + "nested": { + "Scaling": { + "fields": { + "minNodeCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxNodeCount": { + "type": "int32", + "id": 2 + }, + "cpuUtilizationTarget": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + } + } + }, + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "STABLE": 1, + "UPDATING": 2 + } + } + } + }, "HyperparameterTuningJob": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/HyperparameterTuningJob", @@ -7463,6 +9046,26 @@ } } }, + "StudyTimeConstraint": { + "oneofs": { + "constraint": { + "oneof": [ + "maxDuration", + "endTime" + ] + } + }, + "fields": { + "maxDuration": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, "StudySpec": { "oneofs": { "automatedStoppingSpec": { @@ -7471,6 +9074,11 @@ "medianAutomatedStoppingSpec", "convexAutomatedStoppingSpec" ] + }, + "_studyStoppingConfig": { + "oneof": [ + "studyStoppingConfig" + ] } }, "fields": { @@ -7513,6 +9121,13 @@ "measurementSelectionType": { "type": "MeasurementSelectionType", "id": 7 + }, + "studyStoppingConfig": { + "type": "StudyStoppingConfig", + "id": 11, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -7875,6 +9490,38 @@ } } }, + "StudyStoppingConfig": { + "fields": { + "shouldStopAsap": { + "type": "google.protobuf.BoolValue", + "id": 1 + }, + "minimumRuntimeConstraint": { + "type": "StudyTimeConstraint", + "id": 2 + }, + "maximumRuntimeConstraint": { + "type": "StudyTimeConstraint", + "id": 3 + }, + "minNumTrials": { + "type": "google.protobuf.Int32Value", + "id": 4 + }, + "maxNumTrials": { + "type": "google.protobuf.Int32Value", + "id": 5 + }, + "maxNumTrialsNoProgress": { + "type": "google.protobuf.Int32Value", + "id": 6 + }, + "maxDurationNoProgress": { + "type": "google.protobuf.Duration", + "id": 7 + } + } + }, "Algorithm": { "values": { "ALGORITHM_UNSPECIFIED": 0, @@ -8067,6 +9714,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "numericRestricts": { + "rule": "repeated", + "type": "NumericRestriction", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "crowdingTag": { "type": "CrowdingTag", "id": 5, @@ -8094,6 +9749,51 @@ } } }, + "NumericRestriction": { + "oneofs": { + "Value": { + "oneof": [ + "valueInt", + "valueFloat", + "valueDouble" + ] + } + }, + "fields": { + "valueInt": { + "type": "int64", + "id": 2 + }, + "valueFloat": { + "type": "float", + "id": 3 + }, + "valueDouble": { + "type": "double", + "id": 4 + }, + "namespace": { + "type": "string", + "id": 1 + }, + "op": { + "type": "Operator", + "id": 5 + } + }, + "nested": { + "Operator": { + "values": { + "OPERATOR_UNSPECIFIED": 0, + "LESS": 1, + "LESS_EQUAL": 2, + "EQUAL": 3, + "GREATER_EQUAL": 4, + "GREATER": 5 + } + } + } + }, "CrowdingTag": { "fields": { "crowdingAttribute": { @@ -11521,6 +13221,410 @@ } } }, + "LlmUtilityService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "CountTokens": { + "requestType": "CountTokensRequest", + "responseType": "CountTokensResponse", + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,instances" + } + ] + }, + "ComputeTokens": { + "requestType": "ComputeTokensRequest", + "responseType": "ComputeTokensResponse", + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,instances" + } + ] + } + } + }, + "ComputeTokensRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TokensInfo": { + "fields": { + "tokens": { + "rule": "repeated", + "type": "bytes", + "id": 1 + }, + "tokenIds": { + "rule": "repeated", + "type": "int64", + "id": 2 + } + } + }, + "ComputeTokensResponse": { + "fields": { + "tokensInfo": { + "rule": "repeated", + "type": "TokensInfo", + "id": 1 + } + } + }, + "PredictionService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Predict": { + "requestType": "PredictRequest", + "responseType": "PredictResponse", + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances,parameters" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,instances,parameters" + } + ] + }, + "RawPredict": { + "requestType": "RawPredictRequest", + "responseType": "google.api.HttpBody", + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,http_body" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,http_body" + } + ] + }, + "ServerStreamingPredict": { + "requestType": "StreamingPredictRequest", + "responseType": "StreamingPredictResponse", + "responseStream": true, + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", + "(google.api.http).additional_bindings.body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", + "body": "*", + "additional_bindings": { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", + "body": "*" + } + } + } + ] + }, + "Explain": { + "requestType": "ExplainRequest", + "responseType": "ExplainResponse", + "options": { + "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain", + "(google.api.http).body": "*", + "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain", + "body": "*" + } + }, + { + "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" + } + ] + } + } + }, + "PredictRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parameters": { + "type": "google.protobuf.Value", + "id": 3 + } + } + }, + "PredictResponse": { + "fields": { + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 1 + }, + "deployedModelId": { + "type": "string", + "id": 2 + }, + "model": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "modelDisplayName": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "metadata": { + "type": "google.protobuf.Value", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "RawPredictRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "httpBody": { + "type": "google.api.HttpBody", + "id": 2 + } + } + }, + "StreamingPredictRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "inputs": { + "rule": "repeated", + "type": "Tensor", + "id": 2 + }, + "parameters": { + "type": "Tensor", + "id": 3 + } + } + }, + "StreamingPredictResponse": { + "fields": { + "outputs": { + "rule": "repeated", + "type": "Tensor", + "id": 1 + }, + "parameters": { + "type": "Tensor", + "id": 2 + } + } + }, + "ExplainRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parameters": { + "type": "google.protobuf.Value", + "id": 4 + }, + "explanationSpecOverride": { + "type": "ExplanationSpecOverride", + "id": 5 + }, + "deployedModelId": { + "type": "string", + "id": 3 + } + } + }, + "ExplainResponse": { + "fields": { + "explanations": { + "rule": "repeated", + "type": "Explanation", + "id": 1 + }, + "deployedModelId": { + "type": "string", + "id": 2 + }, + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 3 + } + } + }, + "CountTokensRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CountTokensResponse": { + "fields": { + "totalTokens": { + "type": "int32", + "id": 1 + }, + "totalBillableCharacters": { + "type": "int32", + "id": 2 + } + } + }, "MatchService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -16517,275 +18621,6 @@ } } }, - "PredictionService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, - "methods": { - "Predict": { - "requestType": "PredictRequest", - "responseType": "PredictResponse", - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,instances,parameters" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict", - "body": "*" - } - } - }, - { - "(google.api.method_signature)": "endpoint,instances,parameters" - } - ] - }, - "RawPredict": { - "requestType": "RawPredictRequest", - "responseType": "google.api.HttpBody", - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", - "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "endpoint,http_body" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict", - "body": "*" - } - } - }, - { - "(google.api.method_signature)": "endpoint,http_body" - } - ] - }, - "ServerStreamingPredict": { - "requestType": "StreamingPredictRequest", - "responseType": "StreamingPredictResponse", - "responseStream": true, - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:serverStreamingPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:serverStreamingPredict", - "body": "*" - } - } - } - ] - }, - "Explain": { - "requestType": "ExplainRequest", - "responseType": "ExplainResponse", - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain", - "(google.api.http).body": "*", - "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain", - "body": "*" - } - }, - { - "(google.api.method_signature)": "endpoint,instances,parameters,deployed_model_id" - } - ] - } - } - }, - "PredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "instances": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parameters": { - "type": "google.protobuf.Value", - "id": 3 - } - } - }, - "PredictResponse": { - "fields": { - "predictions": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 1 - }, - "deployedModelId": { - "type": "string", - "id": 2 - }, - "model": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" - } - }, - "modelVersionId": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "modelDisplayName": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "metadata": { - "type": "google.protobuf.Value", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "RawPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "httpBody": { - "type": "google.api.HttpBody", - "id": 2 - } - } - }, - "StreamingPredictRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "inputs": { - "rule": "repeated", - "type": "Tensor", - "id": 2 - }, - "parameters": { - "type": "Tensor", - "id": 3 - } - } - }, - "StreamingPredictResponse": { - "fields": { - "outputs": { - "rule": "repeated", - "type": "Tensor", - "id": 1 - }, - "parameters": { - "type": "Tensor", - "id": 2 - } - } - }, - "ExplainRequest": { - "fields": { - "endpoint": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" - } - }, - "instances": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "parameters": { - "type": "google.protobuf.Value", - "id": 4 - }, - "explanationSpecOverride": { - "type": "ExplanationSpecOverride", - "id": 5 - }, - "deployedModelId": { - "type": "string", - "id": 3 - } - } - }, - "ExplainResponse": { - "fields": { - "explanations": { - "rule": "repeated", - "type": "Explanation", - "id": 1 - }, - "deployedModelId": { - "type": "string", - "id": 2 - }, - "predictions": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 3 - } - } - }, "Schedule": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/Schedule", @@ -22382,6 +24217,13 @@ "acceleratorCount": { "type": "int32", "id": 3 + }, + "tpuTopology": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -23440,6 +25282,34 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "deploymentTimeout": { + "type": "google.protobuf.Duration", + "id": 10, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "sharedMemorySizeMb": { + "type": "int64", + "id": 11, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "startupProbe": { + "type": "Probe", + "id": 12, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + }, + "healthProbe": { + "type": "Probe", + "id": 13, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } } } }, @@ -23475,6 +25345,40 @@ } } }, + "Probe": { + "oneofs": { + "probeType": { + "oneof": [ + "exec" + ] + } + }, + "fields": { + "exec": { + "type": "ExecAction", + "id": 1 + }, + "periodSeconds": { + "type": "int32", + "id": 2 + }, + "timeoutSeconds": { + "type": "int32", + "id": 3 + } + }, + "nested": { + "ExecAction": { + "fields": { + "command": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + } + } + }, "DeployedModelRef": { "fields": { "endpoint": { @@ -23713,6 +25617,10 @@ "type": "GcsDestination", "id": 6 }, + "protectedArtifactLocationId": { + "type": "string", + "id": 19 + }, "tensorboard": { "type": "string", "id": 7, @@ -26917,6 +28825,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "versionColumnName": { + "type": "string", + "id": 106 } }, "nested": { @@ -28146,7 +30058,7 @@ "options": { "(google.api.http).post": "/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:fetchFeatureValues", "(google.api.http).body": "*", - "(google.api.method_signature)": "feature_view, id" + "(google.api.method_signature)": "feature_view, data_key" }, "parsedOptions": [ { @@ -28156,7 +30068,7 @@ } }, { - "(google.api.method_signature)": "feature_view, id" + "(google.api.method_signature)": "feature_view, data_key" } ] }, @@ -28178,6 +30090,28 @@ } } }, + "FeatureViewDataFormat": { + "values": { + "FEATURE_VIEW_DATA_FORMAT_UNSPECIFIED": 0, + "KEY_VALUE": 1, + "PROTO_STRUCT": 2 + } + }, + "FeatureViewDataKey": { + "oneofs": { + "keyOneof": { + "oneof": [ + "key" + ] + } + }, + "fields": { + "key": { + "type": "string", + "id": 1 + } + } + }, "FetchFeatureValuesRequest": { "oneofs": { "entityId": { @@ -28189,7 +30123,10 @@ "fields": { "id": { "type": "string", - "id": 3 + "id": 3, + "options": { + "deprecated": true + } }, "featureView": { "type": "string", @@ -28199,13 +30136,33 @@ "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureView" } }, + "dataKey": { + "type": "FeatureViewDataKey", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dataFormat": { + "type": "FeatureViewDataFormat", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "format": { "type": "Format", - "id": 5 + "id": 5, + "options": { + "deprecated": true + } } }, "nested": { "Format": { + "options": { + "deprecated": true + }, "values": { "FORMAT_UNSPECIFIED": 0, "KEY_VALUE": 1, @@ -31196,6 +33153,26 @@ } } }, + "StudyTimeConstraint": { + "oneofs": { + "constraint": { + "oneof": [ + "maxDuration", + "endTime" + ] + } + }, + "fields": { + "maxDuration": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, "StudySpec": { "oneofs": { "automatedStoppingSpec": { @@ -31205,6 +33182,11 @@ "convexStopConfig", "convexAutomatedStoppingSpec" ] + }, + "_studyStoppingConfig": { + "oneof": [ + "studyStoppingConfig" + ] } }, "fields": { @@ -31258,6 +33240,13 @@ "transferLearningConfig": { "type": "TransferLearningConfig", "id": 10 + }, + "studyStoppingConfig": { + "type": "StudyStoppingConfig", + "id": 11, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -31663,6 +33652,38 @@ } } }, + "StudyStoppingConfig": { + "fields": { + "shouldStopAsap": { + "type": "google.protobuf.BoolValue", + "id": 1 + }, + "minimumRuntimeConstraint": { + "type": "StudyTimeConstraint", + "id": 2 + }, + "maximumRuntimeConstraint": { + "type": "StudyTimeConstraint", + "id": 3 + }, + "minNumTrials": { + "type": "google.protobuf.Int32Value", + "id": 4 + }, + "maxNumTrials": { + "type": "google.protobuf.Int32Value", + "id": 5 + }, + "maxNumTrialsNoProgress": { + "type": "google.protobuf.Int32Value", + "id": 6 + }, + "maxDurationNoProgress": { + "type": "google.protobuf.Duration", + "id": 7 + } + } + }, "Algorithm": { "values": { "ALGORITHM_UNSPECIFIED": 0, @@ -31855,6 +33876,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "numericRestricts": { + "rule": "repeated", + "type": "NumericRestriction", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "crowdingTag": { "type": "CrowdingTag", "id": 5, @@ -31882,6 +33911,51 @@ } } }, + "NumericRestriction": { + "oneofs": { + "Value": { + "oneof": [ + "valueInt", + "valueFloat", + "valueDouble" + ] + } + }, + "fields": { + "valueInt": { + "type": "int64", + "id": 2 + }, + "valueFloat": { + "type": "float", + "id": 3 + }, + "valueDouble": { + "type": "double", + "id": 4 + }, + "namespace": { + "type": "string", + "id": 1 + }, + "op": { + "type": "Operator", + "id": 5 + } + }, + "nested": { + "Operator": { + "values": { + "OPERATOR_UNSPECIFIED": 0, + "LESS": 1, + "LESS_EQUAL": 2, + "EQUAL": 3, + "GREATER_EQUAL": 4, + "GREATER": 5 + } + } + } + }, "CrowdingTag": { "fields": { "crowdingAttribute": { @@ -34797,6 +36871,83 @@ } } }, + "LlmUtilityService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "ComputeTokens": { + "requestType": "ComputeTokensRequest", + "responseType": "ComputeTokensResponse", + "options": { + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,instances" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,instances" + } + ] + } + } + }, + "ComputeTokensRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "instances": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TokensInfo": { + "fields": { + "tokens": { + "rule": "repeated", + "type": "bytes", + "id": 1 + }, + "tokenIds": { + "rule": "repeated", + "type": "int64", + "id": 2 + } + } + }, + "ComputeTokensResponse": { + "fields": { + "tokensInfo": { + "rule": "repeated", + "type": "TokensInfo", + "id": 1 + } + } + }, "MatchService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -39931,6 +42082,34 @@ } ] }, + "BatchDeletePipelineJobs": { + "requestType": "BatchDeletePipelineJobsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,names", + "(google.longrunning.operation_info).response_type": "BatchDeletePipelineJobsResponse", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,names" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "BatchDeletePipelineJobsResponse", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, "CancelPipelineJob": { "requestType": "CancelPipelineJobRequest", "responseType": "google.protobuf.Empty", @@ -40141,6 +42320,36 @@ } } }, + "BatchDeletePipelineJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/PipelineJob" + } + }, + "names": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/PipelineJob" + } + } + } + }, + "BatchDeletePipelineJobsResponse": { + "fields": { + "pipelineJobs": { + "rule": "repeated", + "type": "PipelineJob", + "id": 1 + } + } + }, "CancelPipelineJobRequest": { "fields": { "name": { @@ -47225,26 +49434,26 @@ } } }, - "Any": { + "Duration": { "fields": { - "type_url": { - "type": "string", + "seconds": { + "type": "int64", "id": 1 }, - "value": { - "type": "bytes", + "nanos": { + "type": "int32", "id": 2 } } }, - "Duration": { + "Any": { "fields": { - "seconds": { - "type": "int64", + "type_url": { + "type": "string", "id": 1 }, - "nanos": { - "type": "int32", + "value": { + "type": "bytes", "id": 2 } } diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index e512a01be0a..3fd33202ff5 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -38,6 +38,30 @@ * [Endpoint_service.mutate_deployed_model](#endpoint_service.mutate_deployed_model) * [Endpoint_service.undeploy_model](#endpoint_service.undeploy_model) * [Endpoint_service.update_endpoint](#endpoint_service.update_endpoint) + * [Feature_online_store_admin_service.create_feature_online_store](#feature_online_store_admin_service.create_feature_online_store) + * [Feature_online_store_admin_service.create_feature_view](#feature_online_store_admin_service.create_feature_view) + * [Feature_online_store_admin_service.delete_feature_online_store](#feature_online_store_admin_service.delete_feature_online_store) + * [Feature_online_store_admin_service.delete_feature_view](#feature_online_store_admin_service.delete_feature_view) + * [Feature_online_store_admin_service.get_feature_online_store](#feature_online_store_admin_service.get_feature_online_store) + * [Feature_online_store_admin_service.get_feature_view](#feature_online_store_admin_service.get_feature_view) + * [Feature_online_store_admin_service.get_feature_view_sync](#feature_online_store_admin_service.get_feature_view_sync) + * [Feature_online_store_admin_service.list_feature_online_stores](#feature_online_store_admin_service.list_feature_online_stores) + * [Feature_online_store_admin_service.list_feature_view_syncs](#feature_online_store_admin_service.list_feature_view_syncs) + * [Feature_online_store_admin_service.list_feature_views](#feature_online_store_admin_service.list_feature_views) + * [Feature_online_store_admin_service.sync_feature_view](#feature_online_store_admin_service.sync_feature_view) + * [Feature_online_store_admin_service.update_feature_online_store](#feature_online_store_admin_service.update_feature_online_store) + * [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_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) + * [Feature_registry_service.delete_feature_group](#feature_registry_service.delete_feature_group) + * [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.list_feature_groups](#feature_registry_service.list_feature_groups) + * [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) * [Featurestore_online_serving_service.read_feature_values](#featurestore_online_serving_service.read_feature_values) * [Featurestore_online_serving_service.streaming_read_feature_values](#featurestore_online_serving_service.streaming_read_feature_values) * [Featurestore_online_serving_service.write_feature_values](#featurestore_online_serving_service.write_feature_values) @@ -112,6 +136,8 @@ * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) * [Job_service.update_model_deployment_monitoring_job](#job_service.update_model_deployment_monitoring_job) + * [Llm_utility_service.compute_tokens](#llm_utility_service.compute_tokens) + * [Llm_utility_service.count_tokens](#llm_utility_service.count_tokens) * [Match_service.find_neighbors](#match_service.find_neighbors) * [Match_service.read_index_datapoints](#match_service.read_index_datapoints) * [Metadata_service.add_context_artifacts_and_executions](#metadata_service.add_context_artifacts_and_executions) @@ -368,6 +394,7 @@ * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) * [Job_service.update_model_deployment_monitoring_job](#job_service.update_model_deployment_monitoring_job) + * [Llm_utility_service.compute_tokens](#llm_utility_service.compute_tokens) * [Match_service.find_neighbors](#match_service.find_neighbors) * [Match_service.read_index_datapoints](#match_service.read_index_datapoints) * [Metadata_service.add_context_artifacts_and_executions](#metadata_service.add_context_artifacts_and_executions) @@ -429,6 +456,7 @@ * [Persistent_resource_service.get_persistent_resource](#persistent_resource_service.get_persistent_resource) * [Persistent_resource_service.list_persistent_resources](#persistent_resource_service.list_persistent_resources) * [Persistent_resource_service.update_persistent_resource](#persistent_resource_service.update_persistent_resource) + * [Pipeline_service.batch_delete_pipeline_jobs](#pipeline_service.batch_delete_pipeline_jobs) * [Pipeline_service.cancel_pipeline_job](#pipeline_service.cancel_pipeline_job) * [Pipeline_service.cancel_training_pipeline](#pipeline_service.cancel_training_pipeline) * [Pipeline_service.create_pipeline_job](#pipeline_service.create_pipeline_job) @@ -960,6 +988,414 @@ __Usage:__ +### Feature_online_store_admin_service.create_feature_online_store + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.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.create_feature_online_store.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js` + + +----- + + + + +### Feature_online_store_admin_service.create_feature_view + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_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.create_feature_view.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js` + + +----- + + + + +### Feature_online_store_admin_service.delete_feature_online_store + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.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.delete_feature_online_store.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js` + + +----- + + + + +### Feature_online_store_admin_service.delete_feature_view + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_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.delete_feature_view.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_view.js` + + +----- + + + + +### Feature_online_store_admin_service.get_feature_online_store + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.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.get_feature_online_store.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.js` + + +----- + + + + +### Feature_online_store_admin_service.get_feature_view + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_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.get_feature_view.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view.js` + + +----- + + + + +### Feature_online_store_admin_service.get_feature_view_sync + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.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.get_feature_view_sync.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.js` + + +----- + + + + +### Feature_online_store_admin_service.list_feature_online_stores + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.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.list_feature_online_stores.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.js` + + +----- + + + + +### Feature_online_store_admin_service.list_feature_view_syncs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.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.list_feature_view_syncs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.js` + + +----- + + + + +### Feature_online_store_admin_service.list_feature_views + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.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.list_feature_views.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.js` + + +----- + + + + +### Feature_online_store_admin_service.sync_feature_view + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.sync_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.sync_feature_view.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.sync_feature_view.js` + + +----- + + + + +### Feature_online_store_admin_service.update_feature_online_store + +View the [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_online_store.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_online_store.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js` + + +----- + + + + +### Feature_online_store_admin_service.update_feature_view + +View the [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,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js` + + +----- + + + + +### Feature_online_store_service.fetch_feature_values + +View the [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,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.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). + +[![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,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js` + + +----- + + + + +### Feature_registry_service.create_feature_group + +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_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,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.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/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,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js` + + +----- + + + + +### Feature_registry_service.delete_feature_group + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/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/v1/feature_registry_service.delete_feature_group.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature_group.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/v1/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/v1/feature_registry_service.get_feature.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature.js` + + +----- + + + + +### Feature_registry_service.get_feature_group + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/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/v1/feature_registry_service.get_feature_group.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature_group.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/v1/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/v1/feature_registry_service.list_feature_groups.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.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/v1/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/v1/feature_registry_service.list_features.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_features.js` + + +----- + + + + +### Feature_registry_service.update_feature + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/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/v1/feature_registry_service.update_feature.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature.js` + + +----- + + + + +### Feature_registry_service.update_feature_group + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/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/v1/feature_registry_service.update_feature_group.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature_group.js` + + +----- + + + + ### Featurestore_online_serving_service.read_feature_values View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js). @@ -2218,6 +2654,40 @@ __Usage:__ +### Llm_utility_service.compute_tokens + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.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/llm_utility_service.compute_tokens.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.js` + + +----- + + + + +### Llm_utility_service.count_tokens + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.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/llm_utility_service.count_tokens.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js` + + +----- + + + + ### Match_service.find_neighbors View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/match_service.find_neighbors.js). @@ -6570,6 +7040,23 @@ __Usage:__ +### Llm_utility_service.compute_tokens + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.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/llm_utility_service.compute_tokens.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.js` + + +----- + + + + ### Match_service.find_neighbors View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/match_service.find_neighbors.js). @@ -7607,6 +8094,23 @@ __Usage:__ +### Pipeline_service.batch_delete_pipeline_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_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/pipeline_service.batch_delete_pipeline_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js` + + +----- + + + + ### Pipeline_service.cancel_pipeline_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js new file mode 100644 index 00000000000..359ac121315 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, featureOnlineStore, featureOnlineStoreId) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + */ + // const parent = 'abc123' + /** + * Required. The FeatureOnlineStore to create. + */ + // const featureOnlineStore = {} + /** + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore'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 project and location. + */ + // const featureOnlineStoreId = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callCreateFeatureOnlineStore() { + // Construct request + const request = { + parent, + featureOnlineStore, + featureOnlineStoreId, + }; + + // Run request + const [operation] = await aiplatformClient.createFeatureOnlineStore(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateFeatureOnlineStore(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_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_online_store_admin_service.create_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js new file mode 100644 index 00000000000..cf9d06a0995 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js @@ -0,0 +1,86 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, featureView, featureViewId, runSyncImmediately) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_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 FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + // const parent = 'abc123' + /** + * Required. The FeatureView to create. + */ + // const featureView = {} + /** + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView'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 a FeatureOnlineStore. + */ + // const featureViewId = 'abc123' + /** + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * FeatureView.sync_config google.cloud.aiplatform.v1.FeatureView.sync_config + * is configured or not. + */ + // const runSyncImmediately = true + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callCreateFeatureView() { + // Construct request + const request = { + parent, + featureView, + featureViewId, + runSyncImmediately, + }; + + // Run request + const [operation] = await aiplatformClient.createFeatureView(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateFeatureView(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_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_online_store_admin_service.delete_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js new file mode 100644 index 00000000000..f7e8b5753d6 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_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 FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + // const name = 'abc123' + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + */ + // const force = true + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callDeleteFeatureOnlineStore() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeatureOnlineStore(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeatureOnlineStore(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_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_online_store_admin_service.delete_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_view.js new file mode 100644 index 00000000000..08264ae61bf --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_view.js @@ -0,0 +1,64 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_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 FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callDeleteFeatureView() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeatureView(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeatureView(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_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_online_store_admin_service.get_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.js new file mode 100644 index 00000000000..969b6d7ccc9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_online_store.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_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 FeatureOnlineStore resource. + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callGetFeatureOnlineStore() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureOnlineStore(request); + console.log(response); + } + + callGetFeatureOnlineStore(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_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_online_store_admin_service.get_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view.js new file mode 100644 index 00000000000..899669141b1 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureView_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 FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callGetFeatureView() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureView(request); + console.log(response); + } + + callGetFeatureView(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureView_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_online_store_admin_service.get_feature_view_sync.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.js new file mode 100644 index 00000000000..54bbcca9b13 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.get_feature_view_sync.js @@ -0,0 +1,63 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_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 FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callGetFeatureViewSync() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureViewSync(request); + console.log(response); + } + + callGetFeatureViewSync(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_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_online_store_admin_service.list_feature_online_stores.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.js new file mode 100644 index 00000000000..a31ef267fc5 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_online_stores.js @@ -0,0 +1,106 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Lists the FeatureOnlineStores 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"` + * FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureOnlineStores with label "env" set to "prod". + */ + // const filter = 'abc123' + /** + * The maximum number of FeatureOnlineStores to return. The service may return + * fewer than this value. If unspecified, at most 100 FeatureOnlineStores will + * be returned. The maximum value is 100; any value greater than 100 will be + * coerced to 100. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * 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 {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callListFeatureOnlineStores() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listFeatureOnlineStoresAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureOnlineStores(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_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_online_store_admin_service.list_feature_view_syncs.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.js new file mode 100644 index 00000000000..dc3123a192e --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_view_syncs.js @@ -0,0 +1,98 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_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 FeatureView to list FeatureViewSyncs. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + */ + // const parent = 'abc123' + /** + * Lists the FeatureViewSyncs that match the filter expression. The following + * filters are supported: + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. + * Examples: + * * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs + * created after 2020-01-31T15:30:00.000000Z. + */ + // const filter = 'abc123' + /** + * The maximum number of FeatureViewSyncs to return. The service may return + * fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will + * be returned. The maximum value is 1000; any value greater than 1000 will be + * coerced to 1000. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * 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 {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callListFeatureViewSyncs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listFeatureViewSyncsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureViewSyncs(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_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_online_store_admin_service.list_feature_views.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.js new file mode 100644 index 00000000000..4a3b82248bb --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.list_feature_views.js @@ -0,0 +1,108 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_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 FeatureOnlineStore to list FeatureViews. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + // const parent = 'abc123' + /** + * Lists the FeatureViews that match the filter expression. The following + * filters 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 as well as key presence. + * Examples: + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews + * created or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> FeatureViews having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. + */ + // const filter = 'abc123' + /** + * The maximum number of FeatureViews to return. The service may return fewer + * than this value. If unspecified, at most 1000 FeatureViews will be + * returned. The maximum value is 1000; any value greater than 1000 will be + * coerced to 1000. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViews google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViews google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported fields: + * * `feature_view_id` + * * `create_time` + * * `update_time` + */ + // const orderBy = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callListFeatureViews() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listFeatureViewsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureViews(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_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_online_store_admin_service.sync_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.sync_feature_view.js new file mode 100644 index 00000000000..356cdef1740 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.sync_feature_view.js @@ -0,0 +1,62 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(featureView) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_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. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + */ + // const featureView = 'abc123' + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callSyncFeatureView() { + // Construct request + const request = { + featureView, + }; + + // Run request + const response = await aiplatformClient.syncFeatureView(request); + console.log(response); + } + + callSyncFeatureView(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_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_online_store_admin_service.update_feature_online_store.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js new file mode 100644 index 00000000000..bcf9ac6b602 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_online_store.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(featureOnlineStore) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_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 FeatureOnlineStore's `name` field is used to identify the + * FeatureOnlineStore to be updated. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + // const featureOnlineStore = {} + /** + * Field mask is used to specify the fields to be overwritten in the + * FeatureOnlineStore 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: + * * `big_query_source` + * * `labels` + * * `sync_config` + */ + // const updateMask = {} + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callUpdateFeatureOnlineStore() { + // Construct request + const request = { + featureOnlineStore, + }; + + // Run request + const [operation] = await aiplatformClient.updateFeatureOnlineStore(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateFeatureOnlineStore(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_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_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 new file mode 100644 index 00000000000..c24fb52e589 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js @@ -0,0 +1,76 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(featureView) { + // [START aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_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 FeatureView's `name` field is used to identify the + * FeatureView to be updated. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + */ + // const featureView = {} + /** + * Field mask is used to specify the fields to be overwritten in the + * FeatureView 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: + * * `labels` + */ + // const updateMask = {} + + // Imports the Aiplatform library + const {FeatureOnlineStoreAdminServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreAdminServiceClient(); + + async function callUpdateFeatureView() { + // Construct request + const request = { + featureView, + }; + + // Run request + const [operation] = await aiplatformClient.updateFeatureView(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateFeatureView(); + // [END aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_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_online_store_service.fetch_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.js new file mode 100644 index 00000000000..198b7c06a56 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.js @@ -0,0 +1,72 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(featureView) { + // [START aiplatform_v1_generated_FeatureOnlineStoreService_FetchFeatureValues_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. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + */ + // const featureView = 'abc123' + /** + * Optional. The request key to fetch feature values for. + */ + // const dataKey = {} + /** + * Optional. Response data format. If not set, + * FeatureViewDataFormat.KEY_VALUE google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE + * will be used. + */ + // const dataFormat = {} + + // Imports the Aiplatform library + const {FeatureOnlineStoreServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureOnlineStoreServiceClient(); + + async function callFetchFeatureValues() { + // Construct request + const request = { + featureView, + }; + + // Run request + const response = await aiplatformClient.fetchFeatureValues(request); + console.log(response); + } + + callFetchFeatureValues(); + // [END aiplatform_v1_generated_FeatureOnlineStoreService_FetchFeatureValues_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.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js new file mode 100644 index 00000000000..d53af432133 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js @@ -0,0 +1,80 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, feature, featureId) { + // [START aiplatform_v1_generated_FeatureRegistryService_CreateFeature_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 or FeatureGroup to create a + * Feature. 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}` + */ + // const parent = 'abc123' + /** + * Required. The Feature to create. + */ + // const feature = {} + /** + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * 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 an EntityType/FeatureGroup. + */ + // const featureId = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callCreateFeature() { + // Construct request + const request = { + parent, + feature, + featureId, + }; + + // Run request + const [operation] = await aiplatformClient.createFeature(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateFeature(); + // [END aiplatform_v1_generated_FeatureRegistryService_CreateFeature_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 new file mode 100644 index 00000000000..ed7b1953de5 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.js @@ -0,0 +1,78 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, featureGroup, featureGroupId) { + // [START aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + */ + // const parent = 'abc123' + /** + * Required. The FeatureGroup to create. + */ + // const featureGroup = {} + /** + * 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 + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the project and location. + */ + // const featureGroupId = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callCreateFeatureGroup() { + // Construct request + const request = { + parent, + featureGroup, + featureGroupId, + }; + + // Run request + const [operation] = await aiplatformClient.createFeatureGroup(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateFeatureGroup(); + // [END aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_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.delete_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js new file mode 100644 index 00000000000..26e715dc1b3 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_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 Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callDeleteFeature() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeature(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeature(); + // [END aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_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.delete_feature_group.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature_group.js new file mode 100644 index 00000000000..b02aafb552b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature_group.js @@ -0,0 +1,70 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_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 FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + // const name = 'abc123' + /** + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + */ + // const force = true + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callDeleteFeatureGroup() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeatureGroup(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeatureGroup(); + // [END aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_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.get_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature.js new file mode 100644 index 00000000000..549e8a75907 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature.js @@ -0,0 +1,65 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureRegistryService_GetFeature_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 Feature resource. + * 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}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callGetFeature() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeature(request); + console.log(response); + } + + callGetFeature(); + // [END aiplatform_v1_generated_FeatureRegistryService_GetFeature_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.get_feature_group.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature_group.js new file mode 100644 index 00000000000..9c8ebc3745d --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.get_feature_group.js @@ -0,0 +1,61 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_FeatureRegistryService_GetFeatureGroup_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 FeatureGroup resource. + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callGetFeatureGroup() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureGroup(request); + console.log(response); + } + + callGetFeatureGroup(); + // [END aiplatform_v1_generated_FeatureRegistryService_GetFeatureGroup_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.list_feature_groups.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js new file mode 100644 index 00000000000..a55fa663905 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js @@ -0,0 +1,106 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_FeatureRegistryService_ListFeatureGroups_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list FeatureGroups. + * Format: + * `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * 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". + */ + // const filter = 'abc123' + /** + * 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. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * FeatureGroupAdminService.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. + */ + // const pageToken = 'abc123' + /** + * 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').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callListFeatureGroups() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listFeatureGroupsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureGroups(); + // [END aiplatform_v1_generated_FeatureRegistryService_ListFeatureGroups_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.list_features.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_features.js new file mode 100644 index 00000000000..3fbe91c69a7 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_features.js @@ -0,0 +1,131 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_FeatureRegistryService_ListFeatures_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Location to list 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}` + */ + // const parent = 'abc123' + /** + * 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. + */ + // const filter = 'abc123' + /** + * 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. + */ + // const pageSize = 1234 + /** + * A page token, received from a previous + * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures + * call or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures + * or or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * 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` + */ + // const orderBy = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + /** + * Only applicable for Vertex AI Feature Store (Legacy). + * If set, return the most recent + * ListFeaturesRequest.latest_stats_count google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count + * of stats for each Feature in response. Valid value is 0, 10. If number of + * stats exists < + * ListFeaturesRequest.latest_stats_count google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count, + * return all existing stats. + */ + // const latestStatsCount = 1234 + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callListFeatures() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listFeaturesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatures(); + // [END aiplatform_v1_generated_FeatureRegistryService_ListFeatures_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.update_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature.js new file mode 100644 index 00000000000..ecb53d23c4b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature.js @@ -0,0 +1,80 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(feature) { + // [START aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_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 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}` + */ + // const feature = {} + /** + * 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 FeatureRegistry Feature) + */ + // const updateMask = {} + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callUpdateFeature() { + // Construct request + const request = { + feature, + }; + + // Run request + const [operation] = await aiplatformClient.updateFeature(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateFeature(); + // [END aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_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.update_feature_group.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature_group.js new file mode 100644 index 00000000000..64681568429 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.update_feature_group.js @@ -0,0 +1,76 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(featureGroup) { + // [START aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_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 FeatureGroup's `name` field is used to identify the + * FeatureGroup to be updated. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + // const featureGroup = {} + /** + * Field mask is used to specify the fields to be overwritten in the + * FeatureGroup 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: + * * `labels` + */ + // const updateMask = {} + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callUpdateFeatureGroup() { + // Construct request + const request = { + featureGroup, + }; + + // Run request + const [operation] = await aiplatformClient.updateFeatureGroup(request); + const [response] = await operation.promise(); + console.log(response); + } + + callUpdateFeatureGroup(); + // [END aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_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/featurestore_service.create_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.create_feature.js index 1106a1f23a7..9a34ecd36b5 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.create_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.create_feature.js @@ -29,9 +29,11 @@ function main(parent, feature, featureId) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the EntityType to create a Feature. - * Format: + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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}` */ // const parent = 'abc123' /** @@ -43,7 +45,7 @@ function main(parent, feature, featureId) { * component of the Feature's resource name. * 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 an EntityType. + * The value must be unique within an EntityType/FeatureGroup. */ // const featureId = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js index ed35f8e6f83..312433be88a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.delete_feature.js @@ -32,6 +32,7 @@ function main(name) { * Required. The name of the Features to be deleted. * Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` */ // const name = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_feature.js index 03a178d14e3..c96d0fdf07d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.get_feature.js @@ -30,8 +30,10 @@ function main(name) { */ /** * Required. The name of the Feature resource. - * Format: + * 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}` */ // const name = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.list_features.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.list_features.js index 13673eeefcd..759df00d5b8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.list_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.list_features.js @@ -30,8 +30,10 @@ function main(parent) { */ /** * Required. The resource name of the Location to list Features. - * Format: + * 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}` */ // const parent = 'abc123' /** @@ -64,9 +66,13 @@ function main(parent) { /** * A page token, received from a previous * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures + * call or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures + * or or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures * must match the call that provided the page token. */ // const pageToken = 'abc123' @@ -75,7 +81,7 @@ function main(parent) { * Use "desc" after a field name for descending. * Supported fields: * * `feature_id` - * * `value_type` + * * `value_type` (Not supported for FeatureRegistry Feature) * * `create_time` * * `update_time` */ @@ -85,6 +91,7 @@ function main(parent) { */ // const readMask = {} /** + * Only applicable for Vertex AI Feature Store (Legacy). * If set, return the most recent * ListFeaturesRequest.latest_stats_count google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count * of stats for each Feature in response. Valid value is 0, 10. If number of diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.update_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.update_feature.js index 45de7ac6523..5d26bd59562 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.update_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.update_feature.js @@ -33,6 +33,7 @@ function main(feature) { * updated. * Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` */ // const feature = {} /** @@ -46,7 +47,7 @@ function main(feature) { * Updatable fields: * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.js b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.js new file mode 100644 index 00000000000..b5c0a6b8c1b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.compute_tokens.js @@ -0,0 +1,69 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(endpoint, instances) { + // [START aiplatform_v1_generated_LlmUtilityService_ComputeTokens_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 Endpoint requested to get lists of tokens and + * token ids. + */ + // const endpoint = 'abc123' + /** + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + */ + // const instances = [1,2,3,4] + + // Imports the Aiplatform library + const {LlmUtilityServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new LlmUtilityServiceClient(); + + async function callComputeTokens() { + // Construct request + const request = { + endpoint, + instances, + }; + + // Run request + const response = await aiplatformClient.computeTokens(request); + console.log(response); + } + + callComputeTokens(); + // [END aiplatform_v1_generated_LlmUtilityService_ComputeTokens_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/llm_utility_service.count_tokens.js b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js new file mode 100644 index 00000000000..371b6e38519 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js @@ -0,0 +1,69 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(endpoint, instances) { + // [START aiplatform_v1_generated_LlmUtilityService_CountTokens_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 Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + // const endpoint = 'abc123' + /** + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + */ + // const instances = [1,2,3,4] + + // Imports the Aiplatform library + const {LlmUtilityServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new LlmUtilityServiceClient(); + + async function callCountTokens() { + // Construct request + const request = { + endpoint, + instances, + }; + + // Run request + const response = await aiplatformClient.countTokens(request); + console.log(response); + } + + callCountTokens(); + // [END aiplatform_v1_generated_LlmUtilityService_CountTokens_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json index 6e253de44c8..724f64fa8b7 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 @@ -1287,6 +1287,1122 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async", + "title": "DatasetService createFeatureOnlineStore Sample", + "origin": "API_DEFINITION", + "description": " Creates a new FeatureOnlineStore in a given project and location.", + "canonical": true, + "file": "feature_online_store_admin_service.create_feature_online_store.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature_online_store", + "type": ".google.cloud.aiplatform.v1.FeatureOnlineStore" + }, + { + "name": "feature_online_store_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "CreateFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_async", + "title": "DatasetService getFeatureOnlineStore Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single FeatureOnlineStore.", + "canonical": true, + "file": "feature_online_store_admin_service.get_feature_online_store.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.FeatureOnlineStore", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "GetFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_async", + "title": "DatasetService listFeatureOnlineStores Sample", + "origin": "API_DEFINITION", + "description": " Lists FeatureOnlineStores in a given project and location.", + "canonical": true, + "file": "feature_online_store_admin_service.list_feature_online_stores.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 98, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureOnlineStores", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", + "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.v1.ListFeatureOnlineStoresResponse", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "ListFeatureOnlineStores", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_async", + "title": "DatasetService updateFeatureOnlineStore Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single FeatureOnlineStore.", + "canonical": true, + "file": "feature_online_store_admin_service.update_feature_online_store.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", + "async": true, + "parameters": [ + { + "name": "feature_online_store", + "type": ".google.cloud.aiplatform.v1.FeatureOnlineStore" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "UpdateFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_async", + "title": "DatasetService deleteFeatureOnlineStore Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", + "canonical": true, + "file": "feature_online_store_admin_service.delete_feature_online_store.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "force", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "DeleteFeatureOnlineStore", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_async", + "title": "DatasetService createFeatureView Sample", + "origin": "API_DEFINITION", + "description": " Creates a new FeatureView in a given FeatureOnlineStore.", + "canonical": true, + "file": "feature_online_store_admin_service.create_feature_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureView", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature_view", + "type": ".google.cloud.aiplatform.v1.FeatureView" + }, + { + "name": "feature_view_id", + "type": "TYPE_STRING" + }, + { + "name": "run_sync_immediately", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "CreateFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureView", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureView_async", + "title": "DatasetService getFeatureView Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single FeatureView.", + "canonical": true, + "file": "feature_online_store_admin_service.get_feature_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.FeatureView", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "GetFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureView", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_async", + "title": "DatasetService listFeatureViews Sample", + "origin": "API_DEFINITION", + "description": " Lists FeatureViews in a given FeatureOnlineStore.", + "canonical": true, + "file": "feature_online_store_admin_service.list_feature_views.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 100, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureViews", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews", + "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.v1.ListFeatureViewsResponse", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "ListFeatureViews", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_async", + "title": "DatasetService updateFeatureView Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single FeatureView.", + "canonical": true, + "file": "feature_online_store_admin_service.update_feature_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView", + "async": true, + "parameters": [ + { + "name": "feature_view", + "type": ".google.cloud.aiplatform.v1.FeatureView" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "UpdateFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_async", + "title": "DatasetService deleteFeatureView Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single FeatureView.", + "canonical": true, + "file": "feature_online_store_admin_service.delete_feature_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "DeleteFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_async", + "title": "DatasetService syncFeatureView Sample", + "origin": "API_DEFINITION", + "description": " Triggers on-demand sync for the FeatureView.", + "canonical": true, + "file": "feature_online_store_admin_service.sync_feature_view.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SyncFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView", + "async": true, + "parameters": [ + { + "name": "feature_view", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.SyncFeatureViewResponse", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "SyncFeatureView", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_async", + "title": "DatasetService getFeatureViewSync Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single FeatureViewSync.", + "canonical": true, + "file": "feature_online_store_admin_service.get_feature_view_sync.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureViewSync", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSync", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.FeatureViewSync", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "GetFeatureViewSync", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSync", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_async", + "title": "DatasetService listFeatureViewSyncs Sample", + "origin": "API_DEFINITION", + "description": " Lists FeatureViewSyncs in a given FeatureView.", + "canonical": true, + "file": "feature_online_store_admin_service.list_feature_view_syncs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 90, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureViewSyncs", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", + "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.v1.ListFeatureViewSyncsResponse", + "client": { + "shortName": "FeatureOnlineStoreAdminServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" + }, + "method": { + "shortName": "ListFeatureViewSyncs", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", + "service": { + "shortName": "FeatureOnlineStoreAdminService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreService_FetchFeatureValues_async", + "title": "DatasetService fetchFeatureValues Sample", + "origin": "API_DEFINITION", + "description": " Fetch feature values under a FeatureView.", + "canonical": true, + "file": "feature_online_store_service.fetch_feature_values.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchFeatureValues", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues", + "async": true, + "parameters": [ + { + "name": "feature_view", + "type": "TYPE_STRING" + }, + { + "name": "data_key", + "type": ".google.cloud.aiplatform.v1.FeatureViewDataKey" + }, + { + "name": "data_format", + "type": ".google.cloud.aiplatform.v1.FeatureViewDataFormat" + } + ], + "resultType": ".google.cloud.aiplatform.v1.FetchFeatureValuesResponse", + "client": { + "shortName": "FeatureOnlineStoreServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient" + }, + "method": { + "shortName": "FetchFeatureValues", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues", + "service": { + "shortName": "FeatureOnlineStoreService", + "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_async", + "title": "DatasetService createFeatureGroup Sample", + "origin": "API_DEFINITION", + "description": " Creates a new FeatureGroup in a given project and location.", + "canonical": true, + "file": "feature_registry_service.create_feature_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroup", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature_group", + "type": ".google.cloud.aiplatform.v1.FeatureGroup" + }, + { + "name": "feature_group_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "CreateFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroup", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_GetFeatureGroup_async", + "title": "DatasetService getFeatureGroup Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.get_feature_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.FeatureGroup", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "GetFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroup", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_ListFeatureGroups_async", + "title": "DatasetService listFeatureGroups Sample", + "origin": "API_DEFINITION", + "description": " Lists FeatureGroups in a given project and location.", + "canonical": true, + "file": "feature_registry_service.list_feature_groups.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 98, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureGroups", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups", + "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.v1.ListFeatureGroupsResponse", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "ListFeatureGroups", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_async", + "title": "DatasetService updateFeatureGroup Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.update_feature_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup", + "async": true, + "parameters": [ + { + "name": "feature_group", + "type": ".google.cloud.aiplatform.v1.FeatureGroup" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "UpdateFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_async", + "title": "DatasetService deleteFeatureGroup Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.delete_feature_group.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroup", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "force", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "DeleteFeatureGroup", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroup", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_CreateFeature_async", + "title": "DatasetService createFeature Sample", + "origin": "API_DEFINITION", + "description": " Creates a new Feature in a given FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.create_feature.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature", + "type": ".google.cloud.aiplatform.v1.Feature" + }, + { + "name": "feature_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "CreateFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_GetFeature_async", + "title": "DatasetService getFeature Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single Feature.", + "canonical": true, + "file": "feature_registry_service.get_feature.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.Feature", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "GetFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_ListFeatures_async", + "title": "DatasetService listFeatures Sample", + "origin": "API_DEFINITION", + "description": " Lists Features in a given FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.list_features.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 123, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatures", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures", + "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" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "latest_stats_count", + "type": "TYPE_INT32" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListFeaturesResponse", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "ListFeatures", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_async", + "title": "DatasetService updateFeature Sample", + "origin": "API_DEFINITION", + "description": " Updates the parameters of a single Feature.", + "canonical": true, + "file": "feature_registry_service.update_feature.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature", + "async": true, + "parameters": [ + { + "name": "feature", + "type": ".google.cloud.aiplatform.v1.Feature" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "UpdateFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_async", + "title": "DatasetService deleteFeature Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single Feature.", + "canonical": true, + "file": "feature_registry_service.delete_feature.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "DeleteFeature", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async", "title": "DatasetService readFeatureValues Sample", @@ -1910,7 +3026,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 72, "type": "FULL" } ], @@ -2002,7 +3118,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 57, "type": "FULL" } ], @@ -2042,7 +3158,7 @@ "segments": [ { "start": 25, - "end": 116, + "end": 123, "type": "FULL" } ], @@ -2106,7 +3222,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 71, "type": "FULL" } ], @@ -2150,7 +3266,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 57, "type": "FULL" } ], @@ -4715,6 +5831,94 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_LlmUtilityService_CountTokens_async", + "title": "DatasetService countTokens Sample", + "origin": "API_DEFINITION", + "description": " Perform a token counting.", + "canonical": true, + "file": "llm_utility_service.count_tokens.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CountTokens", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.CountTokens", + "async": true, + "parameters": [ + { + "name": "endpoint", + "type": "TYPE_STRING" + }, + { + "name": "instances", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.CountTokensResponse", + "client": { + "shortName": "LlmUtilityServiceClient", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityServiceClient" + }, + "method": { + "shortName": "CountTokens", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.CountTokens", + "service": { + "shortName": "LlmUtilityService", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_LlmUtilityService_ComputeTokens_async", + "title": "DatasetService computeTokens Sample", + "origin": "API_DEFINITION", + "description": " Return a list of tokens based on the input text.", + "canonical": true, + "file": "llm_utility_service.compute_tokens.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ComputeTokens", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokens", + "async": true, + "parameters": [ + { + "name": "endpoint", + "type": "TYPE_STRING" + }, + { + "name": "instances", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ComputeTokensResponse", + "client": { + "shortName": "LlmUtilityServiceClient", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityServiceClient" + }, + "method": { + "shortName": "ComputeTokens", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokens", + "service": { + "shortName": "LlmUtilityService", + "fullName": "google.cloud.aiplatform.v1.LlmUtilityService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_MatchService_FindNeighbors_async", "title": "DatasetService findNeighbors Sample", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js index 4804e5b20c1..e800f56c833 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js @@ -39,9 +39,15 @@ function main(featureView) { */ // const featureView = 'abc123' /** - * Specify response data format. If not set, KeyValue format will be used. + * Optional. The request key to fetch feature values for. */ - // const format = {} + // const dataKey = {} + /** + * Optional. Response data format. If not set, + * FeatureViewDataFormat.KEY_VALUE google.cloud.aiplatform.v1beta1.FeatureViewDataFormat.KEY_VALUE + * will be used. + */ + // const dataFormat = {} // Imports the Aiplatform library const {FeatureOnlineStoreServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js index bdc2ad62795..88196a88e40 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js @@ -29,6 +29,11 @@ function main(parent, feature, featureId) { * TODO(developer): Uncomment these variables before running the sample. */ /** + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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}` */ // const parent = 'abc123' /** 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 c5acde25e5d..497c2f1ee45 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 @@ -30,8 +30,9 @@ function main(name) { */ /** * Required. The name of the Feature resource. - * Format: + * 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}` */ // const name = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.js index 2c1936dfc84..39abaf531dd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.js @@ -30,8 +30,9 @@ function main(parent) { */ /** * Required. The resource name of the Location to list Features. - * Format: + * 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}` */ // const parent = 'abc123' @@ -65,9 +66,13 @@ function main(parent) { /** * A page token, received from a previous * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures + * call or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures + * or or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures * must match the call that provided the page token. */ // const pageToken = 'abc123' @@ -86,6 +91,7 @@ function main(parent) { */ // const readMask = {} /** + * Only applicable for Vertex AI Feature Store (Legacy). * If set, return the most recent * ListFeaturesRequest.latest_stats_count google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count * of stats for each Feature in response. Valid value is 0, 10. If number of diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js index 10d9cf3eedd..2d5cb4e891e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js @@ -47,7 +47,7 @@ function main(feature) { * Updatable fields: * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js index 32f3a63f5cf..fcbf125e8c0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.create_feature.js @@ -29,6 +29,11 @@ function main(parent, feature, featureId) { * TODO(developer): Uncomment these variables before running the sample. */ /** + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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}` */ // const parent = 'abc123' /** 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 3522c6d5a15..2088bb3261b 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 @@ -30,8 +30,9 @@ function main(name) { */ /** * Required. The name of the Feature resource. - * Format: + * 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}` */ // const name = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js index b3f5c109a23..563d5dccfb8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.list_features.js @@ -30,8 +30,9 @@ function main(parent) { */ /** * Required. The resource name of the Location to list Features. - * Format: + * 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}` */ // const parent = 'abc123' @@ -65,9 +66,13 @@ function main(parent) { /** * A page token, received from a previous * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures + * call or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * FeaturestoreService.ListFeatures google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures + * or or + * FeatureRegistryService.ListFeatures google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures * must match the call that provided the page token. */ // const pageToken = 'abc123' @@ -86,6 +91,7 @@ function main(parent) { */ // const readMask = {} /** + * Only applicable for Vertex AI Feature Store (Legacy). * If set, return the most recent * ListFeaturesRequest.latest_stats_count google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count * of stats for each Feature in response. Valid value is 0, 10. If number of diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js index 93776a57475..d9a22a41eb8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.update_feature.js @@ -47,7 +47,7 @@ function main(feature) { * Updatable fields: * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.js new file mode 100644 index 00000000000..965b121e643 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/llm_utility_service.compute_tokens.js @@ -0,0 +1,69 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(endpoint, instances) { + // [START aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_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 Endpoint requested to get lists of tokens and + * token ids. + */ + // const endpoint = 'abc123' + /** + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + */ + // const instances = [1,2,3,4] + + // Imports the Aiplatform library + const {LlmUtilityServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new LlmUtilityServiceClient(); + + async function callComputeTokens() { + // Construct request + const request = { + endpoint, + instances, + }; + + // Run request + const response = await aiplatformClient.computeTokens(request); + console.log(response); + } + + callComputeTokens(); + // [END aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_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/pipeline_service.batch_delete_pipeline_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js new file mode 100644 index 00000000000..b87afb43d36 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/pipeline_service.batch_delete_pipeline_jobs.js @@ -0,0 +1,71 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, names) { + // [START aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_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 PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + */ + // const names = ['abc','def'] + + // Imports the Aiplatform library + const {PipelineServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new PipelineServiceClient(); + + async function callBatchDeletePipelineJobs() { + // Construct request + const request = { + parent, + names, + }; + + // Run request + const [operation] = await aiplatformClient.batchDeletePipelineJobs(request); + const [response] = await operation.promise(); + console.log(response); + } + + callBatchDeletePipelineJobs(); + // [END aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_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 f4df21c595e..862efb0fe99 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 @@ -2118,7 +2118,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 69, "type": "FULL" } ], @@ -2135,6 +2135,14 @@ "name": "feature_view", "type": "TYPE_STRING" }, + { + "name": "data_key", + "type": ".google.cloud.aiplatform.v1beta1.FeatureViewDataKey" + }, + { + "name": "data_format", + "type": ".google.cloud.aiplatform.v1beta1.FeatureViewDataFormat" + }, { "name": "format", "type": ".google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format" @@ -2446,7 +2454,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 72, "type": "FULL" } ], @@ -2494,7 +2502,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 57, "type": "FULL" } ], @@ -2534,7 +2542,7 @@ "segments": [ { "start": 25, - "end": 117, + "end": 123, "type": "FULL" } ], @@ -3294,7 +3302,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 72, "type": "FULL" } ], @@ -3386,7 +3394,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 57, "type": "FULL" } ], @@ -3426,7 +3434,7 @@ "segments": [ { "start": 25, - "end": 117, + "end": 123, "type": "FULL" } ], @@ -6099,6 +6107,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_async", + "title": "DatasetService computeTokens Sample", + "origin": "API_DEFINITION", + "description": " Return a list of tokens based on the input text.", + "canonical": true, + "file": "llm_utility_service.compute_tokens.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ComputeTokens", + "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens", + "async": true, + "parameters": [ + { + "name": "endpoint", + "type": "TYPE_STRING" + }, + { + "name": "instances", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ComputeTokensResponse", + "client": { + "shortName": "LlmUtilityServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityServiceClient" + }, + "method": { + "shortName": "ComputeTokens", + "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens", + "service": { + "shortName": "LlmUtilityService", + "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_MatchService_FindNeighbors_async", "title": "DatasetService findNeighbors Sample", @@ -9367,6 +9419,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_async", + "title": "DatasetService batchDeletePipelineJobs Sample", + "origin": "API_DEFINITION", + "description": " Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.", + "canonical": true, + "file": "pipeline_service.batch_delete_pipeline_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchDeletePipelineJobs", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "names", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "PipelineServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" + }, + "method": { + "shortName": "BatchDeletePipelineJobs", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs", + "service": { + "shortName": "PipelineService", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async", "title": "DatasetService cancelPipelineJob Sample", diff --git a/packages/google-cloud-aiplatform/src/index.ts b/packages/google-cloud-aiplatform/src/index.ts index cb374e456ef..4da8cbbfbb1 100644 --- a/packages/google-cloud-aiplatform/src/index.ts +++ b/packages/google-cloud-aiplatform/src/index.ts @@ -57,6 +57,16 @@ const ModelGardenServiceClient = v1.ModelGardenServiceClient; type ModelGardenServiceClient = v1.ModelGardenServiceClient; const ScheduleServiceClient = v1.ScheduleServiceClient; type ScheduleServiceClient = v1.ScheduleServiceClient; +const FeatureOnlineStoreAdminServiceClient = + v1.FeatureOnlineStoreAdminServiceClient; +type FeatureOnlineStoreAdminServiceClient = + v1.FeatureOnlineStoreAdminServiceClient; +const FeatureOnlineStoreServiceClient = v1.FeatureOnlineStoreServiceClient; +type FeatureOnlineStoreServiceClient = v1.FeatureOnlineStoreServiceClient; +const FeatureRegistryServiceClient = v1.FeatureRegistryServiceClient; +type FeatureRegistryServiceClient = v1.FeatureRegistryServiceClient; +const LlmUtilityServiceClient = v1.LlmUtilityServiceClient; +type LlmUtilityServiceClient = v1.LlmUtilityServiceClient; export { v1beta1, @@ -79,6 +89,10 @@ export { MatchServiceClient, ModelGardenServiceClient, ScheduleServiceClient, + FeatureOnlineStoreAdminServiceClient, + FeatureOnlineStoreServiceClient, + FeatureRegistryServiceClient, + LlmUtilityServiceClient, }; export default { v1beta1, @@ -101,6 +115,10 @@ export default { MatchServiceClient, ModelGardenServiceClient, ScheduleServiceClient, + FeatureOnlineStoreAdminServiceClient, + FeatureOnlineStoreServiceClient, + FeatureRegistryServiceClient, + LlmUtilityServiceClient, }; import * as protos from '../protos/protos'; export {protos}; 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 64430bd42f7..6fd031de849 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -225,8 +225,17 @@ export class DatasetServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class DatasetServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -487,6 +504,12 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -682,6 +705,14 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -771,6 +802,22 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -885,6 +932,22 @@ export class DatasetServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -914,6 +977,12 @@ export class DatasetServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -975,6 +1044,18 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1051,6 +1132,18 @@ export class DatasetServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1075,6 +1168,10 @@ export class DatasetServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1134,6 +1231,18 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1208,6 +1317,18 @@ export class DatasetServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1238,6 +1359,12 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1307,6 +1434,18 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1395,6 +1534,18 @@ export class DatasetServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -5809,86 +5960,262 @@ export class DatasetServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -6795,6 +7122,194 @@ export class DatasetServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index 523ee9dd12b..3be8de43e43 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -225,8 +225,17 @@ export class EndpointServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class EndpointServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -462,6 +479,12 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -657,6 +680,14 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -746,6 +777,22 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -860,6 +907,22 @@ export class EndpointServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -889,6 +952,12 @@ export class EndpointServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -950,6 +1019,18 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1026,6 +1107,18 @@ export class EndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1050,6 +1143,10 @@ export class EndpointServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1109,6 +1206,18 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1183,6 +1292,18 @@ export class EndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1213,6 +1334,12 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1282,6 +1409,18 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1370,6 +1509,18 @@ export class EndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -4009,86 +4160,262 @@ export class EndpointServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4995,6 +5322,194 @@ export class EndpointServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", 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 new file mode 100644 index 00000000000..802afe3888d --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts @@ -0,0 +1,7321 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + GrpcClientOptions, + LROperation, + PaginationCallback, + GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/feature_online_store_admin_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './feature_online_store_admin_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The service that handles CRUD and List for resources for + * FeatureOnlineStore. + * @class + * @memberof v1 + */ +export class FeatureOnlineStoreAdminServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; + featureOnlineStoreAdminServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of FeatureOnlineStoreAdminServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeatureOnlineStoreAdminServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof FeatureOnlineStoreAdminServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listFeatureOnlineStores: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureOnlineStores' + ), + listFeatureViews: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureViews' + ), + listFeatureViewSyncs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureViewSyncs' + ), + }; + + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback) { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/schedules/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelMonitors/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/schedules/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + const createFeatureOnlineStoreResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureOnlineStore' + ) as gax.protobuf.Type; + const createFeatureOnlineStoreMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata' + ) as gax.protobuf.Type; + const updateFeatureOnlineStoreResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureOnlineStore' + ) as gax.protobuf.Type; + const updateFeatureOnlineStoreMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata' + ) as gax.protobuf.Type; + const deleteFeatureOnlineStoreResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteFeatureOnlineStoreMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; + const createFeatureViewResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureView' + ) as gax.protobuf.Type; + const createFeatureViewMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata' + ) as gax.protobuf.Type; + const updateFeatureViewResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureView' + ) as gax.protobuf.Type; + const updateFeatureViewMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata' + ) as gax.protobuf.Type; + const deleteFeatureViewResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteFeatureViewMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + createFeatureOnlineStore: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createFeatureOnlineStoreResponse.decode.bind( + createFeatureOnlineStoreResponse + ), + createFeatureOnlineStoreMetadata.decode.bind( + createFeatureOnlineStoreMetadata + ) + ), + updateFeatureOnlineStore: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateFeatureOnlineStoreResponse.decode.bind( + updateFeatureOnlineStoreResponse + ), + updateFeatureOnlineStoreMetadata.decode.bind( + updateFeatureOnlineStoreMetadata + ) + ), + deleteFeatureOnlineStore: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureOnlineStoreResponse.decode.bind( + deleteFeatureOnlineStoreResponse + ), + deleteFeatureOnlineStoreMetadata.decode.bind( + deleteFeatureOnlineStoreMetadata + ) + ), + createFeatureView: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createFeatureViewResponse.decode.bind(createFeatureViewResponse), + createFeatureViewMetadata.decode.bind(createFeatureViewMetadata) + ), + updateFeatureView: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateFeatureViewResponse.decode.bind(updateFeatureViewResponse), + updateFeatureViewMetadata.decode.bind(updateFeatureViewMetadata) + ), + deleteFeatureView: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureViewResponse.decode.bind(deleteFeatureViewResponse), + deleteFeatureViewMetadata.decode.bind(deleteFeatureViewMetadata) + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.featureOnlineStoreAdminServiceStub) { + return this.featureOnlineStoreAdminServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService. + this.featureOnlineStoreAdminServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1 + .FeatureOnlineStoreAdminService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const featureOnlineStoreAdminServiceStubMethods = [ + 'createFeatureOnlineStore', + 'getFeatureOnlineStore', + 'listFeatureOnlineStores', + 'updateFeatureOnlineStore', + 'deleteFeatureOnlineStore', + 'createFeatureView', + 'getFeatureView', + 'listFeatureViews', + 'updateFeatureView', + 'deleteFeatureView', + 'syncFeatureView', + 'getFeatureViewSync', + 'listFeatureViewSyncs', + ]; + for (const methodName of featureOnlineStoreAdminServiceStubMethods) { + const callPromise = this.featureOnlineStoreAdminServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.featureOnlineStoreAdminServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Gets details of a single FeatureOnlineStore. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureOnlineStore 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.v1.FeatureOnlineStore|FeatureOnlineStore}. + * 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/v1/feature_online_store_admin_service.get_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_async + */ + getFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + ( + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | undefined + ), + {} | undefined, + ] + >; + getFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + ( + | protos.google.cloud.aiplatform.v1.IGetFeatureOnlineStoreRequest + | 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.getFeatureOnlineStore(request, options, callback); + } + /** + * Gets details of a single FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureView resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @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.v1.FeatureView|FeatureView}. + * 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/v1/feature_online_store_admin_service.get_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureView_async + */ + getFeatureView( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest | undefined, + {} | undefined, + ] + >; + getFeatureView( + request: protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureView, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureView( + request: protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureView, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureView( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFeatureView, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFeatureView, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IGetFeatureViewRequest | 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.getFeatureView(request, options, callback); + } + /** + * Triggers on-demand sync for the FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.featureView + * Required. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @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.v1.SyncFeatureViewResponse|SyncFeatureViewResponse}. + * 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/v1/feature_online_store_admin_service.sync_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_async + */ + syncFeatureView( + request?: protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest | undefined, + {} | undefined, + ] + >; + syncFeatureView( + request: protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + | protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): void; + syncFeatureView( + request: protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + | protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): void; + syncFeatureView( + request?: protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + | protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + | protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse, + protos.google.cloud.aiplatform.v1.ISyncFeatureViewRequest | 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({ + feature_view: request.featureView ?? '', + }); + this.initialize(); + return this.innerApiCalls.syncFeatureView(request, options, callback); + } + /** + * Gets details of a single FeatureViewSync. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureViewSync resource. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + * @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.v1.FeatureViewSync|FeatureViewSync}. + * 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/v1/feature_online_store_admin_service.get_feature_view_sync.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_async + */ + getFeatureViewSync( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest | undefined, + {} | undefined, + ] + >; + getFeatureViewSync( + request: protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureViewSync( + request: protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureViewSync( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + | protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureViewSync, + protos.google.cloud.aiplatform.v1.IGetFeatureViewSyncRequest | 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.getFeatureViewSync(request, options, callback); + } + + /** + * Creates a new FeatureOnlineStore 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 create FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}'` + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore} request.featureOnlineStore + * Required. The FeatureOnlineStore to create. + * @param {string} request.featureOnlineStoreId + * Required. The ID to use for this FeatureOnlineStore, which will become the + * final component of the FeatureOnlineStore'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 project and location. + * @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_online_store_admin_service.create_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async + */ + createFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >, + 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.createFeatureOnlineStore( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `createFeatureOnlineStore()`. + * @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_online_store_admin_service.create_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async + */ + async checkCreateFeatureOnlineStoreProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureOnlineStore, + protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata + > + > { + 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.createFeatureOnlineStore, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureOnlineStore, + protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreOperationMetadata + >; + } + /** + * Updates the parameters of a single FeatureOnlineStore. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.FeatureOnlineStore} request.featureOnlineStore + * Required. The FeatureOnlineStore's `name` field is used to identify the + * FeatureOnlineStore to be updated. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {google.protobuf.FieldMask} request.updateMask + * Field mask is used to specify the fields to be overwritten in the + * FeatureOnlineStore 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: + * + * * `big_query_source` + * * `labels` + * * `sync_config` + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@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_online_store_admin_service.update_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_async + */ + updateFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >, + 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({ + 'feature_online_store.name': request.featureOnlineStore!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateFeatureOnlineStore( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateFeatureOnlineStore()`. + * @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_online_store_admin_service.update_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_async + */ + async checkUpdateFeatureOnlineStoreProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureOnlineStore, + protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata + > + > { + 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.updateFeatureOnlineStore, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureOnlineStore, + protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreOperationMetadata + >; + } + /** + * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not + * contain any FeatureViews. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureOnlineStore to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {boolean} request.force + * If set to true, any FeatureViews and Features for this FeatureOnlineStore + * will also be deleted. (Otherwise, the request will only work if the + * FeatureOnlineStore has no FeatureViews.) + * @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_online_store_admin_service.delete_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_async + */ + deleteFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureOnlineStore( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureOnlineStore( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureOnlineStoreRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteFeatureOnlineStore( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteFeatureOnlineStore()`. + * @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_online_store_admin_service.delete_feature_online_store.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_async + */ + async checkDeleteFeatureOnlineStoreProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteFeatureOnlineStore, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Creates a new FeatureView in a given FeatureOnlineStore. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the FeatureOnlineStore to create + * FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {google.cloud.aiplatform.v1.FeatureView} request.featureView + * Required. The FeatureView to create. + * @param {string} request.featureViewId + * Required. The ID to use for the FeatureView, which will become the final + * component of the FeatureView'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 a FeatureOnlineStore. + * @param {boolean} request.runSyncImmediately + * Immutable. If set to true, one on demand sync will be run immediately, + * regardless whether the + * {@link protos.google.cloud.aiplatform.v1.FeatureView.sync_config|FeatureView.sync_config} + * is configured or not. + * @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_online_store_admin_service.create_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_async + */ + createFeatureView( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureViewRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createFeatureView( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureViewRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureView( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureViewRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureView( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureViewRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >, + 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.createFeatureView(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createFeatureView()`. + * @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_online_store_admin_service.create_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_async + */ + async checkCreateFeatureViewProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureView, + protos.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata + > + > { + 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.createFeatureView, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureView, + protos.google.cloud.aiplatform.v1.CreateFeatureViewOperationMetadata + >; + } + /** + * Updates the parameters of a single FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.FeatureView} request.featureView + * Required. The FeatureView's `name` field is used to identify the + * FeatureView to be updated. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param {google.protobuf.FieldMask} request.updateMask + * Field mask is used to specify the fields to be overwritten in the + * FeatureView 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: + * + * * `labels` + * @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_online_store_admin_service.update_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_async + */ + updateFeatureView( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateFeatureView( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureView( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureView( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureViewRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >, + 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({ + 'feature_view.name': request.featureView!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateFeatureView(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateFeatureView()`. + * @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_online_store_admin_service.update_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_async + */ + async checkUpdateFeatureViewProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureView, + protos.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + > + > { + 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.updateFeatureView, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureView, + protos.google.cloud.aiplatform.v1.UpdateFeatureViewOperationMetadata + >; + } + /** + * Deletes a single FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureView to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @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_online_store_admin_service.delete_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_async + */ + deleteFeatureView( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteFeatureView( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureView( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureView( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureViewRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteFeatureView(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteFeatureView()`. + * @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_online_store_admin_service.delete_feature_view.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_async + */ + async checkDeleteFeatureViewProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteFeatureView, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Lists FeatureOnlineStores 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 FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the FeatureOnlineStores 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"` + * FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureOnlineStores with label "env" set to "prod". + * @param {number} request.pageSize + * The maximum number of FeatureOnlineStores to return. The service may return + * fewer than this value. If unspecified, at most 100 FeatureOnlineStores 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.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * 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 {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStore|FeatureOnlineStore}. + * 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 `listFeatureOnlineStoresAsync()` + * 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. + */ + listFeatureOnlineStores( + request?: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore[], + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse, + ] + >; + listFeatureOnlineStores( + request: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore + > + ): void; + listFeatureOnlineStores( + request: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore + > + ): void; + listFeatureOnlineStores( + request?: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore[], + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresResponse, + ] + > | 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.listFeatureOnlineStores( + 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 FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the FeatureOnlineStores 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"` + * FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureOnlineStores with label "env" set to "prod". + * @param {number} request.pageSize + * The maximum number of FeatureOnlineStores to return. The service may return + * fewer than this value. If unspecified, at most 100 FeatureOnlineStores 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.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * 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 {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStore|FeatureOnlineStore} 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 `listFeatureOnlineStoresAsync()` + * 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. + */ + listFeatureOnlineStoresStream( + request?: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + 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['listFeatureOnlineStores']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureOnlineStores.createStream( + this.innerApiCalls.listFeatureOnlineStores as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatureOnlineStores`, 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 FeatureOnlineStores. + * Format: + * `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the FeatureOnlineStores 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"` + * FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureOnlineStores with label "env" set to "prod". + * @param {number} request.pageSize + * The maximum number of FeatureOnlineStores to return. The service may return + * fewer than this value. If unspecified, at most 100 FeatureOnlineStores 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.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores|FeatureOnlineStoreAdminService.ListFeatureOnlineStores} + * 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.v1.FeatureOnlineStore|FeatureOnlineStore}. 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/v1/feature_online_store_admin_service.list_feature_online_stores.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_async + */ + listFeatureOnlineStoresAsync( + request?: protos.google.cloud.aiplatform.v1.IListFeatureOnlineStoresRequest, + 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['listFeatureOnlineStores']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureOnlineStores.asyncIterate( + this.innerApiCalls['listFeatureOnlineStores'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists FeatureViews in a given FeatureOnlineStore. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the FeatureOnlineStore to list FeatureViews. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {string} request.filter + * Lists the FeatureViews that match the filter expression. The following + * filters 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 as well as key presence. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews + * created or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> FeatureViews having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. + * @param {number} request.pageSize + * The maximum number of FeatureViews to return. The service may return fewer + * than this value. If unspecified, at most 1000 FeatureViews 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.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * 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_view_id` + * * `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.v1.FeatureView|FeatureView}. + * 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 `listFeatureViewsAsync()` + * 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. + */ + listFeatureViews( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureView[], + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse, + ] + >; + listFeatureViews( + request: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureView + > + ): void; + listFeatureViews( + request: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureView + > + ): void; + listFeatureViews( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureView + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureView + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureView[], + protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureViewsResponse, + ] + > | 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.listFeatureViews(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 FeatureOnlineStore to list FeatureViews. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {string} request.filter + * Lists the FeatureViews that match the filter expression. The following + * filters 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 as well as key presence. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews + * created or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> FeatureViews having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. + * @param {number} request.pageSize + * The maximum number of FeatureViews to return. The service may return fewer + * than this value. If unspecified, at most 1000 FeatureViews 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.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * 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_view_id` + * * `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.v1.FeatureView|FeatureView} 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 `listFeatureViewsAsync()` + * 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. + */ + listFeatureViewsStream( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + 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['listFeatureViews']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureViews.createStream( + this.innerApiCalls.listFeatureViews as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatureViews`, 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 FeatureOnlineStore to list FeatureViews. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param {string} request.filter + * Lists the FeatureViews that match the filter expression. The following + * filters 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 as well as key presence. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViews + * created or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> FeatureViews having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. + * @param {number} request.pageSize + * The maximum number of FeatureViews to return. The service may return fewer + * than this value. If unspecified, at most 1000 FeatureViews 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.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews|FeatureOnlineStoreAdminService.ListFeatureViews} + * 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_view_id` + * * `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.v1.FeatureView|FeatureView}. 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/v1/feature_online_store_admin_service.list_feature_views.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_async + */ + listFeatureViewsAsync( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewsRequest, + 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['listFeatureViews']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureViews.asyncIterate( + this.innerApiCalls['listFeatureViews'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists FeatureViewSyncs in a given FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the FeatureView to list FeatureViewSyncs. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param {string} request.filter + * Lists the FeatureViewSyncs that match the filter expression. The following + * filters are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs + * created after 2020-01-31T15:30:00.000000Z. + * @param {number} request.pageSize + * The maximum number of FeatureViewSyncs to return. The service may return + * fewer than this value. If unspecified, at most 1000 FeatureViewSyncs 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.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * 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` + * @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.v1.FeatureViewSync|FeatureViewSync}. + * 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 `listFeatureViewSyncsAsync()` + * 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. + */ + listFeatureViewSyncs( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureViewSync[], + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse, + ] + >; + listFeatureViewSyncs( + request: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureViewSync + > + ): void; + listFeatureViewSyncs( + request: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureViewSync + > + ): void; + listFeatureViewSyncs( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureViewSync + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureViewSync + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureViewSync[], + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsResponse, + ] + > | 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.listFeatureViewSyncs(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 FeatureView to list FeatureViewSyncs. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param {string} request.filter + * Lists the FeatureViewSyncs that match the filter expression. The following + * filters are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs + * created after 2020-01-31T15:30:00.000000Z. + * @param {number} request.pageSize + * The maximum number of FeatureViewSyncs to return. The service may return + * fewer than this value. If unspecified, at most 1000 FeatureViewSyncs 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.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * 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` + * @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.v1.FeatureViewSync|FeatureViewSync} 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 `listFeatureViewSyncsAsync()` + * 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. + */ + listFeatureViewSyncsStream( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + 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['listFeatureViewSyncs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureViewSyncs.createStream( + this.innerApiCalls.listFeatureViewSyncs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatureViewSyncs`, 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 FeatureView to list FeatureViewSyncs. + * Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param {string} request.filter + * Lists the FeatureViewSyncs that match the filter expression. The following + * filters are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. + * + * Examples: + * + * * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs + * created after 2020-01-31T15:30:00.000000Z. + * @param {number} request.pageSize + * The maximum number of FeatureViewSyncs to return. The service may return + * fewer than this value. If unspecified, at most 1000 FeatureViewSyncs 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.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs|FeatureOnlineStoreAdminService.ListFeatureViewSyncs} + * 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` + * @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.v1.FeatureViewSync|FeatureViewSync}. 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/v1/feature_online_store_admin_service.list_feature_view_syncs.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_async + */ + listFeatureViewSyncsAsync( + request?: protos.google.cloud.aiplatform.v1.IListFeatureViewSyncsRequest, + 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['listFeatureViewSyncs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureViewSyncs.asyncIterate( + this.innerApiCalls['listFeatureViewSyncs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. 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.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @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 google.cloud.location.Location | Location}. 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 + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.featureOnlineStoreAdminServiceStub && !this._terminated) { + return this.featureOnlineStoreAdminServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client_config.json new file mode 100644 index 00000000000..1cb502c5ffb --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client_config.json @@ -0,0 +1,78 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateFeatureOnlineStore": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureOnlineStore": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureOnlineStores": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateFeatureOnlineStore": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFeatureOnlineStore": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateFeatureView": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureView": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureViews": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateFeatureView": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFeatureView": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SyncFeatureView": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureViewSync": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureViewSyncs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json new file mode 100644 index 00000000000..51289768bff --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json @@ -0,0 +1,129 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/event.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/types.proto", + "../../protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client.ts new file mode 100644 index 00000000000..4fe93081529 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client.ts @@ -0,0 +1,3722 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; + +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/feature_online_store_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './feature_online_store_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * @class + * @memberof v1 + */ +export class FeatureOnlineStoreServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + featureOnlineStoreServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of FeatureOnlineStoreServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeatureOnlineStoreServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof FeatureOnlineStoreServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.FeatureOnlineStoreService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.featureOnlineStoreServiceStub) { + return this.featureOnlineStoreServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.FeatureOnlineStoreService. + this.featureOnlineStoreServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.FeatureOnlineStoreService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1 + .FeatureOnlineStoreService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const featureOnlineStoreServiceStubMethods = ['fetchFeatureValues']; + for (const methodName of featureOnlineStoreServiceStubMethods) { + const callPromise = this.featureOnlineStoreServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.featureOnlineStoreServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Fetch feature values under a FeatureView. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.featureView + * Required. FeatureView resource format + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * @param {google.cloud.aiplatform.v1.FeatureViewDataKey} [request.dataKey] + * Optional. The request key to fetch feature values for. + * @param {google.cloud.aiplatform.v1.FeatureViewDataFormat} [request.dataFormat] + * Optional. Response data format. If not set, + * {@link protos.google.cloud.aiplatform.v1.FeatureViewDataFormat.KEY_VALUE|FeatureViewDataFormat.KEY_VALUE} + * will be used. + * @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.v1.FetchFeatureValuesResponse|FetchFeatureValuesResponse}. + * 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/v1/feature_online_store_service.fetch_feature_values.js + * region_tag:aiplatform_v1_generated_FeatureOnlineStoreService_FetchFeatureValues_async + */ + fetchFeatureValues( + request?: protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest | undefined, + {} | undefined, + ] + >; + fetchFeatureValues( + request: protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + | protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchFeatureValues( + request: protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + | protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + fetchFeatureValues( + request?: protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + | protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + | protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse, + protos.google.cloud.aiplatform.v1.IFetchFeatureValuesRequest | 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({ + feature_view: request.featureView ?? '', + }); + this.initialize(); + return this.innerApiCalls.fetchFeatureValues(request, options, callback); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. 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.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @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 google.cloud.location.Location | Location}. 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 + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.featureOnlineStoreServiceStub && !this._terminated) { + return this.featureOnlineStoreServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client_config.json new file mode 100644 index 00000000000..a3b90cc2a60 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_client_config.json @@ -0,0 +1,30 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.FeatureOnlineStoreService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "FetchFeatureValues": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json new file mode 100644 index 00000000000..51289768bff --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json @@ -0,0 +1,129 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/event.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/types.proto", + "../../protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] 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 new file mode 100644 index 00000000000..36df4c90e7c --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts @@ -0,0 +1,6872 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + GrpcClientOptions, + LROperation, + PaginationCallback, + GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/feature_registry_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './feature_registry_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The service that handles CRUD and List for resources for + * FeatureRegistry. + * @class + * @memberof v1 + */ +export class FeatureRegistryServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; + featureRegistryServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of FeatureRegistryServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new FeatureRegistryServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof FeatureRegistryServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listFeatureGroups: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureGroups' + ), + listFeatures: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'features' + ), + }; + + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback) { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/v1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/v1/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/models/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/endpoints/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/notebookRuntimeTemplates/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/schedules/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/schedules/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelMonitors/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/schedules/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/schedules/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelMonitors/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/schedules/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + const createFeatureGroupResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureGroup' + ) as gax.protobuf.Type; + const createFeatureGroupMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata' + ) as gax.protobuf.Type; + const updateFeatureGroupResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.FeatureGroup' + ) as gax.protobuf.Type; + const updateFeatureGroupMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata' + ) as gax.protobuf.Type; + const deleteFeatureGroupResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteFeatureGroupMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; + const createFeatureResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.Feature' + ) as gax.protobuf.Type; + const createFeatureMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata' + ) as gax.protobuf.Type; + const updateFeatureResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.Feature' + ) as gax.protobuf.Type; + const updateFeatureMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata' + ) as gax.protobuf.Type; + const deleteFeatureResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteFeatureMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + createFeatureGroup: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createFeatureGroupResponse.decode.bind(createFeatureGroupResponse), + createFeatureGroupMetadata.decode.bind(createFeatureGroupMetadata) + ), + updateFeatureGroup: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateFeatureGroupResponse.decode.bind(updateFeatureGroupResponse), + updateFeatureGroupMetadata.decode.bind(updateFeatureGroupMetadata) + ), + deleteFeatureGroup: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureGroupResponse.decode.bind(deleteFeatureGroupResponse), + deleteFeatureGroupMetadata.decode.bind(deleteFeatureGroupMetadata) + ), + createFeature: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createFeatureResponse.decode.bind(createFeatureResponse), + createFeatureMetadata.decode.bind(createFeatureMetadata) + ), + updateFeature: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + updateFeatureResponse.decode.bind(updateFeatureResponse), + updateFeatureMetadata.decode.bind(updateFeatureMetadata) + ), + deleteFeature: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureResponse.decode.bind(deleteFeatureResponse), + deleteFeatureMetadata.decode.bind(deleteFeatureMetadata) + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.FeatureRegistryService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.featureRegistryServiceStub) { + return this.featureRegistryServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.FeatureRegistryService. + this.featureRegistryServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.FeatureRegistryService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1 + .FeatureRegistryService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const featureRegistryServiceStubMethods = [ + 'createFeatureGroup', + 'getFeatureGroup', + 'listFeatureGroups', + 'updateFeatureGroup', + 'deleteFeatureGroup', + 'createFeature', + 'getFeature', + 'listFeatures', + 'updateFeature', + 'deleteFeature', + ]; + for (const methodName of featureRegistryServiceStubMethods) { + const callPromise = this.featureRegistryServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.featureRegistryServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Gets details of a single FeatureGroup. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureGroup 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.v1.FeatureGroup|FeatureGroup}. + * 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/v1/feature_registry_service.get_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_GetFeatureGroup_async + */ + getFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest | undefined, + {} | undefined, + ] + >; + getFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + | protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + | protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + | protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + | protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IGetFeatureGroupRequest | 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.getFeatureGroup(request, options, callback); + } + /** + * Gets details of a single Feature. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Feature resource. + * 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 {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.v1.Feature|Feature}. + * 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/v1/feature_registry_service.get_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_GetFeature_async + */ + getFeature( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IGetFeatureRequest | undefined, + {} | undefined, + ] + >; + getFeature( + request: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, + {} | null | undefined + > + ): void; + getFeature( + request: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, + {} | null | undefined + > + ): void; + getFeature( + request?: protos.google.cloud.aiplatform.v1.IGetFeatureRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IFeature, + | protos.google.cloud.aiplatform.v1.IGetFeatureRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IGetFeatureRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IGetFeatureRequest | 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.getFeature(request, options, callback); + } + + /** + * Creates a new FeatureGroup 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 create FeatureGroups. + * Format: + * `projects/{project}/locations/{location}'` + * @param {google.cloud.aiplatform.v1.FeatureGroup} request.featureGroup + * Required. The FeatureGroup to create. + * @param {string} request.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 + * `[a-z0-9_]`. The first character cannot be a number. + * + * The value must be unique within the project and location. + * @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.create_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_async + */ + createFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createFeatureGroup( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureGroup( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureGroupRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >, + 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.createFeatureGroup(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createFeatureGroup()`. + * @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.create_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_async + */ + async checkCreateFeatureGroupProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureGroup, + protos.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata + > + > { + 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.createFeatureGroup, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureGroup, + protos.google.cloud.aiplatform.v1.CreateFeatureGroupOperationMetadata + >; + } + /** + * Updates the parameters of a single FeatureGroup. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.FeatureGroup} request.featureGroup + * Required. The FeatureGroup's `name` field is used to identify the + * FeatureGroup to be updated. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {google.protobuf.FieldMask} request.updateMask + * Field mask is used to specify the fields to be overwritten in the + * FeatureGroup 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: + * + * * `labels` + * @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.update_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_async + */ + updateFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >, + 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({ + 'feature_group.name': request.featureGroup!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateFeatureGroup(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateFeatureGroup()`. + * @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.update_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_async + */ + async checkUpdateFeatureGroupProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.FeatureGroup, + protos.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata + > + > { + 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.updateFeatureGroup, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.FeatureGroup, + protos.google.cloud.aiplatform.v1.UpdateFeatureGroupOperationMetadata + >; + } + /** + * Deletes a single FeatureGroup. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureGroup to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {boolean} request.force + * If set to true, any Features under this FeatureGroup + * will also be deleted. (Otherwise, the request will only work if the + * FeatureGroup has no Features.) + * @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.delete_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_async + */ + deleteFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureGroup( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureGroup( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureGroupRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteFeatureGroup(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteFeatureGroup()`. + * @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.delete_feature_group.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_async + */ + async checkDeleteFeatureGroupProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteFeatureGroup, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Creates a new Feature 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 or FeatureGroup to create a + * Feature. 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 {google.cloud.aiplatform.v1.Feature} request.feature + * Required. The Feature to create. + * @param {string} request.featureId + * Required. The ID to use for the Feature, which will become the final + * component of the Feature's resource name. + * + * 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 an EntityType/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 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.create_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_CreateFeature_async + */ + createFeature( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + createFeature( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeature( + request: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + createFeature( + request?: protos.google.cloud.aiplatform.v1.ICreateFeatureRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >, + 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.createFeature(request, options, callback); + } + /** + * Check the status of the long running operation returned by `createFeature()`. + * @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.create_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_CreateFeature_async + */ + async checkCreateFeatureProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.Feature, + protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + > + > { + 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.createFeature, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.Feature, + protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata + >; + } + /** + * Updates the parameters of a single Feature. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.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 FeatureRegistry Feature) + * @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.update_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_async + */ + updateFeature( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + updateFeature( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeature( + request: protos.google.cloud.aiplatform.v1.IUpdateFeatureRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateFeature( + request?: protos.google.cloud.aiplatform.v1.IUpdateFeatureRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + >, + 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({ + 'feature.name': request.feature!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateFeature(request, options, callback); + } + /** + * Check the status of the long running operation returned by `updateFeature()`. + * @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.update_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_async + */ + async checkUpdateFeatureProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.Feature, + protos.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata + > + > { + 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.updateFeature, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.Feature, + protos.google.cloud.aiplatform.v1.UpdateFeatureOperationMetadata + >; + } + /** + * Deletes a single Feature. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the Features to be deleted. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @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.delete_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_async + */ + deleteFeature( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteFeature( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeature( + request: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeature( + request?: protos.google.cloud.aiplatform.v1.IDeleteFeatureRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteFeature(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteFeature()`. + * @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.delete_feature.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_async + */ + async checkDeleteFeatureProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.deleteFeature, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.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. + * * `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 {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.aiplatform.v1.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 } + * for more details and examples. + */ + listFeatureGroups( + request?: protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureGroup[], + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest | null, + protos.google.cloud.aiplatform.v1.IListFeatureGroupsResponse, + ] + >; + listFeatureGroups( + request: protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureGroup + > + ): void; + listFeatureGroups( + request: protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureGroup + > + ): void; + listFeatureGroups( + request?: protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureGroup + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeatureGroup + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeatureGroup[], + protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest | null, + protos.google.cloud.aiplatform.v1.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 || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listFeatureGroups(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. + * * `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 {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.aiplatform.v1.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. + */ + listFeatureGroupsStream( + request?: protos.google.cloud.aiplatform.v1.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.v1.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/v1/feature_registry_service.list_feature_groups.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_ListFeatureGroups_async + */ + listFeatureGroupsAsync( + request?: protos.google.cloud.aiplatform.v1.IListFeatureGroupsRequest, + 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['listFeatureGroups']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureGroups.asyncIterate( + this.innerApiCalls['listFeatureGroups'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists 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 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.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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.v1.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.v1.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 {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.aiplatform.v1.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.v1.IListFeaturesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeature[], + protos.google.cloud.aiplatform.v1.IListFeaturesRequest | null, + protos.google.cloud.aiplatform.v1.IListFeaturesResponse, + ] + >; + listFeatures( + request: protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeature + > + ): void; + listFeatures( + request: protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeature + > + ): void; + listFeatures( + request?: protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeature + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IFeature + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IFeature[], + protos.google.cloud.aiplatform.v1.IListFeaturesRequest | null, + protos.google.cloud.aiplatform.v1.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.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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/v1/feature_registry_service.list_features.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_ListFeatures_async + */ + listFeaturesAsync( + request?: protos.google.cloud.aiplatform.v1.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; + } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. 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.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @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 google.cloud.location.Location | Location}. 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 + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.featureRegistryServiceStub && !this._terminated) { + return this.featureRegistryServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); + }); + } + return Promise.resolve(); + } +} 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 new file mode 100644 index 00000000000..401f5d2edd8 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json @@ -0,0 +1,66 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.FeatureRegistryService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateFeatureGroup": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureGroup": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureGroups": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateFeatureGroup": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFeatureGroup": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateFeature": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeature": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatures": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateFeature": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFeature": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json new file mode 100644 index 00000000000..51289768bff --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json @@ -0,0 +1,129 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/event.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/types.proto", + "../../protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts index 70a158c2c37..df4f00c6f5a 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts @@ -221,8 +221,17 @@ export class FeaturestoreOnlineServingServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -267,6 +276,14 @@ export class FeaturestoreOnlineServingServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -1739,86 +1756,262 @@ export class FeaturestoreOnlineServingServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -2689,6 +2882,194 @@ export class FeaturestoreOnlineServingServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts index 9548a2ef5c5..15f8fc2b6b2 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -225,8 +225,17 @@ export class FeaturestoreServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -277,6 +286,14 @@ export class FeaturestoreServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -480,6 +497,12 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -675,6 +698,14 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -764,6 +795,22 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -878,6 +925,22 @@ export class FeaturestoreServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -907,6 +970,12 @@ export class FeaturestoreServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -968,6 +1037,18 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1044,6 +1125,18 @@ export class FeaturestoreServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1068,6 +1161,10 @@ export class FeaturestoreServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1127,6 +1224,18 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1201,6 +1310,18 @@ export class FeaturestoreServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1231,6 +1352,12 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1300,6 +1427,18 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1388,6 +1527,18 @@ export class FeaturestoreServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -1994,8 +2145,10 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.name * Required. The name of the Feature resource. - * Format: + * 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 {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. @@ -2083,6 +2236,7 @@ export class FeaturestoreServiceClient { * 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. @@ -2096,7 +2250,7 @@ export class FeaturestoreServiceClient { * * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) * @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. @@ -2921,9 +3075,11 @@ 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 a Feature. - * Format: + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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 {google.cloud.aiplatform.v1.Feature} request.feature * Required. The Feature to create. * @param {string} request.featureId @@ -2933,7 +3089,7 @@ export class FeaturestoreServiceClient { * 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 an EntityType. + * The value must be unique within an EntityType/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. @@ -3216,6 +3372,7 @@ export class FeaturestoreServiceClient { * Required. The name of the Features to be deleted. * Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` * @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. @@ -4649,8 +4806,10 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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: @@ -4680,10 +4839,14 @@ export class FeaturestoreServiceClient { * @param {string} request.pageToken * A page token, received from a previous * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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. @@ -4691,12 +4854,13 @@ export class FeaturestoreServiceClient { * Supported fields: * * * `feature_id` - * * `value_type` + * * `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.v1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} * of stats for each Feature in response. Valid value is [0, 10]. If number of @@ -4796,8 +4960,10 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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: @@ -4827,10 +4993,14 @@ export class FeaturestoreServiceClient { * @param {string} request.pageToken * A page token, received from a previous * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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. @@ -4838,12 +5008,13 @@ export class FeaturestoreServiceClient { * Supported fields: * * * `feature_id` - * * `value_type` + * * `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.v1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} * of stats for each Feature in response. Valid value is [0, 10]. If number of @@ -4891,8 +5062,10 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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: @@ -4922,10 +5095,14 @@ export class FeaturestoreServiceClient { * @param {string} request.pageToken * A page token, received from a previous * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to * {@link protos.google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or or + * {@link protos.google.cloud.aiplatform.v1.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. @@ -4933,12 +5110,13 @@ export class FeaturestoreServiceClient { * Supported fields: * * * `feature_id` - * * `value_type` + * * `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.v1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} * of stats for each Feature in response. Valid value is [0, 10]. If number of @@ -6579,86 +6757,262 @@ export class FeaturestoreServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store * @returns {string} Resource name string. */ - featurePath( + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -7588,6 +7942,194 @@ export class FeaturestoreServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 6e1d5611388..af835599090 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -321,6 +321,308 @@ } } }, + "FeatureOnlineStoreAdminService": { + "clients": { + "grpc": { + "libraryClient": "FeatureOnlineStoreAdminServiceClient", + "rpcs": { + "GetFeatureOnlineStore": { + "methods": [ + "getFeatureOnlineStore" + ] + }, + "GetFeatureView": { + "methods": [ + "getFeatureView" + ] + }, + "SyncFeatureView": { + "methods": [ + "syncFeatureView" + ] + }, + "GetFeatureViewSync": { + "methods": [ + "getFeatureViewSync" + ] + }, + "CreateFeatureOnlineStore": { + "methods": [ + "createFeatureOnlineStore" + ] + }, + "UpdateFeatureOnlineStore": { + "methods": [ + "updateFeatureOnlineStore" + ] + }, + "DeleteFeatureOnlineStore": { + "methods": [ + "deleteFeatureOnlineStore" + ] + }, + "CreateFeatureView": { + "methods": [ + "createFeatureView" + ] + }, + "UpdateFeatureView": { + "methods": [ + "updateFeatureView" + ] + }, + "DeleteFeatureView": { + "methods": [ + "deleteFeatureView" + ] + }, + "ListFeatureOnlineStores": { + "methods": [ + "listFeatureOnlineStores", + "listFeatureOnlineStoresStream", + "listFeatureOnlineStoresAsync" + ] + }, + "ListFeatureViews": { + "methods": [ + "listFeatureViews", + "listFeatureViewsStream", + "listFeatureViewsAsync" + ] + }, + "ListFeatureViewSyncs": { + "methods": [ + "listFeatureViewSyncs", + "listFeatureViewSyncsStream", + "listFeatureViewSyncsAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "FeatureOnlineStoreAdminServiceClient", + "rpcs": { + "GetFeatureOnlineStore": { + "methods": [ + "getFeatureOnlineStore" + ] + }, + "GetFeatureView": { + "methods": [ + "getFeatureView" + ] + }, + "SyncFeatureView": { + "methods": [ + "syncFeatureView" + ] + }, + "GetFeatureViewSync": { + "methods": [ + "getFeatureViewSync" + ] + }, + "CreateFeatureOnlineStore": { + "methods": [ + "createFeatureOnlineStore" + ] + }, + "UpdateFeatureOnlineStore": { + "methods": [ + "updateFeatureOnlineStore" + ] + }, + "DeleteFeatureOnlineStore": { + "methods": [ + "deleteFeatureOnlineStore" + ] + }, + "CreateFeatureView": { + "methods": [ + "createFeatureView" + ] + }, + "UpdateFeatureView": { + "methods": [ + "updateFeatureView" + ] + }, + "DeleteFeatureView": { + "methods": [ + "deleteFeatureView" + ] + }, + "ListFeatureOnlineStores": { + "methods": [ + "listFeatureOnlineStores", + "listFeatureOnlineStoresStream", + "listFeatureOnlineStoresAsync" + ] + }, + "ListFeatureViews": { + "methods": [ + "listFeatureViews", + "listFeatureViewsStream", + "listFeatureViewsAsync" + ] + }, + "ListFeatureViewSyncs": { + "methods": [ + "listFeatureViewSyncs", + "listFeatureViewSyncsStream", + "listFeatureViewSyncsAsync" + ] + } + } + } + } + }, + "FeatureOnlineStoreService": { + "clients": { + "grpc": { + "libraryClient": "FeatureOnlineStoreServiceClient", + "rpcs": { + "FetchFeatureValues": { + "methods": [ + "fetchFeatureValues" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "FeatureOnlineStoreServiceClient", + "rpcs": { + "FetchFeatureValues": { + "methods": [ + "fetchFeatureValues" + ] + } + } + } + } + }, + "FeatureRegistryService": { + "clients": { + "grpc": { + "libraryClient": "FeatureRegistryServiceClient", + "rpcs": { + "GetFeatureGroup": { + "methods": [ + "getFeatureGroup" + ] + }, + "GetFeature": { + "methods": [ + "getFeature" + ] + }, + "CreateFeatureGroup": { + "methods": [ + "createFeatureGroup" + ] + }, + "UpdateFeatureGroup": { + "methods": [ + "updateFeatureGroup" + ] + }, + "DeleteFeatureGroup": { + "methods": [ + "deleteFeatureGroup" + ] + }, + "CreateFeature": { + "methods": [ + "createFeature" + ] + }, + "UpdateFeature": { + "methods": [ + "updateFeature" + ] + }, + "DeleteFeature": { + "methods": [ + "deleteFeature" + ] + }, + "ListFeatureGroups": { + "methods": [ + "listFeatureGroups", + "listFeatureGroupsStream", + "listFeatureGroupsAsync" + ] + }, + "ListFeatures": { + "methods": [ + "listFeatures", + "listFeaturesStream", + "listFeaturesAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "FeatureRegistryServiceClient", + "rpcs": { + "GetFeatureGroup": { + "methods": [ + "getFeatureGroup" + ] + }, + "GetFeature": { + "methods": [ + "getFeature" + ] + }, + "CreateFeatureGroup": { + "methods": [ + "createFeatureGroup" + ] + }, + "UpdateFeatureGroup": { + "methods": [ + "updateFeatureGroup" + ] + }, + "DeleteFeatureGroup": { + "methods": [ + "deleteFeatureGroup" + ] + }, + "CreateFeature": { + "methods": [ + "createFeature" + ] + }, + "UpdateFeature": { + "methods": [ + "updateFeature" + ] + }, + "DeleteFeature": { + "methods": [ + "deleteFeature" + ] + }, + "ListFeatureGroups": { + "methods": [ + "listFeatureGroups", + "listFeatureGroupsStream", + "listFeatureGroupsAsync" + ] + }, + "ListFeatures": { + "methods": [ + "listFeatures", + "listFeaturesStream", + "listFeaturesAsync" + ] + } + } + } + } + }, "FeaturestoreOnlineServingService": { "clients": { "grpc": { @@ -1182,6 +1484,40 @@ } } }, + "LlmUtilityService": { + "clients": { + "grpc": { + "libraryClient": "LlmUtilityServiceClient", + "rpcs": { + "CountTokens": { + "methods": [ + "countTokens" + ] + }, + "ComputeTokens": { + "methods": [ + "computeTokens" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "LlmUtilityServiceClient", + "rpcs": { + "CountTokens": { + "methods": [ + "countTokens" + ] + }, + "ComputeTokens": { + "methods": [ + "computeTokens" + ] + } + } + } + } + }, "MatchService": { "clients": { "grpc": { diff --git a/packages/google-cloud-aiplatform/src/v1/index.ts b/packages/google-cloud-aiplatform/src/v1/index.ts index 7284a96fa8d..48cab5913a5 100644 --- a/packages/google-cloud-aiplatform/src/v1/index.ts +++ b/packages/google-cloud-aiplatform/src/v1/index.ts @@ -18,11 +18,15 @@ export {DatasetServiceClient} from './dataset_service_client'; export {EndpointServiceClient} from './endpoint_service_client'; +export {FeatureOnlineStoreAdminServiceClient} from './feature_online_store_admin_service_client'; +export {FeatureOnlineStoreServiceClient} from './feature_online_store_service_client'; +export {FeatureRegistryServiceClient} from './feature_registry_service_client'; export {FeaturestoreOnlineServingServiceClient} from './featurestore_online_serving_service_client'; export {FeaturestoreServiceClient} from './featurestore_service_client'; export {IndexEndpointServiceClient} from './index_endpoint_service_client'; export {IndexServiceClient} from './index_service_client'; export {JobServiceClient} from './job_service_client'; +export {LlmUtilityServiceClient} from './llm_utility_service_client'; export {MatchServiceClient} from './match_service_client'; export {MetadataServiceClient} from './metadata_service_client'; export {MigrationServiceClient} from './migration_service_client'; 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 e03b9761c76..53eb6a3324e 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 @@ -225,8 +225,17 @@ export class IndexEndpointServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class IndexEndpointServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -462,6 +479,12 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -657,6 +680,14 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -746,6 +777,22 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -860,6 +907,22 @@ export class IndexEndpointServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -889,6 +952,12 @@ export class IndexEndpointServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -950,6 +1019,18 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1026,6 +1107,18 @@ export class IndexEndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1050,6 +1143,10 @@ export class IndexEndpointServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1109,6 +1206,18 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1183,6 +1292,18 @@ export class IndexEndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1213,6 +1334,12 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1282,6 +1409,18 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1370,6 +1509,18 @@ export class IndexEndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -3935,86 +4086,262 @@ export class IndexEndpointServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4921,6 +5248,194 @@ export class IndexEndpointServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index 2f2f3d780ea..431d9b449f2 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -225,8 +225,17 @@ export class IndexServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class IndexServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -462,6 +479,12 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -657,6 +680,14 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -746,6 +777,22 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -860,6 +907,22 @@ export class IndexServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -889,6 +952,12 @@ export class IndexServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -950,6 +1019,18 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1026,6 +1107,18 @@ export class IndexServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1050,6 +1143,10 @@ export class IndexServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1109,6 +1206,18 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1183,6 +1292,18 @@ export class IndexServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1213,6 +1334,12 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1282,6 +1409,18 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1370,6 +1509,18 @@ export class IndexServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -3659,86 +3810,262 @@ export class IndexServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4645,6 +4972,194 @@ export class IndexServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index 7913555d57f..28cf680bce6 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -225,8 +225,17 @@ export class JobServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class JobServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -498,6 +515,12 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -693,6 +716,14 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -782,6 +813,22 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -896,6 +943,22 @@ export class JobServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -925,6 +988,12 @@ export class JobServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -986,6 +1055,18 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1062,6 +1143,18 @@ export class JobServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1086,6 +1179,10 @@ export class JobServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1145,6 +1242,18 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1219,6 +1328,18 @@ export class JobServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1249,6 +1370,12 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1318,6 +1445,18 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1406,6 +1545,18 @@ export class JobServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -7993,86 +8144,262 @@ export class JobServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -8979,6 +9306,194 @@ export class JobServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts new file mode 100644 index 00000000000..8fc1140336b --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts @@ -0,0 +1,3808 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; + +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/llm_utility_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './llm_utility_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Service for LLM related utility functions. + * @class + * @memberof v1 + */ +export class LlmUtilityServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + llmUtilityServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of LlmUtilityServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new LlmUtilityServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof LlmUtilityServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.LlmUtilityService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.llmUtilityServiceStub) { + return this.llmUtilityServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.LlmUtilityService. + this.llmUtilityServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.LlmUtilityService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1.LlmUtilityService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const llmUtilityServiceStubMethods = ['countTokens', 'computeTokens']; + for (const methodName of llmUtilityServiceStubMethods) { + const callPromise = this.llmUtilityServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.llmUtilityServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Perform a token counting. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.endpoint + * Required. The name of the Endpoint requested to perform token counting. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param {number[]} request.instances + * Required. The instances that are the input to token counting call. + * Schema is identical to the prediction schema of the underlying model. + * @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.v1.CountTokensResponse|CountTokensResponse}. + * 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/v1/llm_utility_service.count_tokens.js + * region_tag:aiplatform_v1_generated_LlmUtilityService_CountTokens_async + */ + countTokens( + request?: protos.google.cloud.aiplatform.v1.ICountTokensRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + protos.google.cloud.aiplatform.v1.ICountTokensRequest | undefined, + {} | undefined, + ] + >; + countTokens( + request: protos.google.cloud.aiplatform.v1.ICountTokensRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + protos.google.cloud.aiplatform.v1.ICountTokensRequest | null | undefined, + {} | null | undefined + > + ): void; + countTokens( + request: protos.google.cloud.aiplatform.v1.ICountTokensRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + protos.google.cloud.aiplatform.v1.ICountTokensRequest | null | undefined, + {} | null | undefined + > + ): void; + countTokens( + request?: protos.google.cloud.aiplatform.v1.ICountTokensRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + | protos.google.cloud.aiplatform.v1.ICountTokensRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + protos.google.cloud.aiplatform.v1.ICountTokensRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICountTokensResponse, + protos.google.cloud.aiplatform.v1.ICountTokensRequest | 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({ + endpoint: request.endpoint ?? '', + }); + this.initialize(); + return this.innerApiCalls.countTokens(request, options, callback); + } + /** + * Return a list of tokens based on the input text. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.endpoint + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * @param {number[]} request.instances + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * @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.v1.ComputeTokensResponse|ComputeTokensResponse}. + * 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/v1/llm_utility_service.compute_tokens.js + * region_tag:aiplatform_v1_generated_LlmUtilityService_ComputeTokens_async + */ + computeTokens( + request?: protos.google.cloud.aiplatform.v1.IComputeTokensRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + protos.google.cloud.aiplatform.v1.IComputeTokensRequest | undefined, + {} | undefined, + ] + >; + computeTokens( + request: protos.google.cloud.aiplatform.v1.IComputeTokensRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeTokens( + request: protos.google.cloud.aiplatform.v1.IComputeTokensRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeTokens( + request?: protos.google.cloud.aiplatform.v1.IComputeTokensRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IComputeTokensResponse, + protos.google.cloud.aiplatform.v1.IComputeTokensRequest | 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({ + endpoint: request.endpoint ?? '', + }); + this.initialize(); + return this.innerApiCalls.computeTokens(request, options, callback); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. 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.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @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 google.cloud.location.Location | Location}. 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 + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.llmUtilityServiceStub && !this._terminated) { + return this.llmUtilityServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client_config.json new file mode 100644 index 00000000000..e54c5f5c673 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client_config.json @@ -0,0 +1,34 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.LlmUtilityService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CountTokens": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ComputeTokens": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json new file mode 100644 index 00000000000..51289768bff --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json @@ -0,0 +1,129 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/event.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/types.proto", + "../../protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1/match_service_client.ts b/packages/google-cloud-aiplatform/src/v1/match_service_client.ts index 370002aa0ab..f0e32992ef2 100644 --- a/packages/google-cloud-aiplatform/src/v1/match_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/match_service_client.ts @@ -221,8 +221,17 @@ export class MatchServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -267,6 +276,14 @@ export class MatchServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -1666,86 +1683,262 @@ export class MatchServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -2616,6 +2809,194 @@ export class MatchServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index f0ca0dbe953..a157fbb6f8d 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -225,8 +225,17 @@ export class MetadataServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -277,6 +286,14 @@ export class MetadataServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -485,6 +502,12 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -680,6 +703,14 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -769,6 +800,22 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -883,6 +930,22 @@ export class MetadataServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -912,6 +975,12 @@ export class MetadataServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -973,6 +1042,18 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1049,6 +1130,18 @@ export class MetadataServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1073,6 +1166,10 @@ export class MetadataServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1132,6 +1229,18 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1206,6 +1315,18 @@ export class MetadataServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1236,6 +1357,12 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1305,6 +1432,18 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1393,6 +1532,18 @@ export class MetadataServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -7376,86 +7527,262 @@ export class MetadataServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -8385,6 +8712,194 @@ export class MetadataServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index 64e8db39c72..9c0c0765b09 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -226,8 +226,17 @@ export class MigrationServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -275,6 +284,14 @@ export class MigrationServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -463,6 +480,12 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -658,6 +681,14 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -747,6 +778,22 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -861,6 +908,22 @@ export class MigrationServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -890,6 +953,12 @@ export class MigrationServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -951,6 +1020,18 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1027,6 +1108,18 @@ export class MigrationServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1051,6 +1144,10 @@ export class MigrationServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1110,6 +1207,18 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1184,6 +1293,18 @@ export class MigrationServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1214,6 +1335,12 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1283,6 +1410,18 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1371,6 +1510,18 @@ export class MigrationServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -3118,86 +3269,262 @@ export class MigrationServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4104,6 +4431,194 @@ export class MigrationServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts index 184443b2518..f169bca37aa 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts @@ -220,8 +220,17 @@ export class ModelGardenServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -266,6 +275,14 @@ export class ModelGardenServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -1559,86 +1576,262 @@ export class ModelGardenServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -2509,6 +2702,194 @@ export class ModelGardenServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 0943f3eea85..fb4ca695df1 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -225,8 +225,17 @@ export class ModelServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -274,6 +283,14 @@ export class ModelServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -477,6 +494,12 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -672,6 +695,14 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -761,6 +792,22 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -875,6 +922,22 @@ export class ModelServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -904,6 +967,12 @@ export class ModelServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -965,6 +1034,18 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1041,6 +1122,18 @@ export class ModelServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1065,6 +1158,10 @@ export class ModelServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1124,6 +1221,18 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1198,6 +1307,18 @@ export class ModelServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1228,6 +1349,12 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1297,6 +1424,18 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1385,6 +1524,18 @@ export class ModelServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -5518,86 +5669,262 @@ export class ModelServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -6504,6 +6831,194 @@ export class ModelServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index 80150954a91..96088bcbb9c 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -227,8 +227,17 @@ export class PipelineServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -276,6 +285,14 @@ export class PipelineServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -469,6 +486,12 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -664,6 +687,14 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -753,6 +784,22 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -867,6 +914,22 @@ export class PipelineServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -896,6 +959,12 @@ export class PipelineServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -957,6 +1026,18 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1033,6 +1114,18 @@ export class PipelineServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1057,6 +1150,10 @@ export class PipelineServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1116,6 +1213,18 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1190,6 +1299,18 @@ export class PipelineServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1220,6 +1341,12 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1289,6 +1416,18 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1377,6 +1516,18 @@ export class PipelineServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -4277,86 +4428,262 @@ export class PipelineServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -5263,6 +5590,194 @@ export class PipelineServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index 490939f3215..b700799028a 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -220,8 +220,17 @@ export class PredictionServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -266,6 +275,14 @@ export class PredictionServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -1862,86 +1879,262 @@ export class PredictionServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -2812,6 +3005,194 @@ export class PredictionServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", 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 8ddc3e40a9a..475784535c3 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts @@ -226,8 +226,17 @@ export class ScheduleServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -275,6 +284,14 @@ export class ScheduleServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -463,6 +480,12 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -658,6 +681,14 @@ export class ScheduleServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -747,6 +778,22 @@ export class ScheduleServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -861,6 +908,22 @@ export class ScheduleServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -890,6 +953,12 @@ export class ScheduleServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -951,6 +1020,18 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1027,6 +1108,18 @@ export class ScheduleServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1051,6 +1144,10 @@ export class ScheduleServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1110,6 +1207,18 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1184,6 +1293,18 @@ export class ScheduleServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1214,6 +1335,12 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1283,6 +1410,18 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1371,6 +1510,18 @@ export class ScheduleServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -3711,86 +3862,262 @@ export class ScheduleServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4697,6 +5024,194 @@ export class ScheduleServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index c0773e23200..6ad18ec9760 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -231,8 +231,17 @@ export class SpecialistPoolServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -280,6 +289,14 @@ export class SpecialistPoolServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -468,6 +485,12 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -663,6 +686,14 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -752,6 +783,22 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -866,6 +913,22 @@ export class SpecialistPoolServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -895,6 +958,12 @@ export class SpecialistPoolServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -956,6 +1025,18 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1032,6 +1113,18 @@ export class SpecialistPoolServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1056,6 +1149,10 @@ export class SpecialistPoolServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1115,6 +1212,18 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1189,6 +1298,18 @@ export class SpecialistPoolServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1219,6 +1340,12 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1288,6 +1415,18 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1376,6 +1515,18 @@ export class SpecialistPoolServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -3482,86 +3633,262 @@ export class SpecialistPoolServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -4468,6 +4795,194 @@ export class SpecialistPoolServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts index bc12671221c..e69687744bc 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -225,8 +225,17 @@ export class TensorboardServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -277,6 +286,14 @@ export class TensorboardServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -494,6 +511,12 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -689,6 +712,14 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -778,6 +809,22 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -892,6 +939,22 @@ export class TensorboardServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -921,6 +984,12 @@ export class TensorboardServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -982,6 +1051,18 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1058,6 +1139,18 @@ export class TensorboardServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1082,6 +1175,10 @@ export class TensorboardServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1141,6 +1238,18 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1215,6 +1324,18 @@ export class TensorboardServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1245,6 +1366,12 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1314,6 +1441,18 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1402,6 +1541,18 @@ export class TensorboardServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -6835,86 +6986,262 @@ export class TensorboardServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -7844,6 +8171,194 @@ export class TensorboardServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts index c6b19388cb0..f4f2544789a 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -229,8 +229,17 @@ export class VizierServiceClient { executionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' ), - featurePathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' ), featurestorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featurestores/{featurestore}' @@ -278,6 +287,14 @@ export class VizierServiceClient { projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), projectLocationPublisherModelPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' @@ -471,6 +488,12 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -666,6 +689,14 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -755,6 +786,22 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -869,6 +916,22 @@ export class VizierServiceClient { delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, ], }, { @@ -898,6 +961,12 @@ export class VizierServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -959,6 +1028,18 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/operations/*}'}, {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, { @@ -1035,6 +1116,18 @@ export class VizierServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, ], }, { @@ -1059,6 +1152,10 @@ export class VizierServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1118,6 +1215,18 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1/{name=projects/*/locations/*}/operations'}, {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, { @@ -1192,6 +1301,18 @@ export class VizierServiceClient { { get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, { @@ -1222,6 +1343,12 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1291,6 +1418,18 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1379,6 +1518,18 @@ export class VizierServiceClient { { post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, ], }, ]; @@ -4454,86 +4605,262 @@ export class VizierServiceClient { } /** - * Return a fully-qualified feature resource name string. + * Return a fully-qualified featureGroup resource name string. * * @param {string} project * @param {string} location - * @param {string} featurestore - * @param {string} entity_type - * @param {string} feature + * @param {string} feature_group * @returns {string} Resource name string. */ - featurePath( + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( project: string, location: string, - featurestore: string, - entityType: string, - feature: string + featureOnlineStore: string ) { - return this.pathTemplates.featurePathTemplate.render({ + return this.pathTemplates.featureOnlineStorePathTemplate.render({ project: project, location: location, - featurestore: featurestore, - entity_type: entityType, - feature: feature, + feature_online_store: featureOnlineStore, }); } /** - * Parse the project from Feature resource. + * Parse the project from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the project. */ - matchProjectFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).project; + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; } /** - * Parse the location from Feature resource. + * Parse the location from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. * @returns {string} A string representing the location. */ - matchLocationFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).location; + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; } /** - * Parse the featurestore from Feature resource. + * Parse the feature_online_store from FeatureOnlineStore resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the featurestore. + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. */ - matchFeaturestoreFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .featurestore; + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; } /** - * Parse the entity_type from Feature resource. + * Return a fully-qualified featureView resource name string. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the entity_type. + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. */ - matchEntityTypeFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName) - .entity_type; + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); } /** - * Parse the feature from Feature resource. + * Parse the project from FeatureView resource. * - * @param {string} featureName - * A fully-qualified path representing Feature resource. - * @returns {string} A string representing the feature. + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. */ - matchFeatureFromFeatureName(featureName: string) { - return this.pathTemplates.featurePathTemplate.match(featureName).feature; + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; } /** @@ -5440,6 +5767,194 @@ export class VizierServiceClient { ).endpoint; } + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + /** * Return a fully-qualified projectLocationPublisherModel resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json index 324d69d393e..51289768bff 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json @@ -25,8 +25,15 @@ "../../protos/google/cloud/aiplatform/v1/explanation.proto", "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", "../../protos/google/cloud/aiplatform/v1/featurestore.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", @@ -40,6 +47,7 @@ "../../protos/google/cloud/aiplatform/v1/job_service.proto", "../../protos/google/cloud/aiplatform/v1/job_state.proto", "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts index 68576afca3e..b09112a6446 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -534,6 +534,12 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -749,6 +755,14 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -838,6 +852,22 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1028,6 +1058,12 @@ export class DatasetServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1089,6 +1125,18 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1234,6 +1282,10 @@ export class DatasetServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1293,6 +1345,18 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1442,6 +1506,12 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1511,6 +1581,18 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 d16dc9e4564..c9ff5b78621 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 @@ -518,6 +518,12 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -733,6 +739,14 @@ export class DeploymentResourcePoolServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -822,6 +836,22 @@ export class DeploymentResourcePoolServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1012,6 +1042,12 @@ export class DeploymentResourcePoolServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1073,6 +1109,18 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1218,6 +1266,10 @@ export class DeploymentResourcePoolServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1277,6 +1329,18 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1426,6 +1490,12 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1495,6 +1565,18 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 ca5a70b0fb7..cf5c66ea052 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -509,6 +509,12 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -724,6 +730,14 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -813,6 +827,22 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1003,6 +1033,12 @@ export class EndpointServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1064,6 +1100,18 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1209,6 +1257,10 @@ export class EndpointServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1268,6 +1320,18 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1417,6 +1481,12 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1486,6 +1556,18 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 2f36aa7ed5f..bd17a431eba 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 @@ -524,6 +524,12 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -739,6 +745,14 @@ export class FeatureOnlineStoreAdminServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -828,6 +842,22 @@ export class FeatureOnlineStoreAdminServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1018,6 +1048,12 @@ export class FeatureOnlineStoreAdminServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1079,6 +1115,18 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1224,6 +1272,10 @@ export class FeatureOnlineStoreAdminServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1283,6 +1335,18 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1432,6 +1496,12 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1501,6 +1571,18 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 af75766b82a..6be5e193c31 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 @@ -475,8 +475,16 @@ export class FeatureOnlineStoreServiceClient { * @param {string} request.featureView * Required. FeatureView resource format * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * @param {google.cloud.aiplatform.v1beta1.FeatureViewDataKey} [request.dataKey] + * Optional. The request key to fetch feature values for. + * @param {google.cloud.aiplatform.v1beta1.FeatureViewDataFormat} [request.dataFormat] + * Optional. Response data format. If not set, + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureViewDataFormat.KEY_VALUE|FeatureViewDataFormat.KEY_VALUE} + * will be used. * @param {google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format} request.format * Specify response data format. If not set, KeyValue format will be used. + * Deprecated. Use + * {@link protos.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.data_format|FetchFeatureValuesRequest.data_format}. * @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/v1beta1/feature_online_store_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 e7f7341f006..a128a3f29f7 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 @@ -519,6 +519,12 @@ export class FeatureRegistryServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -734,6 +740,14 @@ export class FeatureRegistryServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -823,6 +837,22 @@ export class FeatureRegistryServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1013,6 +1043,12 @@ export class FeatureRegistryServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1074,6 +1110,18 @@ export class FeatureRegistryServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1219,6 +1267,10 @@ export class FeatureRegistryServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1278,6 +1330,18 @@ export class FeatureRegistryServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1427,6 +1491,12 @@ export class FeatureRegistryServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1496,6 +1566,18 @@ export class FeatureRegistryServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1941,8 +2023,9 @@ export class FeatureRegistryServiceClient { * The request object that will be sent. * @param {string} request.name * Required. The name of the Feature resource. - * Format: + * 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 {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2474,6 +2557,11 @@ export class FeatureRegistryServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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 {google.cloud.aiplatform.v1beta1.Feature} request.feature * Required. The Feature to create. * @param {string} request.featureId @@ -2637,7 +2725,7 @@ export class FeatureRegistryServiceClient { * * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) * @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. @@ -3207,8 +3295,9 @@ export class FeatureRegistryServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -3239,10 +3328,14 @@ export class FeatureRegistryServiceClient { * @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 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. @@ -3256,6 +3349,7 @@ export class FeatureRegistryServiceClient { * @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 @@ -3355,8 +3449,9 @@ export class FeatureRegistryServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -3387,10 +3482,14 @@ export class FeatureRegistryServiceClient { * @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 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. @@ -3404,6 +3503,7 @@ export class FeatureRegistryServiceClient { * @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 @@ -3451,8 +3551,9 @@ export class FeatureRegistryServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -3483,10 +3584,14 @@ export class FeatureRegistryServiceClient { * @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 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. @@ -3500,6 +3605,7 @@ export class FeatureRegistryServiceClient { * @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 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 f7af013422e..9e2a7788e12 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -527,6 +527,12 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -742,6 +748,14 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -831,6 +845,22 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1021,6 +1051,12 @@ export class FeaturestoreServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1082,6 +1118,18 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1227,6 +1275,10 @@ export class FeaturestoreServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1286,6 +1338,18 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1435,6 +1499,12 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1504,6 +1574,18 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -2241,8 +2323,9 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.name * Required. The name of the Feature resource. - * Format: + * 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 {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2351,7 +2434,7 @@ export class FeaturestoreServiceClient { * * * `description` * * `labels` - * * `disable_monitoring` + * * `disable_monitoring` (Not supported for FeatureRegistry Feature) * @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. @@ -3176,6 +3259,11 @@ export class FeaturestoreServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent + * Required. The resource name of the EntityType or FeatureGroup to create a + * Feature. 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 {google.cloud.aiplatform.v1beta1.Feature} request.feature * Required. The Feature to create. * @param {string} request.featureId @@ -4902,8 +4990,9 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -4934,10 +5023,14 @@ export class FeaturestoreServiceClient { * @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 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. @@ -4951,6 +5044,7 @@ export class FeaturestoreServiceClient { * @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 @@ -5050,8 +5144,9 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -5082,10 +5177,14 @@ export class FeaturestoreServiceClient { * @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 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. @@ -5099,6 +5198,7 @@ export class FeaturestoreServiceClient { * @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 @@ -5146,8 +5246,9 @@ export class FeaturestoreServiceClient { * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the Location to list Features. - * Format: + * 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 @@ -5178,10 +5279,14 @@ export class FeaturestoreServiceClient { * @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 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. @@ -5195,6 +5300,7 @@ export class FeaturestoreServiceClient { * @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 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 637c0c2b198..040430e13b7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -1566,6 +1566,30 @@ } } }, + "LlmUtilityService": { + "clients": { + "grpc": { + "libraryClient": "LlmUtilityServiceClient", + "rpcs": { + "ComputeTokens": { + "methods": [ + "computeTokens" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "LlmUtilityServiceClient", + "rpcs": { + "ComputeTokens": { + "methods": [ + "computeTokens" + ] + } + } + } + } + }, "MatchService": { "clients": { "grpc": { @@ -2353,6 +2377,11 @@ "deletePipelineJob" ] }, + "BatchDeletePipelineJobs": { + "methods": [ + "batchDeletePipelineJobs" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", @@ -2412,6 +2441,11 @@ "deletePipelineJob" ] }, + "BatchDeletePipelineJobs": { + "methods": [ + "batchDeletePipelineJobs" + ] + }, "ListTrainingPipelines": { "methods": [ "listTrainingPipelines", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index.ts b/packages/google-cloud-aiplatform/src/v1beta1/index.ts index 8bf244f06be..5667b9943c4 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index.ts @@ -27,6 +27,7 @@ export {FeaturestoreServiceClient} from './featurestore_service_client'; export {IndexEndpointServiceClient} from './index_endpoint_service_client'; export {IndexServiceClient} from './index_service_client'; export {JobServiceClient} from './job_service_client'; +export {LlmUtilityServiceClient} from './llm_utility_service_client'; export {MatchServiceClient} from './match_service_client'; export {MetadataServiceClient} from './metadata_service_client'; export {MigrationServiceClient} from './migration_service_client'; 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 a7383ab0ba5..a9fbd9d6754 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 @@ -509,6 +509,12 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -724,6 +730,14 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -813,6 +827,22 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1003,6 +1033,12 @@ export class IndexEndpointServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1064,6 +1100,18 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1209,6 +1257,10 @@ export class IndexEndpointServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1268,6 +1320,18 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1417,6 +1481,12 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1486,6 +1556,18 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 373c9caaf08..52af132c716 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -509,6 +509,12 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -724,6 +730,14 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -813,6 +827,22 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1003,6 +1033,12 @@ export class IndexServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1064,6 +1100,18 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1209,6 +1257,10 @@ export class IndexServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1268,6 +1320,18 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1417,6 +1481,12 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1486,6 +1556,18 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 18ba7287f5e..0c40daa5e83 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -545,6 +545,12 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -760,6 +766,14 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -849,6 +863,22 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1039,6 +1069,12 @@ export class JobServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1100,6 +1136,18 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1245,6 +1293,10 @@ export class JobServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1304,6 +1356,18 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1453,6 +1517,12 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1522,6 +1592,18 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 new file mode 100644 index 00000000000..392b60151af --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts @@ -0,0 +1,3852 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; + +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1beta1/llm_utility_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './llm_utility_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Service for LLM related utility functions. + * @class + * @memberof v1beta1 + */ +export class LlmUtilityServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + llmUtilityServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of LlmUtilityServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new LlmUtilityServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof LlmUtilityServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + deploymentResourcePoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + persistentResourcePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/persistentResources/{persistent_resource}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1beta1.LlmUtilityService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.llmUtilityServiceStub) { + return this.llmUtilityServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1beta1.LlmUtilityService. + this.llmUtilityServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1beta1.LlmUtilityService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1beta1 + .LlmUtilityService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const llmUtilityServiceStubMethods = ['computeTokens']; + for (const methodName of llmUtilityServiceStubMethods) { + const callPromise = this.llmUtilityServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.llmUtilityServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'aiplatform.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Return a list of tokens based on the input text. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.endpoint + * Required. The name of the Endpoint requested to get lists of tokens and + * token ids. + * @param {number[]} request.instances + * Required. The instances that are the input to token computing API call. + * Schema is identical to the prediction schema of the text model, even for + * the non-text models, like chat models, or Codey models. + * @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.ComputeTokensResponse|ComputeTokensResponse}. + * 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/llm_utility_service.compute_tokens.js + * region_tag:aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_async + */ + computeTokens( + request?: protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest | undefined, + {} | undefined, + ] + >; + computeTokens( + request: protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeTokens( + request: protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): void; + computeTokens( + request?: protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + | protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse, + protos.google.cloud.aiplatform.v1beta1.IComputeTokensRequest | 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({ + endpoint: request.endpoint ?? '', + }); + this.initialize(); + return this.innerApiCalls.computeTokens(request, options, callback); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. 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.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @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 google.cloud.location.Location | Location}. 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 + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified deploymentResourcePool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} deployment_resource_pool + * @returns {string} Resource name string. + */ + deploymentResourcePoolPath( + project: string, + location: string, + deploymentResourcePool: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.render({ + project: project, + location: location, + deployment_resource_pool: deploymentResourcePool, + }); + } + + /** + * Parse the project from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).project; + } + + /** + * Parse the location from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).location; + } + + /** + * Parse the deployment_resource_pool from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the deployment_resource_pool. + */ + matchDeploymentResourcePoolFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).deployment_resource_pool; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified persistentResource resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} persistent_resource + * @returns {string} Resource name string. + */ + persistentResourcePath( + project: string, + location: string, + persistentResource: string + ) { + return this.pathTemplates.persistentResourcePathTemplate.render({ + project: project, + location: location, + persistent_resource: persistentResource, + }); + } + + /** + * Parse the project from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPersistentResourceName(persistentResourceName: string) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).project; + } + + /** + * Parse the location from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPersistentResourceName(persistentResourceName: string) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).location; + } + + /** + * Parse the persistent_resource from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the persistent_resource. + */ + matchPersistentResourceFromPersistentResourceName( + persistentResourceName: string + ) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).persistent_resource; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.llmUtilityServiceStub && !this._terminated) { + return this.llmUtilityServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json new file mode 100644 index 00000000000..ffed453ab78 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client_config.json @@ -0,0 +1,30 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1beta1.LlmUtilityService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "ComputeTokens": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} 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 new file mode 100644 index 00000000000..879079facc4 --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json @@ -0,0 +1,140 @@ +[ + "../../protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1beta1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1beta1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1beta1/context.proto", + "../../protos/google/cloud/aiplatform/v1beta1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1beta1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1beta1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto", + "../../protos/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1beta1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1beta1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1beta1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1beta1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/event.proto", + "../../protos/google/cloud/aiplatform/v1beta1/execution.proto", + "../../protos/google/cloud/aiplatform/v1beta1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_group.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", + "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1beta1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/index.proto", + "../../protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/io.proto", + "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1beta1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1beta1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1beta1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1beta1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/persistent_resource.proto", + "../../protos/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/geometry.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/study.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1beta1/value.proto", + "../../protos/google/cloud/aiplatform/v1beta1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 b3e94f89552..f28a39af372 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -532,6 +532,12 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -747,6 +753,14 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -836,6 +850,22 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1026,6 +1056,12 @@ export class MetadataServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1087,6 +1123,18 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1232,6 +1280,10 @@ export class MetadataServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1291,6 +1343,18 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1440,6 +1504,12 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1509,6 +1579,18 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 ad499af1158..a1272197e8a 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -510,6 +510,12 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -725,6 +731,14 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -814,6 +828,22 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1004,6 +1034,12 @@ export class MigrationServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1065,6 +1101,18 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1210,6 +1258,10 @@ export class MigrationServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1269,6 +1321,18 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1418,6 +1482,12 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1487,6 +1557,18 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_service.proto", 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 289b2586a8d..4bc1c4618f5 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -524,6 +524,12 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -739,6 +745,14 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -828,6 +842,22 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1018,6 +1048,12 @@ export class ModelServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1079,6 +1115,18 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1224,6 +1272,10 @@ export class ModelServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1283,6 +1335,18 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1432,6 +1496,12 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1501,6 +1571,18 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 de8cf8ae0bd..24f30912003 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 @@ -510,6 +510,12 @@ export class PersistentResourceServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -725,6 +731,14 @@ export class PersistentResourceServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -814,6 +828,22 @@ export class PersistentResourceServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1004,6 +1034,12 @@ export class PersistentResourceServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1065,6 +1101,18 @@ export class PersistentResourceServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1210,6 +1258,10 @@ export class PersistentResourceServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1269,6 +1321,18 @@ export class PersistentResourceServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1418,6 +1482,12 @@ export class PersistentResourceServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1487,6 +1557,18 @@ export class PersistentResourceServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 cfe589df321..35793cd0193 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -288,6 +288,9 @@ export class PipelineServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/endpoints/{endpoint}' ), @@ -516,6 +519,12 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -731,6 +740,14 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -820,6 +837,22 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1010,6 +1043,12 @@ export class PipelineServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1071,6 +1110,18 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1216,6 +1267,10 @@ export class PipelineServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1275,6 +1330,18 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1424,6 +1491,12 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1493,6 +1566,18 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', @@ -1630,6 +1715,12 @@ export class PipelineServiceClient { const deletePipelineJobMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const batchDeletePipelineJobsResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse' + ) as gax.protobuf.Type; + const batchDeletePipelineJobsMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { deleteTrainingPipeline: new this._gaxModule.LongrunningDescriptor( @@ -1646,6 +1737,15 @@ export class PipelineServiceClient { deletePipelineJobResponse.decode.bind(deletePipelineJobResponse), deletePipelineJobMetadata.decode.bind(deletePipelineJobMetadata) ), + batchDeletePipelineJobs: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + batchDeletePipelineJobsResponse.decode.bind( + batchDeletePipelineJobsResponse + ), + batchDeletePipelineJobsMetadata.decode.bind( + batchDeletePipelineJobsMetadata + ) + ), }; // Put together the default options sent with requests. @@ -1707,6 +1807,7 @@ export class PipelineServiceClient { 'getPipelineJob', 'listPipelineJobs', 'deletePipelineJob', + 'batchDeletePipelineJobs', 'cancelPipelineJob', ]; for (const methodName of pipelineServiceStubMethods) { @@ -2700,6 +2801,154 @@ export class PipelineServiceClient { protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata >; } + /** + * Batch deletes PipelineJobs + * The Operation is atomic. If it fails, none of the PipelineJobs are deleted. + * If it succeeds, all of the PipelineJobs are deleted. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the PipelineJobs' parent resource. + * Format: `projects/{project}/locations/{location}` + * @param {string[]} request.names + * Required. The names of the PipelineJobs to delete. + * A maximum of 32 PipelineJobs can be deleted in a batch. + * Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}` + * @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/pipeline_service.batch_delete_pipeline_jobs.js + * region_tag:aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_async + */ + batchDeletePipelineJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + batchDeletePipelineJobs( + request: protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchDeletePipelineJobs( + request: protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchDeletePipelineJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.batchDeletePipelineJobs( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `batchDeletePipelineJobs()`. + * @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/pipeline_service.batch_delete_pipeline_jobs.js + * region_tag:aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_async + */ + async checkBatchDeletePipelineJobsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse, + 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.batchDeletePipelineJobs, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } /** * Lists TrainingPipelines in a Location. * @@ -5752,6 +6001,29 @@ export class PipelineServiceClient { .pipeline_job; } + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + /** * Return a fully-qualified projectLocationEndpoint resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json index dfa51e952eb..a8a97dbe0a8 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client_config.json @@ -61,6 +61,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchDeletePipelineJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CancelPipelineJob": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 d5947d6bbe0..74dc302e90b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts @@ -510,6 +510,12 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -725,6 +731,14 @@ export class ScheduleServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -814,6 +828,22 @@ export class ScheduleServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1004,6 +1034,12 @@ export class ScheduleServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1065,6 +1101,18 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1210,6 +1258,10 @@ export class ScheduleServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1269,6 +1321,18 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1418,6 +1482,12 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1487,6 +1557,18 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 19407080335..3a0ef3f2790 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 @@ -515,6 +515,12 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -730,6 +736,14 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -819,6 +833,22 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1009,6 +1039,12 @@ export class SpecialistPoolServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1070,6 +1106,18 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1215,6 +1263,10 @@ export class SpecialistPoolServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1274,6 +1326,18 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1423,6 +1487,12 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1492,6 +1562,18 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 5c827238a92..4419351abcc 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -541,6 +541,12 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -756,6 +762,14 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -845,6 +859,22 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1035,6 +1065,12 @@ export class TensorboardServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1096,6 +1132,18 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1241,6 +1289,10 @@ export class TensorboardServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1300,6 +1352,18 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1449,6 +1513,12 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1518,6 +1588,18 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json index 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_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 6e8dfd23904..595b67f0a55 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -518,6 +518,12 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', }, @@ -733,6 +739,14 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + { + delete: + '/ui/{name=projects/*/locations/*/extensions/*}/operations', + }, { delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', @@ -822,6 +836,22 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { delete: @@ -1012,6 +1042,12 @@ export class VizierServiceClient { get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', }, {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', }, @@ -1073,6 +1109,18 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}', + }, {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', @@ -1218,6 +1266,10 @@ export class VizierServiceClient { }, {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/extensionControllers/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/extensions/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', }, @@ -1277,6 +1329,18 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + get: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, { get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', @@ -1426,6 +1490,12 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/extensionControllers/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/extensions/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', }, @@ -1495,6 +1565,18 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureOnlineStores/*/featureViews/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featureGroups/*/features/*/operations/*}:wait', + }, {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, { post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', 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 4a358c29745..879079facc4 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 @@ -49,6 +49,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/job_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/job_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/machine_resources.proto", "../../protos/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto", "../../protos/google/cloud/aiplatform/v1beta1/match_service.proto", diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js index 2cf228bcfb9..7cb23056c3c 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js @@ -22,6 +22,12 @@ const aiplatform = require('@google-cloud/aiplatform'); function main() { const datasetServiceClient = new aiplatform.DatasetServiceClient(); const endpointServiceClient = new aiplatform.EndpointServiceClient(); + const featureOnlineStoreAdminServiceClient = + new aiplatform.FeatureOnlineStoreAdminServiceClient(); + const featureOnlineStoreServiceClient = + new aiplatform.FeatureOnlineStoreServiceClient(); + const featureRegistryServiceClient = + new aiplatform.FeatureRegistryServiceClient(); const featurestoreOnlineServingServiceClient = new aiplatform.FeaturestoreOnlineServingServiceClient(); const featurestoreServiceClient = new aiplatform.FeaturestoreServiceClient(); @@ -29,6 +35,7 @@ function main() { new aiplatform.IndexEndpointServiceClient(); const indexServiceClient = new aiplatform.IndexServiceClient(); const jobServiceClient = new aiplatform.JobServiceClient(); + const llmUtilityServiceClient = new aiplatform.LlmUtilityServiceClient(); const matchServiceClient = new aiplatform.MatchServiceClient(); const metadataServiceClient = new aiplatform.MetadataServiceClient(); const migrationServiceClient = new aiplatform.MigrationServiceClient(); diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts index 31b7eada05f..acdc09bff3e 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts @@ -19,11 +19,15 @@ import { DatasetServiceClient, EndpointServiceClient, + FeatureOnlineStoreAdminServiceClient, + FeatureOnlineStoreServiceClient, + FeatureRegistryServiceClient, FeaturestoreOnlineServingServiceClient, FeaturestoreServiceClient, IndexEndpointServiceClient, IndexServiceClient, JobServiceClient, + LlmUtilityServiceClient, MatchServiceClient, MetadataServiceClient, MigrationServiceClient, @@ -44,6 +48,21 @@ function doStuffWithDatasetServiceClient(client: DatasetServiceClient) { function doStuffWithEndpointServiceClient(client: EndpointServiceClient) { client.close(); } +function doStuffWithFeatureOnlineStoreAdminServiceClient( + client: FeatureOnlineStoreAdminServiceClient +) { + client.close(); +} +function doStuffWithFeatureOnlineStoreServiceClient( + client: FeatureOnlineStoreServiceClient +) { + client.close(); +} +function doStuffWithFeatureRegistryServiceClient( + client: FeatureRegistryServiceClient +) { + client.close(); +} function doStuffWithFeaturestoreOnlineServingServiceClient( client: FeaturestoreOnlineServingServiceClient ) { @@ -65,6 +84,9 @@ function doStuffWithIndexServiceClient(client: IndexServiceClient) { function doStuffWithJobServiceClient(client: JobServiceClient) { client.close(); } +function doStuffWithLlmUtilityServiceClient(client: LlmUtilityServiceClient) { + client.close(); +} function doStuffWithMatchServiceClient(client: MatchServiceClient) { client.close(); } @@ -109,6 +131,18 @@ function main() { const endpointServiceClient = new EndpointServiceClient(); doStuffWithEndpointServiceClient(endpointServiceClient); // check that the client instance can be created + const featureOnlineStoreAdminServiceClient = + new FeatureOnlineStoreAdminServiceClient(); + doStuffWithFeatureOnlineStoreAdminServiceClient( + featureOnlineStoreAdminServiceClient + ); + // check that the client instance can be created + const featureOnlineStoreServiceClient = new FeatureOnlineStoreServiceClient(); + doStuffWithFeatureOnlineStoreServiceClient(featureOnlineStoreServiceClient); + // check that the client instance can be created + const featureRegistryServiceClient = new FeatureRegistryServiceClient(); + doStuffWithFeatureRegistryServiceClient(featureRegistryServiceClient); + // check that the client instance can be created const featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); doStuffWithFeaturestoreOnlineServingServiceClient( @@ -127,6 +161,9 @@ function main() { const jobServiceClient = new JobServiceClient(); doStuffWithJobServiceClient(jobServiceClient); // check that the client instance can be created + const llmUtilityServiceClient = new LlmUtilityServiceClient(); + doStuffWithLlmUtilityServiceClient(llmUtilityServiceClient); + // check that the client instance can be created const matchServiceClient = new MatchServiceClient(); doStuffWithMatchServiceClient(matchServiceClient); // check that the client instance can be created diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts index 5f1d1da783c..a8921560677 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts @@ -5964,88 +5964,295 @@ describe('v1.DatasetServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -7128,6 +7335,233 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts index fec5f6117af..825d4796954 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts @@ -3516,88 +3516,295 @@ describe('v1.EndpointServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new endpointserviceModule.v1.EndpointServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -4680,6 +4887,233 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1.ts new file mode 100644 index 00000000000..158dc609e82 --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1.ts @@ -0,0 +1,7732 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as featureonlinestoreadminserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.FeatureOnlineStoreAdminServiceClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featureonlinestoreadminserviceModule.v1 + .FeatureOnlineStoreAdminServiceClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + featureonlinestoreadminserviceModule.v1 + .FeatureOnlineStoreAdminServiceClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + featureonlinestoreadminserviceModule.v1 + .FeatureOnlineStoreAdminServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + fallback: true, + } + ); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.featureOnlineStoreAdminServiceStub, undefined); + await client.initialize(); + assert(client.featureOnlineStoreAdminServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.featureOnlineStoreAdminServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.featureOnlineStoreAdminServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('getFeatureOnlineStore', () => { + it('invokes getFeatureOnlineStore without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ); + client.innerApiCalls.getFeatureOnlineStore = + stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureOnlineStore(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureOnlineStore without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ); + client.innerApiCalls.getFeatureOnlineStore = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getFeatureOnlineStore( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureOnlineStore | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureOnlineStore with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getFeatureOnlineStore = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getFeatureOnlineStore(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureOnlineStore with closed client', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getFeatureOnlineStore(request), + expectedError + ); + }); + }); + + describe('getFeatureView', () => { + it('invokes getFeatureView without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ); + client.innerApiCalls.getFeatureView = stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureView(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureView without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ); + client.innerApiCalls.getFeatureView = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getFeatureView( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureView | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureView with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getFeatureView = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getFeatureView(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureView with closed client', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeatureView(request), expectedError); + }); + }); + + describe('syncFeatureView', () => { + it('invokes syncFeatureView without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SyncFeatureViewRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewResponse() + ); + client.innerApiCalls.syncFeatureView = stubSimpleCall(expectedResponse); + const [response] = await client.syncFeatureView(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncFeatureView without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SyncFeatureViewRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewResponse() + ); + client.innerApiCalls.syncFeatureView = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.syncFeatureView( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ISyncFeatureViewResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncFeatureView with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SyncFeatureViewRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.syncFeatureView = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.syncFeatureView(request), expectedError); + const actualRequest = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.syncFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes syncFeatureView with closed client', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SyncFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.SyncFeatureViewRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.syncFeatureView(request), expectedError); + }); + }); + + describe('getFeatureViewSync', () => { + it('invokes getFeatureViewSync without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ); + client.innerApiCalls.getFeatureViewSync = + stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureViewSync(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureViewSync without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ); + client.innerApiCalls.getFeatureViewSync = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getFeatureViewSync( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureViewSync | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureViewSync with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getFeatureViewSync = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getFeatureViewSync(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureViewSync as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureViewSync with closed client', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureViewSyncRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeatureViewSync(request), expectedError); + }); + }); + + describe('createFeatureOnlineStore', () => { + it('invokes createFeatureOnlineStore without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureOnlineStore = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createFeatureOnlineStore(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureOnlineStore without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureOnlineStore = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeatureOnlineStore( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.ICreateFeatureOnlineStoreOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureOnlineStore with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureOnlineStore = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.createFeatureOnlineStore(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureOnlineStore with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureOnlineStore = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createFeatureOnlineStore(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateFeatureOnlineStoreProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkCreateFeatureOnlineStoreProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateFeatureOnlineStoreProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkCreateFeatureOnlineStoreProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateFeatureOnlineStore', () => { + it('invokes updateFeatureOnlineStore without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest() + ); + request.featureOnlineStore ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest', + ['featureOnlineStore', 'name'] + ); + request.featureOnlineStore.name = defaultValue1; + const expectedHeaderRequestParams = `feature_online_store.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureOnlineStore = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateFeatureOnlineStore(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureOnlineStore without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest() + ); + request.featureOnlineStore ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest', + ['featureOnlineStore', 'name'] + ); + request.featureOnlineStore.name = defaultValue1; + const expectedHeaderRequestParams = `feature_online_store.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureOnlineStore = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateFeatureOnlineStore( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureOnlineStore, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOnlineStoreOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureOnlineStore with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest() + ); + request.featureOnlineStore ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest', + ['featureOnlineStore', 'name'] + ); + request.featureOnlineStore.name = defaultValue1; + const expectedHeaderRequestParams = `feature_online_store.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeatureOnlineStore = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateFeatureOnlineStore(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureOnlineStore with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest() + ); + request.featureOnlineStore ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureOnlineStoreRequest', + ['featureOnlineStore', 'name'] + ); + request.featureOnlineStore.name = defaultValue1; + const expectedHeaderRequestParams = `feature_online_store.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeatureOnlineStore = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateFeatureOnlineStore(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateFeatureOnlineStoreProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkUpdateFeatureOnlineStoreProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateFeatureOnlineStoreProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkUpdateFeatureOnlineStoreProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeatureOnlineStore', () => { + it('invokes deleteFeatureOnlineStore without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureOnlineStore = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeatureOnlineStore(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureOnlineStore without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureOnlineStore = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeatureOnlineStore( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureOnlineStore with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureOnlineStore = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteFeatureOnlineStore(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureOnlineStore with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureOnlineStoreRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureOnlineStore = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeatureOnlineStore(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureOnlineStore as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureOnlineStoreProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkDeleteFeatureOnlineStoreProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureOnlineStoreProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkDeleteFeatureOnlineStoreProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createFeatureView', () => { + it('invokes createFeatureView without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureViewRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureView = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createFeatureView(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureView without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureViewRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureView = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeatureView( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.ICreateFeatureViewOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureView with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureViewRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureView = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createFeatureView(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureView with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureViewRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureView = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createFeatureView(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateFeatureViewProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkCreateFeatureViewProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateFeatureViewProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkCreateFeatureViewProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateFeatureView', () => { + it('invokes updateFeatureView without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureViewRequest() + ); + request.featureView ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureViewRequest', + ['featureView', 'name'] + ); + request.featureView.name = defaultValue1; + const expectedHeaderRequestParams = `feature_view.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureView = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateFeatureView(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureView without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureViewRequest() + ); + request.featureView ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureViewRequest', + ['featureView', 'name'] + ); + request.featureView.name = defaultValue1; + const expectedHeaderRequestParams = `feature_view.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureView = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateFeatureView( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureView, + protos.google.cloud.aiplatform.v1.IUpdateFeatureViewOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureView with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureViewRequest() + ); + request.featureView ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureViewRequest', + ['featureView', 'name'] + ); + request.featureView.name = defaultValue1; + const expectedHeaderRequestParams = `feature_view.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeatureView = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateFeatureView(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeatureView with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureViewRequest() + ); + request.featureView ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureViewRequest', + ['featureView', 'name'] + ); + request.featureView.name = defaultValue1; + const expectedHeaderRequestParams = `feature_view.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeatureView = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateFeatureView(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateFeatureViewProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkUpdateFeatureViewProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateFeatureViewProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkUpdateFeatureViewProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeatureView', () => { + it('invokes deleteFeatureView without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureView = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeatureView(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureView without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureView = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeatureView( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureView with call error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureView = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFeatureView(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureView with LRO error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureViewRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureViewRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureView = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeatureView(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureView as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureViewProgress without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkDeleteFeatureViewProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureViewProgress with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + 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.checkDeleteFeatureViewProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listFeatureOnlineStores', () => { + it('invokes listFeatureOnlineStores without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + ]; + client.innerApiCalls.listFeatureOnlineStores = + stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureOnlineStores(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureOnlineStores without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + ]; + client.innerApiCalls.listFeatureOnlineStores = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatureOnlineStores( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1.IFeatureOnlineStore[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureOnlineStores with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listFeatureOnlineStores = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listFeatureOnlineStores(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureOnlineStores as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureOnlineStoresStream without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + ]; + client.descriptors.page.listFeatureOnlineStores.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFeatureOnlineStoresStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureOnlineStore[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureOnlineStore) => { + 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.listFeatureOnlineStores + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureOnlineStores, request) + ); + assert( + ( + client.descriptors.page.listFeatureOnlineStores + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listFeatureOnlineStoresStream with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureOnlineStores.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFeatureOnlineStoresStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureOnlineStore[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureOnlineStore) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listFeatureOnlineStores + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureOnlineStores, request) + ); + assert( + ( + client.descriptors.page.listFeatureOnlineStores + .createStream as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureOnlineStores without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureOnlineStore() + ), + ]; + client.descriptors.page.listFeatureOnlineStores.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IFeatureOnlineStore[] = + []; + const iterable = client.listFeatureOnlineStoresAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureOnlineStores + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listFeatureOnlineStores + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureOnlineStores with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureOnlineStoresRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureOnlineStores.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeatureOnlineStoresAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IFeatureOnlineStore[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureOnlineStores + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.descriptors.page.listFeatureOnlineStores + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listFeatureViews', () => { + it('invokes listFeatureViews without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + ]; + client.innerApiCalls.listFeatureViews = stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureViews(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViews without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + ]; + client.innerApiCalls.listFeatureViews = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatureViews( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureView[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViews with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listFeatureViews = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFeatureViews(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViews as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViewsStream without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + ]; + client.descriptors.page.listFeatureViews.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFeatureViewsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureView[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureView) => { + 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.listFeatureViews.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureViews, request) + ); + assert( + (client.descriptors.page.listFeatureViews.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listFeatureViewsStream with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureViews.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFeatureViewsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureView[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureView) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFeatureViews.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureViews, request) + ); + assert( + (client.descriptors.page.listFeatureViews.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureViews without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureView() + ), + ]; + client.descriptors.page.listFeatureViews.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IFeatureView[] = []; + const iterable = client.listFeatureViewsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureViews.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureViews.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureViews with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureViews.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeatureViewsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IFeatureView[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureViews.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureViews.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listFeatureViewSyncs', () => { + it('invokes listFeatureViewSyncs without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + ]; + client.innerApiCalls.listFeatureViewSyncs = + stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureViewSyncs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViewSyncs without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + ]; + client.innerApiCalls.listFeatureViewSyncs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatureViewSyncs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureViewSync[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViewSyncs with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listFeatureViewSyncs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFeatureViewSyncs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureViewSyncs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureViewSyncsStream without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + ]; + client.descriptors.page.listFeatureViewSyncs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFeatureViewSyncsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureViewSync[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureViewSync) => { + 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.listFeatureViewSyncs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureViewSyncs, request) + ); + assert( + (client.descriptors.page.listFeatureViewSyncs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listFeatureViewSyncsStream with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureViewSyncs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFeatureViewSyncsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.FeatureViewSync[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.FeatureViewSync) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFeatureViewSyncs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureViewSyncs, request) + ); + assert( + (client.descriptors.page.listFeatureViewSyncs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureViewSyncs without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureViewSync() + ), + ]; + client.descriptors.page.listFeatureViewSyncs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IFeatureViewSync[] = + []; + const iterable = client.listFeatureViewSyncsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureViewSyncs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureViewSyncs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listFeatureViewSyncs with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureViewSyncsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureViewSyncs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeatureViewSyncsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IFeatureViewSync[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureViewSyncs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureViewSyncs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1.ts new file mode 100644 index 00000000000..fc5e87b630e --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1.ts @@ -0,0 +1,4288 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as featureonlinestoreserviceModule from '../src'; + +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.FeatureOnlineStoreServiceClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featureOnlineStoreServiceStub, undefined); + await client.initialize(); + assert(client.featureOnlineStoreServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.featureOnlineStoreServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featureOnlineStoreServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('fetchFeatureValues', () => { + it('invokes fetchFeatureValues without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.FetchFeatureValuesRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesResponse() + ); + client.innerApiCalls.fetchFeatureValues = + stubSimpleCall(expectedResponse); + const [response] = await client.fetchFeatureValues(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchFeatureValues without error using callback', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.FetchFeatureValuesRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesResponse() + ); + client.innerApiCalls.fetchFeatureValues = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.fetchFeatureValues( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFetchFeatureValuesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchFeatureValues with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.FetchFeatureValuesRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedHeaderRequestParams = `feature_view=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.fetchFeatureValues = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.fetchFeatureValues(request), expectedError); + const actualRequest = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.fetchFeatureValues as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes fetchFeatureValues with closed client', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FetchFeatureValuesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.FetchFeatureValuesRequest', + ['featureView'] + ); + request.featureView = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.fetchFeatureValues(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = + new featureonlinestoreserviceModule.v1.FeatureOnlineStoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); 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 new file mode 100644 index 00000000000..bbd38adea7d --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts @@ -0,0 +1,6754 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as featureregistryserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.FeatureRegistryServiceClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featureregistryserviceModule.v1.FeatureRegistryServiceClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + featureregistryserviceModule.v1.FeatureRegistryServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + featureregistryserviceModule.v1.FeatureRegistryServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featureRegistryServiceStub, undefined); + await client.initialize(); + assert(client.featureRegistryServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.featureRegistryServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featureRegistryServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('getFeatureGroup', () => { + it('invokes getFeatureGroup 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.GetFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ); + client.innerApiCalls.getFeatureGroup = stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureGroup(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureGroup 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.GetFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ); + client.innerApiCalls.getFeatureGroup = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getFeatureGroup( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeatureGroup | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureGroup with 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.GetFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getFeatureGroup = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getFeatureGroup(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeatureGroup with closed client', 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.GetFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeatureGroup(request), expectedError); + }); + }); + + describe('getFeature', () => { + it('invokes getFeature 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.GetFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Feature() + ); + client.innerApiCalls.getFeature = stubSimpleCall(expectedResponse); + const [response] = await client.getFeature(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeature 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.GetFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Feature() + ); + client.innerApiCalls.getFeature = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getFeature( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IFeature | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeature with 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.GetFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getFeature = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getFeature(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getFeature with closed client', 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.GetFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeature(request), expectedError); + }); + }); + + describe('createFeatureGroup', () => { + it('invokes createFeatureGroup 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.CreateFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureGroupRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureGroup = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createFeatureGroup(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureGroup 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.CreateFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureGroupRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureGroup = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeatureGroup( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.ICreateFeatureGroupOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureGroup 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.CreateFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureGroupRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureGroup = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createFeatureGroup(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureGroup 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.CreateFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureGroupRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureGroup = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createFeatureGroup(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateFeatureGroupProgress 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.checkCreateFeatureGroupProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateFeatureGroupProgress 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.checkCreateFeatureGroupProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateFeatureGroup', () => { + it('invokes updateFeatureGroup 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.UpdateFeatureGroupRequest() + ); + request.featureGroup ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] + ); + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureGroup = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateFeatureGroup(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + 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)); + }); + + it('invokes updateFeatureGroup 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.UpdateFeatureGroupRequest() + ); + request.featureGroup ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] + ); + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeatureGroup = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateFeatureGroup( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeatureGroup, + protos.google.cloud.aiplatform.v1.IUpdateFeatureGroupOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + 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)); + }); + + it('invokes updateFeatureGroup 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.UpdateFeatureGroupRequest() + ); + request.featureGroup ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] + ); + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeatureGroup = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateFeatureGroup(request), 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)); + }); + + it('invokes updateFeatureGroup 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.UpdateFeatureGroupRequest() + ); + request.featureGroup ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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 + ); + 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)); + }); + + it('invokes checkUpdateFeatureGroupProgress 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.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.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.checkUpdateFeatureGroupProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeatureGroup', () => { + it('invokes deleteFeatureGroup 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.DeleteFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureGroup = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeatureGroup(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureGroup 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.DeleteFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureGroup = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeatureGroup( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureGroup 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.DeleteFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFeatureGroup(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureGroup 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.DeleteFeatureGroupRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteFeatureGroupRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeatureGroup(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureGroup as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureGroupProgress 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.checkDeleteFeatureGroupProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureGroupProgress 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.checkDeleteFeatureGroupProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createFeature', () => { + it('invokes createFeature 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.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeature = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createFeature(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + 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 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.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CreateFeatureRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeature = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeature( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.ICreateFeatureOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + 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 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.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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 checkCreateFeatureProgress 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.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.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.checkCreateFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateFeature', () => { + it('invokes updateFeature 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.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.IFeature, + protos.google.cloud.aiplatform.v1.IUpdateFeatureOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IFeature, + protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.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.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.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.checkUpdateFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeature', () => { + it('invokes deleteFeature 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.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.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.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.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.checkDeleteFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listFeatureGroups', () => { + it('invokes listFeatureGroups 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.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + ]; + client.innerApiCalls.listFeatureGroups = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatureGroups( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.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.v1.FeatureGroup[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureGroup[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.FeatureGroup() + ), + ]; + client.descriptors.page.listFeatureGroups.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + ]; + client.innerApiCalls.listFeatures = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatures( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.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.v1.Feature[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.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.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['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); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Feature[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.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('uses async iteration with listFeatures 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.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Feature()), + ]; + client.descriptors.page.listFeatures.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.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 + ) + ); + }); + + it('uses async iteration with listFeatures with 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.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatures.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeaturesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IFeature[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + 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 + ) + ); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy 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 IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy 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 IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions 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 IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation 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 LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts index 1b58fe6bf53..226be3a5f95 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts @@ -2154,14 +2154,12 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( @@ -2171,74 +2169,292 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { } ); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -3314,6 +3530,239 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts index 3563bc51dd5..afb592e9374 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts @@ -6559,14 +6559,12 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( { @@ -6575,74 +6573,289 @@ describe('v1.FeaturestoreServiceClient', () => { } ); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -7795,6 +8008,237 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts index 1d2082afb2d..daa8a8735c8 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts @@ -3633,14 +3633,12 @@ describe('v1.IndexEndpointServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient({ @@ -3648,74 +3646,286 @@ describe('v1.IndexEndpointServiceClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -4813,6 +5023,235 @@ describe('v1.IndexEndpointServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts index 6d2bcdbdf19..bdd458c9b02 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts @@ -3249,88 +3249,295 @@ describe('v1.IndexServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new indexserviceModule.v1.IndexServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -4413,6 +4620,233 @@ describe('v1.IndexServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts index dcbdf8af0e5..bc8983e56fc 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts @@ -8796,88 +8796,295 @@ describe('v1.JobServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -9960,6 +10167,233 @@ describe('v1.JobServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1.ts new file mode 100644 index 00000000000..9d4b9db2e7b --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1.ts @@ -0,0 +1,4345 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as llmutilityserviceModule from '../src'; + +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.LlmUtilityServiceClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + llmutilityserviceModule.v1.LlmUtilityServiceClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + llmutilityserviceModule.v1.LlmUtilityServiceClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = llmutilityserviceModule.v1.LlmUtilityServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.llmUtilityServiceStub, undefined); + await client.initialize(); + assert(client.llmUtilityServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.llmUtilityServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.llmUtilityServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('countTokens', () => { + it('invokes countTokens without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CountTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensResponse() + ); + client.innerApiCalls.countTokens = stubSimpleCall(expectedResponse); + const [response] = await client.countTokens(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes countTokens without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CountTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensResponse() + ); + client.innerApiCalls.countTokens = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.countTokens( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ICountTokensResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes countTokens with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CountTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.countTokens = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.countTokens(request), expectedError); + const actualRequest = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.countTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes countTokens with closed client', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CountTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CountTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.countTokens(request), expectedError); + }); + }); + + describe('computeTokens', () => { + it('invokes computeTokens without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensResponse() + ); + client.innerApiCalls.computeTokens = stubSimpleCall(expectedResponse); + const [response] = await client.computeTokens(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensResponse() + ); + client.innerApiCalls.computeTokens = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.computeTokens( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IComputeTokensResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.computeTokens = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.computeTokens(request), expectedError); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens with closed client', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.computeTokens(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = new llmutilityserviceModule.v1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); 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 new file mode 100644 index 00000000000..89d22c82b68 --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts @@ -0,0 +1,4444 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as llmutilityserviceModule from '../src'; + +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1beta1.LlmUtilityServiceClient', () => { + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + llmutilityserviceModule.v1beta1.LlmUtilityServiceClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + llmutilityserviceModule.v1beta1.LlmUtilityServiceClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = llmutilityserviceModule.v1beta1.LlmUtilityServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.llmUtilityServiceStub, undefined); + await client.initialize(); + assert(client.llmUtilityServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.llmUtilityServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.llmUtilityServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('computeTokens', () => { + it('invokes computeTokens without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensResponse() + ); + client.innerApiCalls.computeTokens = stubSimpleCall(expectedResponse); + const [response] = await client.computeTokens(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens without error using callback', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensResponse() + ); + client.innerApiCalls.computeTokens = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.computeTokens( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IComputeTokensResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.computeTokens = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.computeTokens(request), expectedError); + const actualRequest = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.computeTokens as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes computeTokens with closed client', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ComputeTokensRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ComputeTokensRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.computeTokens(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('deploymentResourcePool', () => { + const fakePath = '/rendered/path/deploymentResourcePool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + deployment_resource_pool: 'deploymentResourcePoolValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.deploymentResourcePoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.deploymentResourcePoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('deploymentResourcePoolPath', () => { + const result = client.deploymentResourcePoolPath( + 'projectValue', + 'locationValue', + 'deploymentResourcePoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDeploymentResourcePoolName', () => { + const result = + client.matchProjectFromDeploymentResourcePoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDeploymentResourcePoolName', () => { + const result = + client.matchLocationFromDeploymentResourcePoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDeploymentResourcePoolFromDeploymentResourcePoolName', () => { + const result = + client.matchDeploymentResourcePoolFromDeploymentResourcePoolName( + fakePath + ); + assert.strictEqual(result, 'deploymentResourcePoolValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('persistentResource', () => { + const fakePath = '/rendered/path/persistentResource'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + persistent_resource: 'persistentResourceValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.persistentResourcePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.persistentResourcePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('persistentResourcePath', () => { + const result = client.persistentResourcePath( + 'projectValue', + 'locationValue', + 'persistentResourceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPersistentResourceName', () => { + const result = client.matchProjectFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPersistentResourceName', () => { + const result = client.matchLocationFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPersistentResourceFromPersistentResourceName', () => { + const result = + client.matchPersistentResourceFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'persistentResourceValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/packages/google-cloud-aiplatform/test/gapic_match_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_match_service_v1.ts index a79d87e91d5..4e34ffd7bd7 100644 --- a/packages/google-cloud-aiplatform/test/gapic_match_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_match_service_v1.ts @@ -1861,88 +1861,295 @@ describe('v1.MatchServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new matchserviceModule.v1.MatchServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new matchserviceModule.v1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new matchserviceModule.v1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new matchserviceModule.v1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -2976,6 +3183,233 @@ describe('v1.MatchServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new matchserviceModule.v1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new matchserviceModule.v1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts index 2031898d230..0c2572beda2 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts @@ -7642,88 +7642,295 @@ describe('v1.MetadataServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new metadataserviceModule.v1.MetadataServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -8844,6 +9051,233 @@ describe('v1.MetadataServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts index 0e0f55bad2a..cb8c077c828 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts @@ -2537,88 +2537,295 @@ describe('v1.MigrationServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new migrationserviceModule.v1.MigrationServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -3701,6 +3908,233 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1.ts index 527e9b9e921..4c1595b5d59 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1.ts @@ -1732,88 +1732,295 @@ describe('v1.ModelGardenServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -2847,6 +3054,233 @@ describe('v1.ModelGardenServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new modelgardenserviceModule.v1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts index 0e13c90e995..050e6f658bd 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -5501,88 +5501,295 @@ describe('v1.ModelServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -6665,6 +6872,233 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts index b0dd2ae4fe4..ffe25bd6a81 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts @@ -3851,88 +3851,295 @@ describe('v1.PipelineServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new pipelineserviceModule.v1.PipelineServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -5015,6 +5222,233 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; 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 866d1422836..0e3392b1320 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -1451,6 +1451,204 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('batchDeletePipelineJobs', () => { + it('invokes batchDeletePipelineJobs without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchDeletePipelineJobs = + stubLongRunningCall(expectedResponse); + const [operation] = await client.batchDeletePipelineJobs(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchDeletePipelineJobs without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchDeletePipelineJobs = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchDeletePipelineJobs( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchDeletePipelineJobsResponse, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchDeletePipelineJobs with call error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchDeletePipelineJobs = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchDeletePipelineJobs(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchDeletePipelineJobs with LRO error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchDeletePipelineJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchDeletePipelineJobs = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.batchDeletePipelineJobs(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchDeletePipelineJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkBatchDeletePipelineJobsProgress without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + 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.checkBatchDeletePipelineJobsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkBatchDeletePipelineJobsProgress with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + 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.checkBatchDeletePipelineJobsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listTrainingPipelines', () => { it('invokes listTrainingPipelines without error', async () => { const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ @@ -5311,6 +5509,44 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationEndpoint', () => { const fakePath = '/rendered/path/projectLocationEndpoint'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts index ff9871a834e..3cdc0809b9d 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts @@ -2134,88 +2134,295 @@ describe('v1.PredictionServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -3249,6 +3456,233 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1.ts index 4d867499e8d..a4216f6044b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1.ts @@ -3134,88 +3134,295 @@ describe('v1.ScheduleServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new scheduleserviceModule.v1.ScheduleServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new scheduleserviceModule.v1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new scheduleserviceModule.v1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new scheduleserviceModule.v1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -4298,6 +4505,233 @@ describe('v1.ScheduleServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new scheduleserviceModule.v1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new scheduleserviceModule.v1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts index ef6cf26b426..c7231f9b2cd 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts @@ -3104,14 +3104,12 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ @@ -3119,74 +3117,286 @@ describe('v1.SpecialistPoolServiceClient', () => { projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -4284,6 +4494,235 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts index b88281fb110..ae2b53fdd21 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts @@ -7485,88 +7485,295 @@ describe('v1.TensorboardServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -8687,6 +8894,233 @@ describe('v1.TensorboardServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts index b51fbcc2aba..47817737cd9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts @@ -4409,88 +4409,295 @@ describe('v1.VizierServiceClient', () => { }); }); - describe('feature', () => { - const fakePath = '/rendered/path/feature'; + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; const expectedParameters = { project: 'projectValue', location: 'locationValue', - featurestore: 'featurestoreValue', - entity_type: 'entityTypeValue', - feature: 'featureValue', + feature_group: 'featureGroupValue', }; const client = new vizierserviceModule.v1.VizierServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.featurePathTemplate.render = sinon + client.pathTemplates.featureGroupPathTemplate.render = sinon .stub() .returns(fakePath); - client.pathTemplates.featurePathTemplate.match = sinon + client.pathTemplates.featureGroupPathTemplate.match = sinon .stub() .returns(expectedParameters); - it('featurePath', () => { - const result = client.featurePath( + it('featureGroupPath', () => { + const result = client.featureGroupPath( 'projectValue', 'locationValue', - 'featurestoreValue', - 'entityTypeValue', - 'featureValue' + 'featureGroupValue' ); assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.render as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) .getCall(-1) .calledWith(expectedParameters) ); }); - it('matchProjectFromFeatureName', () => { - const result = client.matchProjectFromFeatureName(fakePath); + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); assert.strictEqual(result, 'projectValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchLocationFromFeatureName', () => { - const result = client.matchLocationFromFeatureName(fakePath); + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); assert.strictEqual(result, 'locationValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeaturestoreFromFeatureName', () => { - const result = client.matchFeaturestoreFromFeatureName(fakePath); - assert.strictEqual(result, 'featurestoreValue'); + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); }); + }); - it('matchEntityTypeFromFeatureName', () => { - const result = client.matchEntityTypeFromFeatureName(fakePath); - assert.strictEqual(result, 'entityTypeValue'); + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) .getCall(-1) .calledWith(fakePath) ); }); - it('matchFeatureFromFeatureName', () => { - const result = client.matchFeatureFromFeatureName(fakePath); - assert.strictEqual(result, 'featureValue'); + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); assert( - (client.pathTemplates.featurePathTemplate.match as SinonStub) + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) .getCall(-1) .calledWith(fakePath) ); @@ -5573,6 +5780,233 @@ describe('v1.VizierServiceClient', () => { }); }); + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('projectLocationPublisherModel', () => { const fakePath = '/rendered/path/projectLocationPublisherModel'; const expectedParameters = {